Skip to content

Commit 768e34d

Browse files
Venkata-Prasad-Potturuplbossart
authored andcommitted
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>
1 parent 0efaf69 commit 768e34d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

sound/soc/sof/amd/acp-ipc.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ static void acp_dsp_ipc_get_reply(struct snd_sof_dev *sdev)
130130
memcpy(msg->reply_data, &reply, sizeof(reply));
131131
ret = reply.error;
132132
} 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+
133140
/* reply correct size ? */
134141
if (reply.hdr.size != msg->reply_size &&
135142
!(reply.hdr.cmd & SOF_IPC_GLB_PROBE)) {

0 commit comments

Comments
 (0)