ASoC: SOF: ipc4-topology: Move the kcontrol module_id update to helper
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 16 Mar 2023 15:11:32 +0000 (17:11 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 17 Mar 2023 13:05:55 +0000 (13:05 +0000)
commit04b522a4d2acf8447d69bf87b3ab67d5e6d631a2
tree0f8d737c91ab67f1e27dd2a469dceec55e49eb5f
parent1d8777d21fbb36c4a0e103eb128ca86f9761e61c
ASoC: SOF: ipc4-topology: Move the kcontrol module_id update to helper

Introduce a helper function to update the message template for a kcontrol
associated with a widget.

In this way the helper can be re-used by other components later.

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