summaryrefslogtreecommitdiff
path: root/sound/soc/sof/ipc3-pcm.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>2022-03-30 13:19:23 -0700
committerMark Brown <broonie@kernel.org>2022-04-04 08:39:08 +0100
commit5db8eb5b9e35c712cc63fcebf04c80ace9812961 (patch)
tree4916e637854a9f3d5872a1c7a5c086897daf91b2 /sound/soc/sof/ipc3-pcm.c
parent249ee180874dd48a809caf70981b2aa800329d27 (diff)
downloadlwn-5db8eb5b9e35c712cc63fcebf04c80ace9812961.tar.gz
lwn-5db8eb5b9e35c712cc63fcebf04c80ace9812961.zip
ASoC: SOF: ipc: Use msg->reply_data directly in snd_sof_ipc_get_reply()
Instead of using a local reply to first read out the header from the mailbox then memcpy it or read it again to msg->reply_data, read it directly to it's final place from the start. If we received an error we do not need to do a memcpy anymore. If the reply is reporting a success then we don not need to read the reply again from the mailbox if the reply_size equals to the already read header size. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/20220330201926.1330402-9-ranjani.sridharan@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/ipc3-pcm.c')
0 files changed, 0 insertions, 0 deletions