Skip to contentSkip to conversation

ALSA: HDAC: move SND_HDA_PREALLOC_SIZE to core

PATCH Applied Vinod Koul 2 participants 2 messages Jun 16, 2015 Sound

lore
Share & tools
lore

Vinod Koul

author
#0 lore raw

PATCH 1/1 ALSA: HDAC: move SND_HDA_PREALLOC_SIZE to core

Since this is common option for HDA driver to specfiy pre-allocated buffer, we should make this option availble to all HDA driver by moving this to HDA core

---
 sound/hda/Kconfig     | 13 +++++++++++++
 sound/pci/hda/Kconfig | 13 -------------
 2 files changed, 13 insertions(+), 13 deletions(-)
sound/hda/Kconfig +13 -0
index 6dc3914fd28b..3129546398d0 100644
@@ -14,3 +14,16 @@ config SND_HDA_I915
 config SND_HDA_EXT_CORE
        tristate
        select SND_HDA_CORE
+
+config SND_HDA_PREALLOC_SIZE
+	int "Pre-allocated buffer size for HD-audio driver"
+	range 0 32768
+	default 64
+	help
+	  Specifies the default pre-allocated buffer-size in kB for the
+	  HD-audio driver.  A larger buffer (e.g. 2048) is preferred
+	  for systems using PulseAudio.  The default 64 is chosen just
+	  for compatibility reasons.
+
+	  Note that the pre-allocation size can be changed dynamically
+	  via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
sound/pci/hda/Kconfig +0 -13
index 98ced971cb43..e94cfd5c69f7 100644
@@ -38,19 +38,6 @@ config SND_HDA_TEGRA
 
 if SND_HDA
 
-config SND_HDA_PREALLOC_SIZE
-	int "Pre-allocated buffer size for HD-audio driver"
-	range 0 32768
-	default 64
-	help
-	  Specifies the default pre-allocated buffer-size in kB for the
-	  HD-audio driver.  A larger buffer (e.g. 2048) is preferred
-	  for systems using PulseAudio.  The default 64 is chosen just
-	  for compatibility reasons.
-
-	  Note that the pre-allocation size can be changed dynamically
-	  via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
-
 config SND_HDA_HWDEP
 	bool "Build hwdep interface for HD-audio driver"
 	select SND_HWDEP
Signature · 1 line
1.9.1
Applied
#1 lore raw

At Tue, 16 Jun 2015 21:00:22 +0530,

Quoted 6 lines · Vinod Koul

Since this is common option for HDA driver to specfiy pre-allocated buffer, we should make this option availble to all HDA driver by moving this to HDA core

Applied, thanks.

Takashi

Quoted 53 lines
---
 sound/hda/Kconfig     | 13 +++++++++++++
 sound/pci/hda/Kconfig | 13 -------------
 2 files changed, 13 insertions(+), 13 deletions(-)
sound/hda/Kconfig +13 -0
index 6dc3914fd28b..3129546398d0 100644
@@ -14,3 +14,16 @@ config SND_HDA_I915
 config SND_HDA_EXT_CORE
        tristate
        select SND_HDA_CORE
+
+config SND_HDA_PREALLOC_SIZE
+	int "Pre-allocated buffer size for HD-audio driver"
+	range 0 32768
+	default 64
+	help
+	  Specifies the default pre-allocated buffer-size in kB for the
+	  HD-audio driver.  A larger buffer (e.g. 2048) is preferred
+	  for systems using PulseAudio.  The default 64 is chosen just
+	  for compatibility reasons.
+
+	  Note that the pre-allocation size can be changed dynamically
+	  via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
sound/pci/hda/Kconfig +0 -13
index 98ced971cb43..e94cfd5c69f7 100644
@@ -38,19 +38,6 @@ config SND_HDA_TEGRA
 
 if SND_HDA
 
-config SND_HDA_PREALLOC_SIZE
-	int "Pre-allocated buffer size for HD-audio driver"
-	range 0 32768
-	default 64
-	help
-	  Specifies the default pre-allocated buffer-size in kB for the
-	  HD-audio driver.  A larger buffer (e.g. 2048) is preferred
-	  for systems using PulseAudio.  The default 64 is chosen just
-	  for compatibility reasons.
-
-	  Note that the pre-allocation size can be changed dynamically
-	  via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
-
 config SND_HDA_HWDEP
 	bool "Build hwdep interface for HD-audio driver"
 	select SND_HWDEP
Signature · 1 line
1.9.1