diff --git a/src/audio/rtnr/rtnr.c b/src/audio/rtnr/rtnr.c index 8476467f1a44..21fea4c784d0 100644 --- a/src/audio/rtnr/rtnr.c +++ b/src/audio/rtnr/rtnr.c @@ -51,8 +51,6 @@ /* ID for RTNR data */ #define RTNR_DATA_ID_PRESET 12345678 -static const struct comp_driver comp_rtnr; - /** \brief RTNR processing functions map item. */ struct rtnr_func_map { enum sof_ipc_frame fmt; /**< source frame format */ @@ -78,28 +76,28 @@ void rtnr_printf(int a, int b, int c, int d, int e) { switch (a) { case 0xa: - comp_cl_info(&comp_rtnr, "rtnr_printf 1st=%08x, 2nd=%08x, 3rd=%08x, 4st=%08x", - b, c, d, e); + tr_info(&rtnr_tr, "rtnr_printf 1st=%08x, 2nd=%08x, 3rd=%08x, 4st=%08x", + b, c, d, e); break; case 0xb: - comp_cl_info(&comp_rtnr, "rtnr_printf 1st=%08x, 2nd=%08x, 3rd=%08x, 4st=%08x", - b, c, d, e); + tr_info(&rtnr_tr, "rtnr_printf 1st=%08x, 2nd=%08x, 3rd=%08x, 4st=%08x", + b, c, d, e); break; case 0xc: - comp_cl_warn(&comp_rtnr, "rtnr_printf 1st=%08x, 2nd=%08x, 3rd=%08x, 4st=%08x", - b, c, d, e); + tr_warn(&rtnr_tr, "rtnr_printf 1st=%08x, 2nd=%08x, 3rd=%08x, 4st=%08x", + b, c, d, e); break; case 0xd: - comp_cl_dbg(&comp_rtnr, "rtnr_printf 1st=%08x, 2nd=%08x, 3rd=%08x, 4st=%08x", - b, c, d, e); + tr_dbg(&rtnr_tr, "rtnr_printf 1st=%08x, 2nd=%08x, 3rd=%08x, 4st=%08x", + b, c, d, e); break; case 0xe: - comp_cl_err(&comp_rtnr, "rtnr_printf 1st=%08x, 2nd=%08x, 3rd=%08x, 4st=%08x", - b, c, d, e); + tr_err(&rtnr_tr, "rtnr_printf 1st=%08x, 2nd=%08x, 3rd=%08x, 4st=%08x", + b, c, d, e); break; default: diff --git a/src/include/sof/audio/module_adapter/module/generic.h b/src/include/sof/audio/module_adapter/module/generic.h index 0ddf9169e414..37212c08fcb5 100644 --- a/src/include/sof/audio/module_adapter/module/generic.h +++ b/src/include/sof/audio/module_adapter/module/generic.h @@ -169,6 +169,7 @@ bool module_is_ready_to_process(struct processing_module *mod, struct sof_sink **sinks, int num_of_sinks) { + int i; const struct module_interface *const ops = mod->dev->drv->adapter_ops; /* LL module has to be always ready for processing */ @@ -180,11 +181,11 @@ bool module_is_ready_to_process(struct processing_module *mod, /* default action - the module is ready if there's enough data for processing and enough * space to store result. IBS/OBS as declared in init_instance */ - for (int i = 0; i < num_of_sources; i++) + for (i = 0; i < num_of_sources; i++) if (source_get_data_available(sources[i]) < source_get_min_available(sources[i])) return false; - for (int i = 0; i < num_of_sinks; i++) + for (i = 0; i < num_of_sinks; i++) if (sink_get_free_size(sinks[i]) < sink_get_min_free_space(sinks[i])) return false; diff --git a/src/platform/mt8195/include/platform/lib/memory.h b/src/platform/mt8195/include/platform/lib/memory.h index 78d21faac476..42ee7f7990ab 100644 --- a/src/platform/mt8195/include/platform/lib/memory.h +++ b/src/platform/mt8195/include/platform/lib/memory.h @@ -166,7 +166,7 @@ /** \brief EDF task's default stack size in bytes. */ #ifdef CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING -#define PLATFORM_TASK_DEFAULT_STACK_SIZE 8192 +#define PLATFORM_TASK_DEFAULT_STACK_SIZE (12 * 1024) #else #define PLATFORM_TASK_DEFAULT_STACK_SIZE 3072 #endif