[RPI] Add mainline WM8960 i2c sound support to ovos-i2csound
This adds support for multiple devices such as; - Seeed 2 mic voicecard - keyestudio respeaker 2 mic - Waveshare WM8960
This commit is contained in:
parent
55ced32781
commit
4acfa1202c
|
@ -60,17 +60,38 @@ fi
|
|||
|
||||
# Configure found devices
|
||||
if [ "$RESPEAKER2" == "found" ] && [ "$RESPEAKER4" != "found" ] ; then
|
||||
echo "Installing and configuring ReSpeaker 2-mic"
|
||||
dtoverlay seeed-2mic-voicecard
|
||||
echo "Installing and configuring WM8960 based 2-mic HAT"
|
||||
dtoverlay wm8960-soundcard
|
||||
echo "Configuring board"
|
||||
amixer cset numid=1 34,34
|
||||
amixer cset numid=26 3
|
||||
amixer cset numid=27 4
|
||||
amixer cset numid=30 5
|
||||
amixer cset numid=32 5
|
||||
amixer cset numid=33 5
|
||||
amixer cset numid=34 25
|
||||
amixer cset numid=35 on
|
||||
amixer cset numid=9 3
|
||||
amixer cset numid=8 3
|
||||
amixer cset numid=49 on
|
||||
amixer cset numid=51 on
|
||||
amixer cset numid=37 0
|
||||
amixer cset numid=38 0
|
||||
amixer cset numid=39 5
|
||||
amixer cset numid=48 on
|
||||
amixer cset numid=50 on
|
||||
amixer cset numid=54 on
|
||||
amixer cset numid=16 5
|
||||
amixer cset numid=15 4
|
||||
fi
|
||||
|
||||
if [ "${RESPEAKER6}" == "found" ] && [ "${RESPEAKER4}" != "found" ] ; then
|
||||
echo "Installing and configuring ReSpeaker 4-mic"
|
||||
echo "Installing and configuring ReSpeaker 4-mic HAT"
|
||||
dtoverlay seeed-4mic-voicecard
|
||||
fi
|
||||
|
||||
if [ "{$RESPEAKER6}" == "found" ] && [ "${RESPEAKER4}" == "found" ] ; then
|
||||
echo "Installing and configuring ReSpeaker 6mic"
|
||||
echo "Installing and configuring ReSpeaker 6mic HAT"
|
||||
dtoverlay seeed-8mic-voicecard
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue