Skip to content

Commit

Permalink
chain_dma: fix compilation error
Browse files Browse the repository at this point in the history
Fixes compilation error when CONFIG_XRUN_NOTIFICATIONS_ENABLE is enabled.

Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
  • Loading branch information
serhiy-katsyuba-intel committed Sep 18, 2024
1 parent 76e650e commit cf76b51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/chain_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src/include/ipc4/notification.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions src/ipc/ipc4/notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <sof/common.h>
#include <stdbool.h>
#include <ipc4/notification.h>
#include <sof/ipc/msg.h>

#if CONFIG_XRUN_NOTIFICATIONS_ENABLE
void xrun_notif_msg_init(struct ipc_msg *msg_xrun, uint32_t resource_id, uint32_t event_type)
Expand Down

0 comments on commit cf76b51

Please sign in to comment.