Skip to content

Commit ac446fb

Browse files
committed
ALSA: snd-aloop - fix "PCM Slave Active" element read value
Simple coding fix. Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent 20d9a26 commit ac446fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/drivers/aloop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ static int loopback_active_get(struct snd_kcontrol *kcontrol,
739739
{
740740
struct loopback *loopback = snd_kcontrol_chip(kcontrol);
741741
struct loopback_cable *cable = loopback->cables
742-
[kcontrol->id.subdevice][kcontrol->id.device];
742+
[kcontrol->id.subdevice][kcontrol->id.device ^ 1];
743743
unsigned int val = 0;
744744

745745
if (cable != NULL)

0 commit comments

Comments
 (0)