mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 06:43:09 +00:00
ALSA: snd-aloop - fix "PCM Slave Active" element read value
Simple coding fix. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
20d9a26dbb
commit
ac446fb7e6
@ -739,7 +739,7 @@ static int loopback_active_get(struct snd_kcontrol *kcontrol,
|
|||||||
{
|
{
|
||||||
struct loopback *loopback = snd_kcontrol_chip(kcontrol);
|
struct loopback *loopback = snd_kcontrol_chip(kcontrol);
|
||||||
struct loopback_cable *cable = loopback->cables
|
struct loopback_cable *cable = loopback->cables
|
||||||
[kcontrol->id.subdevice][kcontrol->id.device];
|
[kcontrol->id.subdevice][kcontrol->id.device ^ 1];
|
||||||
unsigned int val = 0;
|
unsigned int val = 0;
|
||||||
|
|
||||||
if (cable != NULL)
|
if (cable != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user