ASoC: SOF: ipc4-topology: Update the basecfg for copier earlier
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 9 Aug 2023 12:56:56 +0000 (15:56 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 9 Aug 2023 12:59:47 +0000 (13:59 +0100)
commite6475ce253187d2e68867102fddd57341ebbf8eb
tree43b482816596e18676e5821830df6ff8d5c4a955
parent90219f1bd273055f1dc1d7bdc0965755b992c045
ASoC: SOF: ipc4-topology: Update the basecfg for copier earlier

The sof_ipc4_update_resource_usage() call updates the CPC value in basecfg
and it must be done prior to making a copy of the copier configuration
for the init message.
Other module types do the resource update as last step or in case of a
process module at the correct time, before the memcpy.

Fixes: d8a2c9879349 ("ASoC: SOF: ipc4-loader/topology: Query the CPC value from manifest")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Chao Song <chao.song@linux.intel.com>
Link: https://lore.kernel.org/r/20230809125656.27585-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c