[Sound-open-firmware] [PATCH] ipc: ctrl: Add reply header to control data structure
Liam Girdwood
liam.r.girdwood at linux.intel.com
Fri Sep 8 15:44:52 CEST 2017
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 at 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;
}
--
2.11.0
More information about the Sound-open-firmware
mailing list