Commit 146355ee authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-5-tiwai@suse.de
parent 05be28fe
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -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
+0 −16
Original line number Diff line number Diff line
@@ -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.