Skip to content
Merged
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
22 changes: 10 additions & 12 deletions src/audio/rtnr/rtnr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions src/include/sof/audio/module_adapter/module/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/platform/mt8195/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down