sound: Raspberry PI: configure to load snd-bcm2835 and set dummy alsa.conf because driver doesn't support dmix & c. plugins
This commit is contained in:
parent
c33c8978df
commit
c0bf7d25ed
@ -84,6 +84,16 @@ if [ ! "$SOUND_DEV" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Raspberry PI
|
||||||
|
if [ -e /sys/module/spi_bcm2708 -a ! -e /proc/asound/card0 ]; then
|
||||||
|
modprobe snd-bcm2835
|
||||||
|
if [ -e /proc/asound/card0 ]; then
|
||||||
|
echo "snd-bcm2835" > /etc/modules.d/snd-bcm2835.conf
|
||||||
|
update-alternatives --set asound.conf /etc/asound.conf.dummy
|
||||||
|
SOUND_DEV="`md5sum /proc/asound/cards 2>/dev/null`"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$SOUND_FORCE_RESCAN" != "on" -a "$SOUND_FORCE_RESCAN" != "1" ]; then
|
if [ "$SOUND_FORCE_RESCAN" != "on" -a "$SOUND_FORCE_RESCAN" != "1" ]; then
|
||||||
if [ -e $postpluglibdir/sound.cache ]; then
|
if [ -e $postpluglibdir/sound.cache ]; then
|
||||||
SOUND_DEV_CACHED="`cat $postpluglibdir/sound.cache`"
|
SOUND_DEV_CACHED="`cat $postpluglibdir/sound.cache`"
|
||||||
|
Loading…
Reference in New Issue
Block a user