]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Drop ipc_cmd parameter for snd_sof_ipc_set_get_comp_data()
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 15 Dec 2021 18:03:58 +0000 (10:03 -0800)
committerMark Brown <broonie@kernel.org>
Wed, 15 Dec 2021 22:16:41 +0000 (22:16 +0000)
commit21058bfaf9e2277e175c54629272312f23d32c91
tree814d02686f3a34c37fef07de3420cc07a563c1e5
parentf180119c24403125c83a7a2b71d9e21a2286f676
ASoC: SOF: Drop ipc_cmd parameter for snd_sof_ipc_set_get_comp_data()

The correct ipc_cmd can be selected based on the `ctrl_cmd` and the `set`
parameters:
if the ctrl_cmd is SOF_CTRL_CMD_BINARY then SOF_IPC_COMP_*_DATA
otherwise SOF_IPC_COMP_*_VALUE.

The SET or GET direction can be selected with the use of `set` parameter.

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-3-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/control.c
sound/soc/sof/ipc.c
sound/soc/sof/sof-audio.c
sound/soc/sof/sof-audio.h