]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ALSA: hda: Move CONFIG_SND_HDA_PREALLOC_SIZE into sound/hda/common
authorTakashi Iwai <tiwai@suse.de>
Wed, 9 Jul 2025 16:04:07 +0000 (18:04 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 11 Jul 2025 07:55:37 +0000 (09:55 +0200)
CONFIG_SND_HDA_PREALLOC_SIZE is used only by controller.c in
sound/hda/common, hence it depends on CONFIG_SND_HDA.

Move the definition to the right place inside SND_HDA if/endif block
in sound/hda/common/Kconfig.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-5-tiwai@suse.de
sound/hda/common/Kconfig
sound/hda/core/Kconfig

index d1e2bfd24c117fb1635900f7121c81f8bbcac8e8..f38e1947fb3eb7f253e5b990e9ade9020d0f139f 100644 (file)
@@ -77,4 +77,21 @@ config SND_HDA_CTL_DEV_ID
 
          The old behaviour (Y) is obsolete and will be removed. Consider
          to not enable this option.
+
+config SND_HDA_PREALLOC_SIZE
+       int "Pre-allocated buffer size for HD-audio driver"
+       range 0 32768
+       default 0 if SND_DMA_SGBUF
+       default 64 if !SND_DMA_SGBUF
+       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.
+         On x86 systems, the default is zero as S/G allocation works
+         and no preallocation is needed in most cases.
+
+         Note that the pre-allocation size can be changed dynamically
+         via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
+
 endif
index eb488a522572464bc1e6c1a7da8fedea1fbaca82..bfdcf6384c52107d689ba7aa5fd9afbf55c37f64 100644 (file)
@@ -20,22 +20,6 @@ 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 0 if SND_DMA_SGBUF
-       default 64 if !SND_DMA_SGBUF
-       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.
-         On x86 systems, the default is zero as S/G allocation works
-         and no preallocation is needed in most cases.
-
-         Note that the pre-allocation size can be changed dynamically
-         via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
-
 config SND_INTEL_NHLT
        bool
        # this config should be selected only for Intel ACPI platforms.