]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Add rx_data pointer to snd_sof_ipc_msg struct
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 5 May 2022 09:48:16 +0000 (12:48 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 5 May 2022 12:24:43 +0000 (13:24 +0100)
commita6d95352e26c229f951a0a8962dab0735c52cf61
tree6686cf45cb2ef637effd74c493c195e40d7efdf2
parentaf2b9a9e71ad429005671be89902d539063ea522
ASoC: SOF: Add rx_data pointer to snd_sof_ipc_msg struct

The rx_data pointer can be used by IPC implementations to pass the received
message (or part of the message, like the header) from platform code to
generic, high level IPC code.

IPC4 is going to be the first user of this as its implementation on Intel
platforms detaches the header and payload and the rx cannot be handled in
a similar way as it is implemented for ipc3.

If the rx_data is dynamically allocated, it is up to the platform code to
free it up.
After the message reception handling (rx_msg ops) returned, the pointer via
the msg->rx_data should be considered as invalid.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220505094818.10346-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/sof-priv.h