diff options
author | Ranjani Sridharan <ranjani.sridharan@linux.intel.com> | 2023-11-24 15:57:43 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-11-24 14:15:06 +0000 |
commit | 31ed8da1c8e5e504710bb36863700e3389f8fc81 (patch) | |
tree | 31439f664aa8b3e37e9748a59b046d25ce733f8c /sound/soc/sof/mediatek | |
parent | 0376b995bb7a65fb0c056f3adc5e9695ad0c1805 (diff) |
ASoC: SOF: sof-audio: Modify logic for enabling/disabling topology cores
In the current code, we enable a widget core when it is set up and
disable it when it is freed. This is problematic with IPC4 because
widget free is essentially a NOP and all widgets are freed in the
firmware when the pipeline is deleted. This results in a crash during
pipeline deletion when one of it's widgets is scheduled to run on a
secondary core and is powered off when widget is freed. So, change the
logic to enable all cores needed by all the modules in a pipeline when
the pipeline widget is set up and disable them after the pipeline
widget is freed.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@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/20231124135743.24674-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/mediatek')
0 files changed, 0 insertions, 0 deletions