aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/plugins/alsa.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/alsa.py b/src/plugins/alsa.py
index f624672..b5365c7 100644
--- a/src/plugins/alsa.py
+++ b/src/plugins/alsa.py
@@ -59,10 +59,10 @@ class ALSA:
card = -1
else:
card = alsaaudio.cards().index(card)
- self.card = card
+ self.cardindex = card
self.mixername = mixername
- self.mixer = alsaaudio.Mixer(self.mixername, 0, self.card)
- self.cardname = mixer.cardname
+ self.mixer = alsaaudio.Mixer(self.mixername, 0, self.cardindex)
+ self.cardname = self.mixer.cardname
def get_volume(self):