Skip to content

Commit

Permalink
ALSA: HDA: Fixup Realtek headphone pin initialization
Browse files Browse the repository at this point in the history
This typo caused headphone pins not to be initialized correctly.

BugLink: https://bugs.launchpad.net/bugs/871582
Reported-by: Effenberg
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
David Henningsson authored and Takashi Iwai committed Oct 13, 2011
1 parent 6c5c04e commit 636030e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -3263,7 +3263,7 @@ static void alc_auto_init_extra_out(struct hda_codec *codec)
int i;
hda_nid_t pin, dac;

for (i = 0; i < spec->autocfg.speaker_outs; i++) {
for (i = 0; i < spec->autocfg.hp_outs; i++) {
pin = spec->autocfg.hp_pins[i];
if (!pin)
break;
Expand Down

0 comments on commit 636030e

Please sign in to comment.