Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/audio/ecns/ecns.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ static void ecns_stream_init(struct ecns_stream *s, struct comp_buffer *buf)
{
uint32_t sample_bytes;

s->buf = buf;
*s = (struct ecns_stream){ .buf = buf };
if (!buf)
return;

Expand Down
10 changes: 6 additions & 4 deletions src/audio/kpb.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,9 @@ static int kpb_bind(struct comp_dev *dev, const struct bind_info *bind_data)
sink_buf_id = buf_get_id(sink);

if (sink_buf_id == buf_id) {
struct comp_dev *sc = comp_buffer_get_sink_component(sink);
comp_dbg(dev, "kpb_bind: buf_id=%d sink_comp=0x%x -> %s",
buf_id, sc ? dev_comp_id(sc) : 0, sink_buf_id == 0 ? "sel_sink" : "host_sink");
comp_dbg(dev, "kpb_bind: buf_id=%d sink_comp=0x%x -> %s", buf_id,
dev_comp_id(comp_buffer_get_sink_component(sink)),
sink_buf_id == 0 ? "sel_sink" : "host_sink");
if (sink_buf_id == 0)
kpb->sel_sink = sink;
else
Expand Down Expand Up @@ -925,6 +925,7 @@ static int kpb_prepare(struct comp_dev *dev)
return -ENOMEM;
}

#ifdef CONFIG_IPC_MAJOR_4
struct comp_buffer *sink;
/* Output pin IDs: IPC4_COMP_ID(src_queue, dst_queue) = (dst_queue<<16)|src_queue.
* In a multi-KPB topology each KPB connects to a different arbiter input pin so
Expand Down Expand Up @@ -967,6 +968,7 @@ static int kpb_prepare(struct comp_dev *dev)
}
}
}
#endif /* CONFIG_IPC_MAJOR_4 */

kpb_change_state(kpb, KPB_STATE_RUN);

Expand Down Expand Up @@ -1465,7 +1467,7 @@ static int kpb_copy(struct comp_dev *dev)

struct comp_dev *wov_comp = sink ? comp_buffer_get_sink_component(sink) : NULL;
if (wov_comp) {
comp_dbg(dev, "kpb_copy: produced=%u bytes, triggering wov=0x%x",
comp_dbg(dev, "kpb_copy: produced=%zu bytes, triggering wov=0x%x",
copy_bytes, dev_comp_id(wov_comp));
comp_copy(wov_comp);
} else {
Expand Down
2 changes: 1 addition & 1 deletion zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ if (NOT CONFIG_COMPILER_INLINE_FUNCTION_OPTION)
target_compile_options(SOF INTERFACE -fno-inline-functions)
endif()

if (ARCH STREQUAL "xtensa")
if(CONFIG_XTENSA)
target_compile_options(SOF INTERFACE -mlongcalls)
zephyr_compile_options(-mtext-section-literals)
endif()
Expand Down
Loading