ALSA: snd-aloop - fix "PCM Slave Active" element read value
Jaroslav Kysela [Sat, 2 Oct 2010 14:00:53 +0000 (16:00 +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)