ASoC: SOF: ipc4-loader/topology: Query the CPC value from manifest
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Mon, 22 May 2023 10:13:13 +0000 (13:13 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 22 May 2023 10:18:38 +0000 (11:18 +0100)
commitd8a2c987934959dd1f27de75401625650cd25e47
tree46a55c6a28ae4ba5147eefa43f99b59d797ad672
parent9caa90180512581821d7498132f952ebd4ba05ad
ASoC: SOF: ipc4-loader/topology: Query the CPC value from manifest

The manifest's firmware module configuration section contains the measured
CPC values along with a matching IBS/OBS values.

The CPC can be looked up by looking for a matching IBS/OBS entry.
In case of multiple matches we will use the highest CPC value.

If there is no mod_cfg or no CPC value (all 0) or no match was found then
print warning message and use 0 as CPC value.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20230522101313.12519-6-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-loader.c
sound/soc/sof/ipc4-priv.h
sound/soc/sof/ipc4-topology.c