From: David Henningsson Date: Wed, 12 Oct 2011 17:26:03 +0000 (+0200) Subject: ALSA: HDA: Fixup Realtek headphone pin initialization X-Git-Tag: upstream/snapshot3+hdmi~8798^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=636030e90ed85a895061060ceb70873d22269420;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ALSA: HDA: Fixup Realtek headphone pin initialization 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index bf53663..6a4128d 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -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;