ALSA: hda - Fix HP/line-out initialization with IDT/STAC codecs
authorTakashi Iwai <tiwai@suse.de>
Mon, 14 Sep 2009 13:36:14 +0000 (15:36 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 14 Sep 2009 13:36:14 +0000 (15:36 +0200)
commit5f380eb1eff2031b5101a64c76b54cca8e1c7079
tree614f6422b85859756dba9099a7ce2fdf6cfc365a
parentfc64b26cfa3c7ee5ba23ab549ecd6415bed6b0eb
ALSA: hda - Fix HP/line-out initialization with IDT/STAC codecs

It's possible that hp_detect is set even though no headphone pin is
detected.  The driver issues, however, an unsol event only to hp_pins[0],
which can be invalid.

This patch adds the check of the valid pin to send an unsol event
at initialization and resume callbacks.

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