From 636030e90ed85a895061060ceb70873d22269420 Mon Sep 17 00:00:00 2001
From: David Henningsson <david.henningsson@canonical.com>
Date: Wed, 12 Oct 2011 19:26:03 +0200
Subject: [PATCH] ALSA: HDA: Fixup Realtek headphone pin initialization
Git-commit: 636030e90ed85a895061060ceb70873d22269420
Patch-mainline: 3.2-rc1
References: FATE#314311

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>

---
 sound/pci/hda/patch_realtek.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -3267,7 +3267,7 @@ static void alc_auto_init_extra_out(stru
 	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;
