ASoC: hdac_hdmi: Enable pin and converter in prepare
authorJeeja KP <jeeja.kp@intel.com>
Tue, 10 Jan 2017 12:27:48 +0000 (17:57 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 19 Jan 2017 15:43:04 +0000 (15:43 +0000)
commit1de777fed54dfa93e166a3c934c5846920b86f0c
treeda3f82971e64619e9734e8a20e57ec25b4ada4a4
parenta700a1e65aa3ee76d2e8c58150ee7b7272d93608
ASoC: hdac_hdmi: Enable pin and converter in prepare

Instead of enabling pin and cvt in pcm_open(), need to restore pin and
cvt state after system resume to restart the playback which is
paused/stopped before system suspend.
So enable pin and cvt in playback_prepare and call prepare when trigger
cmd is paused/started and resume to reconfigure pin and cvt.

Signed-off-by: Sachin Mokashi <sachinx.mokashi@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hdmi.c