Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: SOF: amd: Add support for IPC with a reply_size set to zero

Add support for IPC tx_message with a reply_size set to zero,
return zero when message reply_size is zero at acp_dsp_ipc_get_reply().

Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link: https://lore.kernel.org/r/20230614103707.2246296-1-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Venkata Prasad Potturu and committed by
Mark Brown
fd01a151 a3f6df1b

+7
+7
sound/soc/sof/amd/acp-ipc.c
··· 130 130 memcpy(msg->reply_data, &reply, sizeof(reply)); 131 131 ret = reply.error; 132 132 } else { 133 + /* 134 + * To support an IPC tx_message with a 135 + * reply_size set to zero. 136 + */ 137 + if (!msg->reply_size) 138 + goto out; 139 + 133 140 /* reply correct size ? */ 134 141 if (reply.hdr.size != msg->reply_size && 135 142 !(reply.hdr.cmd & SOF_IPC_GLB_PROBE)) {