ASoC: SOF: ipc4-topology: Correct data structures for the SRC module
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 29 Nov 2023 13:14:10 +0000 (15:14 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 1 Dec 2023 14:13:02 +0000 (14:13 +0000)
commitc447636970e3409ac39f0bb8c2dcff6b726f36b0
tree675de3cb959b182b4dd7c19189e8f30be60e62bf
parenta0575b4add21a243cc3257e75ad913cd5377d5f2
ASoC: SOF: ipc4-topology: Correct data structures for the SRC module

Separate the IPC message part as struct sof_ipc4_src_data. This struct
describes the message payload passed to the firmware via the mailbox.

It is not wise to be 'clever' and try to use the first part of a struct
as IPC message without marking the message section as packed and aligned.

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: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20231129131411.27516-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c
sound/soc/sof/ipc4-topology.h