summaryrefslogtreecommitdiffstats
path: root/sound/soc/mediatek/common
diff options
context:
space:
mode:
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>2024-02-08 15:34:32 +0200
committerMark Brown <broonie@kernel.org>2024-02-08 14:03:24 +0000
commitd7332c4a4f1a7d16f054c6357fb65c597b6a86a7 (patch)
tree3b14df46e2ed0dd3342a49213f0403c5f629c6a4 /sound/soc/mediatek/common
parentc14f09f010cc569ae7e2f6ef02374f6bfef9917e (diff)
downloadlinux-stable-d7332c4a4f1a7d16f054c6357fb65c597b6a86a7.tar.gz
linux-stable-d7332c4a4f1a7d16f054c6357fb65c597b6a86a7.tar.bz2
linux-stable-d7332c4a4f1a7d16f054c6357fb65c597b6a86a7.zip
ASoC: SOF: ipc3-topology: Fix pipeline tear down logic
With the change in the widget free logic to power down the cores only when the scheduler widgets are freed, we need to ensure that the scheduler widget is freed only after all the widgets associated with the scheduler are freed. This is to ensure that the secondary core that the scheduler is scheduled to run on is kept powered on until all widgets that need them are in use. While this works well for dynamic pipelines, in the case of static pipelines the current logic does not take this into account and frees all widgets in the order they occur in the widget_list. So, modify this to ensure that the scheduler widgets are freed only after all other types of widgets in the widget_list are freed. Link: https://github.com/thesofproject/linux/issues/4807 Fixes: 31ed8da1c8e5 ("ASoC: SOF: sof-audio: Modify logic for enabling/disabling topology cores") 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/20240208133432.1688-1-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek/common')
0 files changed, 0 insertions, 0 deletions