Skip to content

Commit

Permalink
ALSA: hda - fix array indexing while creating inputs for Cirrus codecs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brian J. Tarricone authored and Takashi Iwai committed May 5, 2010
1 parent 5c1bccf commit 8dd34ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_cirrus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8dd34ab

Please sign in to comment.