diff --git a/app/boards/intel_adsp_ace15_mtpm.conf b/app/boards/intel_adsp_ace15_mtpm.conf index 822065633356..29df0d961670 100644 --- a/app/boards/intel_adsp_ace15_mtpm.conf +++ b/app/boards/intel_adsp_ace15_mtpm.conf @@ -111,3 +111,5 @@ CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK=y CONFIG_KCPS_DYNAMIC_CLOCK_CONTROL=y CONFIG_TIMING_FUNCTIONS=y + +CONFIG_XRUN_NOTIFICATIONS_ENABLE=y diff --git a/src/audio/chain_dma.c b/src/audio/chain_dma.c index 77081b962bb3..1f495c59d1b1 100644 --- a/src/audio/chain_dma.c +++ b/src/audio/chain_dma.c @@ -659,7 +659,7 @@ static struct comp_dev *chain_task_create(const struct comp_driver *drv, goto error_cd; #if CONFIG_XRUN_NOTIFICATIONS_ENABLE - cd->msg_xrun = ipc_msg_init(header.dat, + cd->msg_xrun = ipc_msg_init(cdma->primary.dat, sizeof(struct ipc4_resource_event_data_notification)); if (!cd->msg_xrun) goto error_cd; diff --git a/src/include/ipc4/notification.h b/src/include/ipc4/notification.h index 658cbcc50ce1..60a0341c75a7 100644 --- a/src/include/ipc4/notification.h +++ b/src/include/ipc4/notification.h @@ -255,3 +255,7 @@ struct ipc4_resource_event_data_notification { /* Detailed event data */ union ipc4_resource_event_data event_data; } __packed __aligned(8); + +#if CONFIG_XRUN_NOTIFICATIONS_ENABLE +void xrun_notif_msg_init(struct ipc_msg *msg_xrun, uint32_t resource_id, uint32_t event_type); +#endif diff --git a/src/ipc/ipc4/notification.c b/src/ipc/ipc4/notification.c index df7277f7dbce..b46c2015ccad 100644 --- a/src/ipc/ipc4/notification.c +++ b/src/ipc/ipc4/notification.c @@ -8,6 +8,7 @@ #include #include #include +#include #if CONFIG_XRUN_NOTIFICATIONS_ENABLE void xrun_notif_msg_init(struct ipc_msg *msg_xrun, uint32_t resource_id, uint32_t event_type)