Skip to content

Commit

Permalink
ghd: Fix build error for ghd
Browse files Browse the repository at this point in the history
Size parameter is moved from
struct sof_ipc_reply to struct sof_ipc_cmd_hdr.
Added changes accordingly.

Signed-off-by: Vamshi Krishna Gopal <[email protected]>
  • Loading branch information
Vamshigopal authored and lgirdwood committed Sep 8, 2022
1 parent 46395ec commit 9a2931f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/google_hotword_detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static struct comp_dev *ghd_create(const struct comp_driver *drv,
cd->event.event_type = SOF_CTRL_EVENT_KD;
cd->event.num_elems = 0;

cd->msg = ipc_msg_init(cd->event.rhdr.hdr.cmd, cd->event.rhdr.size);
cd->msg = ipc_msg_init(cd->event.rhdr.hdr.cmd, cd->event.rhdr.hdr.size);
if (!cd->msg) {
comp_err(dev, "ghd_create(): ipc_msg_init failed");
goto cd_fail;
Expand Down

0 comments on commit 9a2931f

Please sign in to comment.