]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: pm: Always tear down pipelines before DSP suspend
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Tue, 20 Dec 2022 12:56:28 +0000 (14:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:27 +0000 (08:34 +0100)
commit3c9e37eb715f63aed47281beee5b3029ef87e3a0
treea7303bc72117a40a8b45aada49584c8f13182d17
parentd0b3141ed49a4fef0002f20b31b23493052e096f
ASoC: SOF: pm: Always tear down pipelines before DSP suspend

[ Upstream commit 458ddf0b57e175058e75eea637aadcf69c98c96c ]

When the DSP is suspended while the firmware is in the crashed state, we
skip tearing down the pipelines. This means that the widget reference
counts will not get to reset to 0 before suspend. This will lead to
errors with resuming audio after system resume. To fix this, invoke the
tear_down_all_pipelines op before skipping to DSP suspend.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Curtis Malainey <cujomalainey@chromium.org>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20221220125629.8469-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/sof/pm.c