ALSA: hda - Turn on PIN_OUT from hdmi playback prepare.
authorDylan Reid <dgreid@chromium.org>
Fri, 20 Jul 2012 00:52:58 +0000 (17:52 -0700)
committerTakashi Iwai <tiwai@suse.de>
Fri, 20 Jul 2012 05:47:01 +0000 (07:47 +0200)
commit9e76e6d031482194a5b24d8e9ab88063fbd6b4b5
tree08a5d2404be1c47d69ae615003563676ffe7793b
parent1558eb838ff502faafacf26b6a711dbaae796009
ALSA: hda - Turn on PIN_OUT from hdmi playback prepare.

Turn on the pin widget's PIN_OUT bit from playback prepare. The pin is
enabled in open, but is disabled in hdmi_init_pin which is called during
system resume.  This causes a system suspend/resume during playback to
mute HDMI/DP. Enabling the pin in prepare instead of open allows calling
snd_pcm_prepare after a system resume to restore audio.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c