]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: ipc: Do not allocate buffer for msg_data
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 28 Jan 2022 13:36:20 +0000 (15:36 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jan 2022 15:59:39 +0000 (15:59 +0000)
commitefe93188663babe39e1e9972fc93fcecd27878d7
treec749bd70c0db01d678fcd6ab1cdbf21948982a1f
parentdae3c7e96488145cdd6a978daa99c5a6b3f652ff
ASoC: SOF: ipc: Do not allocate buffer for msg_data

The sof_ipc_tx_message does not have support for async operations.
There is no need to allocate a buffer and copy each message to it to be
sent to the DSP, we can use the passed message data pointer directly.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220128133620.9411-4-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc.c