aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/alsa.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/alsa.py b/src/plugins/alsa.py
index f8cd942..b955130 100644
--- a/src/plugins/alsa.py
+++ b/src/plugins/alsa.py
@@ -76,7 +76,10 @@ class ALSA:
self.mixer.setmute(1, channel)
else:
self.mixer.setvolume(volume, channel)
- self.mixer.setmute(0, channel)
+ try:
+ self.mixer.setmute(0, channel)
+ except:
+ pass # some mixers do not have mute switch
@staticmethod