You are not logged in.
See: https://bugs.archlinux.org/task/68092
Any chance we could update the config to 2048?
Offline
You'd be better off adding to the bug report. The Arch developers rarely (if ever) visit the forums.
Offline
thanks, I did just that.
Offline
According to the git blame it was reset to 0 deliberately:
https://github.com/archlinux/svntogit-p … 7012eeddd8
https://bugs.archlinux.org/task/70064
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
According to the git blame it was reset to 0 deliberately:
https://github.com/archlinux/svntogit-p … 7012eeddd8
https://bugs.archlinux.org/task/70064
Unfortunately, 0 is causing issues still: https://gitlab.freedesktop.org/pipewire … ssues/2272
In my case I have audio disappearing after a period of inactivity or when waking up from sleep.
The solution is to either recompile the kernel or use below:
echo 2048 | sudo tee /proc/asound/card*/pcm*/sub*/prealloc
Offline
BTW, Fedora seems to be using 2048:
Offline
Not for x86: https://gitlab.com/cki-project/kernel-a … ALLOC_SIZE and as mentioned in the discussion/bug reports there can be actual issues if the value is set "too high" as well.
Maybe this really is something where people need to override this themselves on an as needed basis.
Offline
For Fedora, it is 0.
https://src.fedoraproject.org/rpms/kern … onfig#_599
It is 0 for most kernel configurations.
CONFIG_SND_HDA_PREALLOC_SIZE=0is automatically set.
include/generated/autoconf.h
include/config/auto.confYou cannot modify it (including and through in menuconfig). Except for the configuration
if !SND_DMA_SGBUFthen you can set the range value
0 32768.
https://git.kernel.org/pub/scm/linux/ke … 5.17.y#n26
Last edited by latalante1 (2022-04-06 09:57:55)
Offline
well, I guess it really will need to be overridden on a case by case basis. In my case I have to do it otherwise I have unusable audio.
I will try to investigate this more and possibly report upstream.
Offline
The help text for the kernel config CONFIG_SND_HDA_PREALLOC_SIZE says:
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 we need no preallocation.
Note that the pre-allocation size can be changed dynamically via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
So it's zero as we need no preallocation on X86 systems.
Offline