]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: SOF: ipc4-topology: Handle SOF_DBG_DISABLE_MULTICORE flag for pipelines
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 20 May 2026 13:55:13 +0000 (16:55 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 21 May 2026 10:25:21 +0000 (11:25 +0100)
SOF_DBG_DISABLE_MULTICORE is handled for swidgets in topology.c but the
pipeline's core is not changed to primary core if the flag is set.

Check the flag and if it is set, force the pipeline core to primary core.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://patch.msgid.link/20260520135514.32720-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c

index 76812d8fb567ffe0b3bc952712eb2f88c4b472c9..94851ad809fc55ce951ba3c26d9ac9edbafedb26 100644 (file)
@@ -942,6 +942,9 @@ static int sof_ipc4_widget_setup_comp_pipeline(struct snd_sof_widget *swidget)
                goto err;
        }
 
+       if (sof_debug_check_flag(SOF_DBG_DISABLE_MULTICORE))
+               pipeline->core_id = SOF_DSP_PRIMARY_CORE;
+
        swidget->core = pipeline->core_id;
        spipe->core_mask |= BIT(pipeline->core_id);
        if (pipeline->direction_valid) {