mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-06-05 22:19:21 +02:00
[RPI] Add proper ReSpeaker 4-mic square HAT support to i2csound
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
options snd_soc_simple_card index=0
|
options snd_soc_simple_card index=0
|
||||||
options snd_soc_rpi_proto index=0
|
options snd_soc_rpi_proto index=0
|
||||||
|
options snd_soc_seeed_voicecard index=0
|
||||||
options snd_bcm2835 index=1
|
options snd_bcm2835 index=1
|
||||||
options snd slots=snd_soc_simple_card,snd_soc_rpi_proto,snd_bcm2835
|
options snd slots=snd_soc_simple_card,snd_soc_rpi_proto,snd_soc_seeed_voicecard,snd_bcm2835
|
||||||
|
@@ -115,6 +115,16 @@ fi
|
|||||||
if [ "${RESPEAKER6}" == "found" ] && [ "${RESPEAKER4}" != "found" ] ; then
|
if [ "${RESPEAKER6}" == "found" ] && [ "${RESPEAKER4}" != "found" ] ; then
|
||||||
echo "Installing and configuring ReSpeaker 4-mic HAT"
|
echo "Installing and configuring ReSpeaker 4-mic HAT"
|
||||||
dtoverlay seeed-4mic-voicecard
|
dtoverlay seeed-4mic-voicecard
|
||||||
|
echo "Configuring board"
|
||||||
|
sleep 3 # Allow some time to fully initialise the hardware / driver
|
||||||
|
amixer -c "seeed4micvoicec" cset numid=1 222
|
||||||
|
amixer -c "seeed4micvoicec" cset numid=2 222
|
||||||
|
amixer -c "seeed4micvoicec" cset numid=3 222
|
||||||
|
amixer -c "seeed4micvoicec" cset numid=4 222
|
||||||
|
amixer -c "seeed4micvoicec" cset numid=5 13
|
||||||
|
amixer -c "seeed4micvoicec" cset numid=6 13
|
||||||
|
amixer -c "seeed4micvoicec" cset numid=7 13
|
||||||
|
amixer -c "seeed4micvoicec" cset numid=8 13
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "{$RESPEAKER6}" == "found" ] && [ "${RESPEAKER4}" == "found" ] ; then
|
if [ "{$RESPEAKER6}" == "found" ] && [ "${RESPEAKER4}" == "found" ] ; then
|
||||||
|
Reference in New Issue
Block a user