ASoC: SOF: Intel: TGL: set shutdown callback to hda_dsp_shutdown
authorLibin Yang <libin.yang@intel.com>
Mon, 22 Mar 2021 16:37:24 +0000 (11:37 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 23 Mar 2021 17:14:27 +0000 (17:14 +0000)
commit22aa9e021ad1ee7ce640270e75f4bdccff65d287
treeb89c5f11bd4aadc0c7d2fb797b7cafcfb85e5486
parent3c429f861ed483517a0a352281a16503bcc60b55
ASoC: SOF: Intel: TGL: set shutdown callback to hda_dsp_shutdown

According to hardware spec and PMC FW requirement, the DSP must be
in D3 state before entering S5. Define the shutdown function to use
snd_sof_suspend as shutdown callback to make sure DSP is in D3 state.

Fixes: 44a4cfad8d78 ("ASoC: SOF: Intel: tgl: do thorough remove at .shutdown() callback")
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210322163728.16616-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dsp.c
sound/soc/sof/intel/hda.h
sound/soc/sof/intel/tgl.c