From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Wed, 21 Aug 2024 08:49:17 +0200
X-Dgit-Generated: 0.21-1 c4fd491eb38d5c3a3190efca1ef0362b457f2b92
Subject: Reduce poll timeout to 1 second

This reduces the system load but increases the time it takes to sync the
volume from the DSP to Alsa. I assume that syncing from Alsa to DSP is
the normal case, which is still faster due to using select.

---

diff --git a/hifiberrydsp/alsa/alsasync.py b/hifiberrydsp/alsa/alsasync.py
index 0c3d879..e8e0b21 100644
--- a/hifiberrydsp/alsa/alsasync.py
+++ b/hifiberrydsp/alsa/alsasync.py
@@ -72,7 +72,7 @@ class AlsaSync(Thread):
         self.dsp = Adau145x
         self.volume_register_length = self.dsp.WORD_LENGTH
         self.finished = False
-        self.pollinterval = 0.1
+        self.pollinterval = 1000  # milliseconds
         self.spi = SpiHandler
         self.dspdata = None
         self.dspvol = None
