probe: Properly send response code for custom responses.

Status (error) code in custom Probe responses is now reported properly.

Signed-off-by: Artur Kloniecki <arturx.kloniecki@linux.intel.com>
This commit is contained in:
Artur Kloniecki 2020-03-11 12:32:44 +01:00 committed by Liam Girdwood
parent c33b7a58d7
commit ae211e1f31
1 changed files with 1 additions and 0 deletions

View File

@ -918,6 +918,7 @@ static int ipc_probe_info(uint32_t header)
/* write data to the outbox */
if (params->rhdr.hdr.size <= MAILBOX_HOSTBOX_SIZE &&
params->rhdr.hdr.size <= SOF_IPC_MSG_MAX_SIZE) {
params->rhdr.error = ret;
mailbox_hostbox_write(0, params, params->rhdr.hdr.size);
ret = 1;
} else {