seeed-voicecard: if the board detect seeed-voicecard then resetup asound.conf and asound.state
This commit is contained in:
parent
bfe6978ef4
commit
deeddaabb4
|
@ -43,7 +43,8 @@ if [ "x${is_1a}" == "x1a" ] && [ "x${is_35}" == "x" ] ; then
|
||||||
echo "install 2mic"
|
echo "install 2mic"
|
||||||
dtoverlay seeed-2mic-voicecard
|
dtoverlay seeed-2mic-voicecard
|
||||||
sleep 1
|
sleep 1
|
||||||
|
rm /etc/asound.conf
|
||||||
|
rm /var/lib/alsa/asound.state
|
||||||
echo "create 2mic asound configure file"
|
echo "create 2mic asound configure file"
|
||||||
ln -s /etc/voicecard/asound_2mic.conf /etc/asound.conf
|
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"
|
echo "install 4mic"
|
||||||
dtoverlay seeed-4mic-voicecard
|
dtoverlay seeed-4mic-voicecard
|
||||||
sleep 1
|
sleep 1
|
||||||
|
rm /etc/asound.conf
|
||||||
|
rm /var/lib/alsa/asound.state
|
||||||
echo "create 4mic asound configure file"
|
echo "create 4mic asound configure file"
|
||||||
ln -s /etc/voicecard/asound_4mic.conf /etc/asound.conf
|
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"
|
echo "install 6mic"
|
||||||
dtoverlay seeed-8mic-voicecard
|
dtoverlay seeed-8mic-voicecard
|
||||||
sleep 1
|
sleep 1
|
||||||
|
rm /etc/asound.conf
|
||||||
|
rm /var/lib/alsa/asound.state
|
||||||
echo "create 6mic asound configure file"
|
echo "create 6mic asound configure file"
|
||||||
ln -s /etc/voicecard/asound_6mic.conf /etc/asound.conf
|
ln -s /etc/voicecard/asound_6mic.conf /etc/asound.conf
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue