ASoC: SOF: Intel: fix the suspend procedure to support s0ix entry
authorMarcin Rajwa <marcin.rajwa@linux.intel.com>
Mon, 27 Jul 2020 18:36:12 +0000 (11:36 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 28 Jul 2020 15:22:34 +0000 (16:22 +0100)
commit195f101980dc4c0d0093007d7daac68ec2270f95
tree31774a6180deea15d30bc44c3d41a9a0fcea82ec
parent950039fcb3f0e99822ca5b5af4120bed899cc193
ASoC: SOF: Intel: fix the suspend procedure to support s0ix entry

This patch fixes the suspend & resume procedure to allow entry into the
low power states with some streams being active as a wake source - wake on
voice is a perfect example. The current implementation does not stop
the CORB/RIRB DMA and does not power down the HDA links. With firmware's
help, the platform has been able to still enter s0ix state on older
platforms, but the sequence is still incorrect, and the additional
driver actions are needed to ensure correct s0ix behaviour.

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200727183613.1419005-2-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dsp.c