]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: handle paused streams during system suspend
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Tue, 23 Nov 2021 17:16:06 +0000 (19:16 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 24 Nov 2021 12:57:25 +0000 (12:57 +0000)
commit5ef7d63fec1fc385889e8413cc83f67f294e125d
treecf63a338b8e692706449248b993c6f27d99078f2
parente822a8ead575aa075ebb87b14d26dae8cbe5d242
ASoC: SOF: handle paused streams during system suspend

During system suspend, paused streams do not get suspended.
Therefore, we need to explicitly free these PCMs in the DSP
and free the associated DAPM widgets so that they can be set
up again during resume.

Fixes: 82013ba0c17f ("ASoC: SOF: Add support for dynamic pipelines")
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com>
Reviewed-by: Bard Liao <bard.liao@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20211123171606.129350-3-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/pcm.c
sound/soc/sof/sof-audio.c
sound/soc/sof/sof-audio.h