OSDN Git Service

ASoC: SOF: topology: fix the process being scheduled on core0 always
authorKeyon Jie <yang.jie@linux.intel.com>
Mon, 21 Sep 2020 10:45:44 +0000 (13:45 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 21 Sep 2020 16:28:08 +0000 (17:28 +0100)
commit2263063fc4880d544a1eb87713f642384fe03cb7
treedc8e6fc2cc1b18c4a84d022574a3648edfe66b0b
parentd5214321498a43558d9ffcce4153775c2c296bad
ASoC: SOF: topology: fix the process being scheduled on core0 always

In commit 783898ce68de ("ASoC: SOF: append extended data to
sof_ipc_comp_process") the process components are set to run on the
fixed core 0, this break us from scheduling components on any other DSP
core.

Since we can get the DSP core index from swidget->core, it is duplicated
to pass the extra 'core' argument for those sof_widget_load_xx()
functions.

Here removes the duplicate 'core' argument and get component core from
swidget->core directly to fix the issue mentioned above.

Fixes: 783898ce68de ("ASoC: SOF: append extended data to sof_ipc_comp_process")
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Reviewed-by: Jaska Uimonen <jaska.uimonen@intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200921104544.2897112-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c