From deeddaabb45777d28356fbe4160a84c8d30b36d1 Mon Sep 17 00:00:00 2001 From: Baozhu Zuo Date: Sat, 29 Sep 2018 14:36:01 +0800 Subject: [PATCH] seeed-voicecard: if the board detect seeed-voicecard then resetup asound.conf and asound.state --- seeed-voicecard | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/seeed-voicecard b/seeed-voicecard index 26648fa..eb9519f 100755 --- a/seeed-voicecard +++ b/seeed-voicecard @@ -43,7 +43,8 @@ if [ "x${is_1a}" == "x1a" ] && [ "x${is_35}" == "x" ] ; then echo "install 2mic" dtoverlay seeed-2mic-voicecard sleep 1 - + rm /etc/asound.conf + rm /var/lib/alsa/asound.state echo "create 2mic asound configure file" ln -s /etc/voicecard/asound_2mic.conf /etc/asound.conf @@ -55,7 +56,8 @@ if [ "x${is_3b}" == "x3b" ] && [ "x${is_35}" == "x" ] ; then echo "install 4mic" dtoverlay seeed-4mic-voicecard sleep 1 - + rm /etc/asound.conf + rm /var/lib/alsa/asound.state echo "create 4mic asound configure file" ln -s /etc/voicecard/asound_4mic.conf /etc/asound.conf @@ -67,7 +69,8 @@ if [ "x${is_3b}" == "x3b" ] && [ "x${is_35}" == "x35" ] ; then echo "install 6mic" dtoverlay seeed-8mic-voicecard sleep 1 - + rm /etc/asound.conf + rm /var/lib/alsa/asound.state echo "create 6mic asound configure file" ln -s /etc/voicecard/asound_6mic.conf /etc/asound.conf