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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 2 Aug 2012 13:37:53 +0000 (14:37 +0100)
commita7c5635a91e082f0ac07df5fed58014d70296ef6
treec21ffc46e78bc19a33dae482342aab0337874d27
parent0bc80e0aca34d785bf3b4476a11e4aba668a6979
ALSA: hda - Turn on PIN_OUT from hdmi playback prepare.

commit 9e76e6d031482194a5b24d8e9ab88063fbd6b4b5 upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/pci/hda/patch_hdmi.c