sound: add support for initial mixer configuration of Midas_WM1811 (Galaxy Note 10.1)

This commit is contained in:
Silvan Calarco 2013-07-30 18:21:48 +02:00
parent c2a12f57be
commit 10aa2ca3ee

View File

@ -84,14 +84,20 @@ if [ ! "$SOUND_DEV" ]; then
fi
fi
# Raspberry PI
if [ -e /sys/module/spi_bcm2708 -a ! -e /proc/asound/card0 ]; then
# Raspberry PI
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
elif [ -e /proc/asound/MidasWM1811 ]; then
# Galaxy Note 10.1
/usr/sbin/alsactl restore -f /usr/share/alsa/ucm/Midas_WM1811/init.state
# enable speaker for output and builtin mic for input
/usr/bin/alsaucm -c Midas_WM1811 set _verb HiFi set _enadev Speaker
/usr/bin/alsaucm -c Midas_WM1811 set _verb HiFi set _enadev Mic
fi
if [ "$SOUND_FORCE_RESCAN" != "on" -a "$SOUND_FORCE_RESCAN" != "1" ]; then