From ac446fb7e690b317050ed158ba5dfd9273dc9e74 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sat, 2 Oct 2010 16:00:53 +0200 Subject: [PATCH] ALSA: snd-aloop - fix "PCM Slave Active" element read value Simple coding fix. Signed-off-by: Jaroslav Kysela --- sound/drivers/aloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index 2748fee8d405..040030aa9d8e 100644 --- a/sound/drivers/aloop.c +++ b/sound/drivers/aloop.c @@ -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) -- GitLab