ALSA: snd-aloop - fix "PCM Slave Active" element read value
authorJaroslav Kysela <perex@perex.cz>
Sat, 2 Oct 2010 14:00:53 +0000 (16:00 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 2 Oct 2010 14:07:03 +0000 (16:07 +0200)
Simple coding fix.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/drivers/aloop.c

index 2748fee..040030a 100644 (file)
@@ -739,7 +739,7 @@ static int loopback_active_get(struct snd_kcontrol *kcontrol,
 {
        struct loopback *loopback = snd_kcontrol_chip(kcontrol);
        struct loopback_cable *cable = loopback->cables
-                               [kcontrol->id.subdevice][kcontrol->id.device];
+                       [kcontrol->id.subdevice][kcontrol->id.device ^ 1];
        unsigned int val = 0;
 
        if (cable != NULL)