]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SOF: Validate and correct the core id against the number of cores of the DSP
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 20 May 2026 13:55:14 +0000 (16:55 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 21 May 2026 10:25:22 +0000 (11:25 +0100)
commitd9265a36f4be6f322814e0eb255e4e29b39dd5cc
tree9ef31b893f67c679aff5a196d5c14021ef963390
parent3d1b78a6119f58c22730ae2aff3e6065ca3f043a
ASoC: SOF: Validate and correct the core id against the number of cores of the DSP

Generic development topologies can reference core id outside of the range
of the number of DSP cores the device might have.
Product families have different number of cores, for example:
Intel TGL has 4, TGL-H has 2, ADL has 4, ADL-S has 2, etc
The development topologies are tuned for the higher end devices and in this
case they will fail on DSP with less number of cores.

Override the out of range core id from topology to primary core and inform
the user about it.

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-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc3-topology.c
sound/soc/sof/ipc4-topology.c
sound/soc/sof/topology.c