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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:31:28 +0000 (08:31 -0700)
commit761f186a0f94f7bd1c9c844f96cf0b8bbb6e2abb
treefa35d1b37970b5ff03049ce62559da6975c23b6c
parent4e613aa6c586c99341a3ca40fd7f872b7dee1749
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_hdmi.c