From e6aa5fba3509e0d663aa170d12f07c98f3683bf5 Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Wed, 27 Nov 2024 15:36:10 +0200 Subject: [PATCH] [DNM] audio: add debug to ipcgtw creation Signed-off-by: Kai Vehmanen --- src/audio/buffers/comp_buffer.c | 4 ++++ src/audio/copier/copier_ipcgtw.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/audio/buffers/comp_buffer.c b/src/audio/buffers/comp_buffer.c index 62f90bd2b5c9..f94260ecd42f 100644 --- a/src/audio/buffers/comp_buffer.c +++ b/src/audio/buffers/comp_buffer.c @@ -544,6 +544,10 @@ void buffer_attach(struct comp_buffer *buffer, struct list_item *head, int dir) { struct list_item *list = buffer_comp_list(buffer, dir); CORE_CHECK_STRUCT(&buffer->audio_buffer); + if (!head || !head->next) + printk("E: attach head=%p next=%p\n", head, head ? head->next : 0); + if (!list || !list->next) + printk("E: attach list=%p next=%p\n", list, list ? list->next : 0); list_item_prepend(list, head); } diff --git a/src/audio/copier/copier_ipcgtw.c b/src/audio/copier/copier_ipcgtw.c index 20d20b864652..3491818fbe61 100644 --- a/src/audio/copier/copier_ipcgtw.c +++ b/src/audio/copier/copier_ipcgtw.c @@ -263,6 +263,7 @@ int copier_ipcgtw_create(struct comp_dev *dev, struct copier_data *cd, goto e_ipcgtw; } + printk("ipcgtwcreate: ep create %d\n", cd->endpoint_num); if (cd->direction == SOF_IPC_STREAM_PLAYBACK) { comp_buffer_connect(dev, config->core, cd->endpoint_buffer[cd->endpoint_num],