From 603061f49c990d5eac88c8b5409288daba351563 Mon Sep 17 00:00:00 2001
From: j1nx
Date: Tue, 12 Dec 2023 18:09:31 +0000
Subject: [PATCH] [RPI] Allow some seconds to initialise the wm8960 hardware /
driver
---
.../ovos/raspberrypi/rootfs-overlay/usr/libexec/ovos-i2csound | 1 +
1 file changed, 1 insertion(+)
diff --git a/buildroot-external/board/ovos/raspberrypi/rootfs-overlay/usr/libexec/ovos-i2csound b/buildroot-external/board/ovos/raspberrypi/rootfs-overlay/usr/libexec/ovos-i2csound
index 18d3efd6..d7921c11 100755
--- a/buildroot-external/board/ovos/raspberrypi/rootfs-overlay/usr/libexec/ovos-i2csound
+++ b/buildroot-external/board/ovos/raspberrypi/rootfs-overlay/usr/libexec/ovos-i2csound
@@ -63,6 +63,7 @@ if [ "$WM8960" == "found" ] && [ "$RESPEAKER4" != "found" ] ; then
echo "Installing and configuring WM8960 based 2-mic HAT"
dtoverlay wm8960-soundcard
echo "Configuring board"
+ sleep 3 # Allow some time to fully initialise the hardware / driver
amixer -c "wm8960soundcard" cset numid=1 34,34
amixer -c "wm8960soundcard" cset numid=26 3
amixer -c "wm8960soundcard" cset numid=27 4