ASoC: SOF: topology: Set control_data->cmd alongside scontrol->cmd
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 15 Dec 2021 18:03:59 +0000 (10:03 -0800)
committerMark Brown <broonie@kernel.org>
Wed, 15 Dec 2021 22:16:42 +0000 (22:16 +0000)
commit8af783723f41d3b3d4f7f8452f190405e7059472
tree66306b6e567a6c41f4c84b3c6f11621f82e5f568
parentd4a06c4334aed1fe76ae2b7aaae6ee8b72f30a8e
ASoC: SOF: topology: Set control_data->cmd alongside scontrol->cmd

Set the scontrol->control_data->cmd early to the same as scontrol->cmd.

This is a preparatory patch to remove the ctrl_cmd parameter for the
snd_sof_ipc_set_get_comp_data() function.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.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: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20211215180404.53254-4-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c