projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c1bccf
)
ALSA: hda - fix array indexing while creating inputs for Cirrus codecs
author
Brian J. Tarricone
<brian@tarricone.org>
Mon, 3 May 2010 00:32:10 +0000
(17:32 -0700)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 5 May 2010 07:45:33 +0000
(09:45 +0200)
This fixes a problem where cards show up as only having a single mixer
element, suppressing all sound output.
Signed-off-by: Brian J. Tarricone <brian@tarricone.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_cirrus.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_cirrus.c
b/sound/pci/hda/patch_cirrus.c
index 7de782a5b8f4ccb784707e4027f111c12538b27b..350ee8ac415382b5f53a536a61f2422f44ac0ec3 100644
(file)
--- a/
sound/pci/hda/patch_cirrus.c
+++ b/
sound/pci/hda/patch_cirrus.c
@@
-766,7
+766,7
@@
static int build_input(struct hda_codec *codec)
for (n = 0; n < AUTO_PIN_LAST; n++) {
if (!spec->adc_nid[n])
continue;
- err = snd_hda_add_nid(codec, kctl, 0, spec->adc_nid[
i
]);
+ err = snd_hda_add_nid(codec, kctl, 0, spec->adc_nid[
n
]);
if (err < 0)
return err;
}