]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit952822076e715e3af21c78bb3e3ae79c79109e26
treeb89c5f11bd4aadc0c7d2fb797b7cafcfb85e5486
parent84d5705009befe03753d08d37aeffb6e7ea7a3a7
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: f041dfb9a764 ("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