Skip to contentSkip to conversation

increase CONFIG_SND_MAX_CARDS and avalable sample rate

DISCUSSION Olivier SCHMITT 1 participant 1 message Sep 14, 2020

lore
Share & tools
lore
#0 lore raw

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.