ASoC: SOF: ipc4-topology: Add module parameter to ignore the CPC value
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 22 Aug 2023 06:54:19 +0000 (09:54 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 22 Aug 2023 11:48:32 +0000 (12:48 +0100)
commit26ef47e5ba600ead306ee19e0bf56c1bf59213a3
tree5fba25f5b333fd944188f05e95dbca03cd66b40b
parent2cbd5304ea393f0ca3aeebec2f6554a32ac02ce3
ASoC: SOF: ipc4-topology: Add module parameter to ignore the CPC value

Add a new module parameter ipc4_ignore_cpc which can be used to force the
kernel to ignore the queried CPC value for all firmware modules and use 0
instead.

The CPC lookup is still done to report missing configurations and the
debug print is going to be different to be explicit that the CPC is ignored
and what was the value we would have used.

The CPC value is sent to the firmware with the MOD_INIT_INSTANCE message
and it is used by the firmware as a parameter for clock scaling.

The flag is intended to be used only when there is a need to validate the
firmware behavior regarding to clock scaling since the 0 CPC value will
force the DSP to run in full speed, disabling the scaling and provides
additional counter point to rule out clock management related issues.

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