From 7fd5c1ce2829f9d7ddd629ecaf6c04ed0c0cb834 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 28 Mar 2015 07:30:10 +0100 Subject: some mixers do not have mute switch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/plugins/alsa.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2