Skip to content

Commit 63e38d0

Browse files
committed
ALSA: hda: Allow the default preallocation for x86 again
Since there are a few corner cases where the S/G buffer allocation isn't performed (e.g. depending on IOMMU implementations), it'd be better to allow the default buffer preallocation size for x86, too. The default for x86 is still kept to 0, as it should work in most cases. Link: https://patch.msgid.link/20240907084129.28802-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 8055c0c commit 63e38d0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sound/hda/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ config SND_HDA_EXT_CORE
2121
select SND_HDA_CORE
2222

2323
config SND_HDA_PREALLOC_SIZE
24-
int "Pre-allocated buffer size for HD-audio driver" if !SND_DMA_SGBUF
24+
int "Pre-allocated buffer size for HD-audio driver"
2525
range 0 32768
2626
default 0 if SND_DMA_SGBUF
2727
default 64 if !SND_DMA_SGBUF
@@ -30,7 +30,8 @@ config SND_HDA_PREALLOC_SIZE
3030
HD-audio driver. A larger buffer (e.g. 2048) is preferred
3131
for systems using PulseAudio. The default 64 is chosen just
3232
for compatibility reasons.
33-
On x86 systems, the default is zero as we need no preallocation.
33+
On x86 systems, the default is zero as S/G allocation works
34+
and no preallocation is needed in most cases.
3435

3536
Note that the pre-allocation size can be changed dynamically
3637
via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.

0 commit comments

Comments
 (0)