aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/alsa.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-03-28 07:30:10 +0100
committerMattias Andrée <maandree@operamail.com>2015-03-28 07:30:10 +0100
commit7fd5c1ce2829f9d7ddd629ecaf6c04ed0c0cb834 (patch)
treec86e2abc21b04254acea296deef7fc6190939838 /src/plugins/alsa.py
parenttypo (diff)
downloadxpybar-794d14a294dae072996dd11eb272fa0dbad38463.tar.gz
xpybar-794d14a294dae072996dd11eb272fa0dbad38463.tar.bz2
xpybar-794d14a294dae072996dd11eb272fa0dbad38463.tar.xz
some mixers do not have mute switch1.8
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/plugins/alsa.py')
-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