[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:
j1nx 2023-12-11 08:44:46 +00:00
parent 55ced32781
commit 4acfa1202c
1 changed files with 25 additions and 4 deletions

View File

@ -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