increase CONFIG_SND_MAX_CARDS and avalable sample rate

Olivier SCHMITT sc.olivier at gmail.com
Mon Sep 14 20:27:08 CEST 2020


Hello dear all,

It's possible de increase CONFIG_SND_MAX_CARDS to 256 and increse sample 
rate to 384khz.

Actualy i build my own kernel as:

sed -i 's/SNDRV_PCM_RATE_CONTINUOUS | 
SNDRV_PCM_RATE_8000_192000,/SNDRV_PCM_RATE_CONTINUOUS,/g' 
./sound/drivers/aloop.c
sed -i 's/192000/768000/g' ./sound/drivers/aloop.c
grep -rnl './' -e "CONFIG_SND_MAX_CARDS=32" | xargs -i@ sed -i 
's/CONFIG_SND_MAX_CARDS=32/CONFIG_SND_MAX_CARDS=256/g' @

search and replace 32 by 256 in  and 
./debian.master/config/annotations:CONFIG_SND_MAX_CARDS

and for alsa utils:

git clone git://git.alsa-project.org/alsa-lib.git alsa-lib
./gitcompile --with-max-cards=256
make install

git clone git://git.alsa-project.org/alsa-utils.git alsa-utils
./gitcompile --with-max-cards=256
make install

Thanks in advance.


More information about the Alsa-devel mailing list