ASoC: Intel: bxtn: Update DSP core state in D0
authorJeeja KP <jeeja.kp@intel.com>
Mon, 13 Mar 2017 16:41:26 +0000 (22:11 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 15 Mar 2017 17:28:01 +0000 (17:28 +0000)
commit1fb344a33a2f99378128281df97770e2c5182c2d
tree8a053286b60a713f9371068d59d63234816645fe
parent5518af9f97940e84de6a4bf6fed212a95278f818
ASoC: Intel: bxtn: Update DSP core state in D0

In system suspend, firmware needs to be re-downloaded as IMR is cleared.
When firmware is downloaded in D0, core state is not set to running
state causing instability with subsequent D0-D3 cycles.

So set the core state correctly during D0 and check the DSP core state
if not in reset to set the DSP to D3.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/bxt-sst.c
sound/soc/intel/skylake/skl-sst-dsp.c