restore alsa state when booting

Change-Id: I915105ac186ee25bc9a64724c1e42336f7d80690
Signed-off-by: hertz.wang <wangh@rock-chips.com>
This commit is contained in:
hertz.wang
2018-08-17 15:54:06 +08:00
parent 8f9ddde78e
commit 85673cf16f

View File

@ -36,8 +36,14 @@ killall hostapd
killall dnsmasq
killall ueventd
DUEROS_ALSASTATE_FILE=/data/cfg/asound.state
if [ -r $DUEROS_ALSASTATE_FILE ]; then
alsactl restore --file=$DUEROS_ALSASTATE_FILE
fi
aplay /oem/duer/appresources/startup.wav &
#alsactl -b daemon --file=$DUEROS_ALSASTATE_FILE
#wpa_supplicant -B -i wlan0 -c /data/cfg/wpa_supplicant.conf
#sleep 3
#dhcpcd &