projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67e2250
)
ALSA: snd_ctl_activate_id(): Fix index look-up
author
Lars-Peter Clausen
<lars@metafoo.de>
Fri, 7 Nov 2014 13:12:34 +0000
(14:12 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 7 Nov 2014 13:25:07 +0000
(14:25 +0100)
We want to know the offset for the id that was passed to the function, not
the offset of the first id of the control (which is always 0).
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/control.c
b/sound/core/control.c
index 99aa3aa157bac2cb0db752a04eaaadf859ac6bb0..bb96a467e88d080ff693766f77b36b4dc1a02b01 100644
(file)
--- a/
sound/core/control.c
+++ b/
sound/core/control.c
@@
-572,7
+572,7
@@
int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id,
ret = -ENOENT;
goto unlock;
}
- index_offset = snd_ctl_get_ioff(kctl,
&kctl->
id);
+ index_offset = snd_ctl_get_ioff(kctl, id);
vd = &kctl->vd[index_offset];
ret = 0;
if (active) {