Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: hda: Move CONFIG_SND_HDA_PREALLOC_SIZE into sound/hda/common

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

+17 -16
+17
sound/hda/common/Kconfig
··· 77 77 78 78 The old behaviour (Y) is obsolete and will be removed. Consider 79 79 to not enable this option. 80 + 81 + config SND_HDA_PREALLOC_SIZE 82 + int "Pre-allocated buffer size for HD-audio driver" 83 + range 0 32768 84 + default 0 if SND_DMA_SGBUF 85 + default 64 if !SND_DMA_SGBUF 86 + help 87 + Specifies the default pre-allocated buffer-size in kB for the 88 + HD-audio driver. A larger buffer (e.g. 2048) is preferred 89 + for systems using PulseAudio. The default 64 is chosen just 90 + for compatibility reasons. 91 + On x86 systems, the default is zero as S/G allocation works 92 + and no preallocation is needed in most cases. 93 + 94 + Note that the pre-allocation size can be changed dynamically 95 + via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too. 96 + 80 97 endif
-16
sound/hda/core/Kconfig
··· 20 20 tristate 21 21 select SND_HDA_CORE 22 22 23 - config SND_HDA_PREALLOC_SIZE 24 - int "Pre-allocated buffer size for HD-audio driver" 25 - range 0 32768 26 - default 0 if SND_DMA_SGBUF 27 - default 64 if !SND_DMA_SGBUF 28 - help 29 - Specifies the default pre-allocated buffer-size in kB for the 30 - HD-audio driver. A larger buffer (e.g. 2048) is preferred 31 - for systems using PulseAudio. The default 64 is chosen just 32 - for compatibility reasons. 33 - On x86 systems, the default is zero as S/G allocation works 34 - and no preallocation is needed in most cases. 35 - 36 - Note that the pre-allocation size can be changed dynamically 37 - via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too. 38 - 39 23 config SND_INTEL_NHLT 40 24 bool 41 25 # this config should be selected only for Intel ACPI platforms.