Need to add a reply to ctrl data, since the structure can be returned to host e.g. during kcontrol get() calls.
Signed-off-by: Liam Girdwood liam.r.girdwood@linux.intel.com --- src/include/uapi/ipc.h | 2 +- src/ipc/intel-ipc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/include/uapi/ipc.h b/src/include/uapi/ipc.h index fb7e3b9..cbccb55 100644 --- a/src/include/uapi/ipc.h +++ b/src/include/uapi/ipc.h @@ -470,7 +470,7 @@ struct sof_ipc_ctrl_value_comp {
/* generic control data */ struct sof_ipc_ctrl_data { - struct sof_ipc_hdr hdr; + struct sof_ipc_reply rhdr; uint32_t comp_id;
/* control access and data type */ diff --git a/src/ipc/intel-ipc.c b/src/ipc/intel-ipc.c index 18d8732..01c83b6 100644 --- a/src/ipc/intel-ipc.c +++ b/src/ipc/intel-ipc.c @@ -579,7 +579,7 @@ static int ipc_comp_value(uint32_t header, uint32_t cmd) }
/* write component values to the outbox */ - mailbox_hostbox_write(0, data, data->hdr.size); + mailbox_hostbox_write(0, data, data->rhdr.hdr.size); return 1; }