ALSA: hda - Fix the lost power-setup of seconary pins after PM resume
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Jan 2012 11:34:11 +0000 (12:34 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 00:13:11 +0000 (16:13 -0800)
commitc2a3399e462a3ba07fffbe641536a71cacd0bea7
tree49bcc61e7030860af2f71b23d512485e2e493a78
parent0c7fe97698c04555a492c3fddc3d64efb7bad674
ALSA: hda - Fix the lost power-setup of seconary pins after PM resume

commit f2cbba7602383cd9cdd21f0a5d0b8bd1aad47b33 upstream.

When multiple headphone or other detectable output pins are present,
the power-map has to be updated after resume appropriately, but the
current driver doesn't check all pins but only the first pin (since
it's enough to check it for the mute-behavior).  This resulted in the
silent output from the secondary outputs after PM resume.

This patch fixes the problem by checking all pins at (re-)init time.

Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=740347

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/hda/patch_sigmatel.c