sound: add support for initial mixer configuration of Midas_WM1811 (Galaxy Note 10.1)
This commit is contained in:
parent
c2a12f57be
commit
10aa2ca3ee
@ -29,7 +29,7 @@ function set_mixers() {
|
||||
channel=$1
|
||||
[ "$channel" ] || channel=0
|
||||
|
||||
/usr/bin/amixer -s -c $channel -q <<_EOF
|
||||
/usr/bin/amixer -s -c $channel -q <<_EOF
|
||||
# Playback channels
|
||||
set 'Master' 90% unmute
|
||||
# some notebooks use headphone instead of master
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user