summaryrefslogtreecommitdiff
path: root/sound/soc/sof/topology.c
diff options
context:
space:
mode:
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>2022-03-07 10:10:56 -0800
committerMark Brown <broonie@kernel.org>2022-03-08 12:27:41 +0000
commit3a790f3a7c283d94325a85ac6ee4d1458e89b645 (patch)
tree37817096999f82a469307071d60f0603c22e3881 /sound/soc/sof/topology.c
parent80df2226268f039326f9daebd25047cf15e22497 (diff)
downloadlwn-3a790f3a7c283d94325a85ac6ee4d1458e89b645.tar.gz
lwn-3a790f3a7c283d94325a85ac6ee4d1458e89b645.zip
ASoC: SOF: set swidget's core for scheduler widget
Set the swidget's core for scheduler type widgets to match that of the pipeline core. This simplifies the flow for core get/put during widget setup/free. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20220307181111.49392-4-ranjani.sridharan@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/topology.c')
-rw-r--r--sound/soc/sof/topology.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/sof/topology.c b/sound/soc/sof/topology.c
index 1d119d1dd69d..add0b3009588 100644
--- a/sound/soc/sof/topology.c
+++ b/sound/soc/sof/topology.c
@@ -1707,6 +1707,7 @@ static int sof_widget_load_pipeline(struct snd_soc_component *scomp, int index,
pipeline->period_mips, pipeline->core, pipeline->frames_per_sched,
swidget->dynamic_pipeline_widget);
+ swidget->core = pipeline->core;
swidget->private = pipeline;
return 0;