From 96fddefd8d88d5bf2cc821efe18580e6a55ad36b Mon Sep 17 00:00:00 2001 From: Adrian Warecki Date: Fri, 27 Sep 2024 16:29:53 +0200 Subject: [PATCH] debug --- src/audio/drc/drc.c | 12 ++++++------ src/audio/module_adapter/module/generic.c | 5 ++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/audio/drc/drc.c b/src/audio/drc/drc.c index 636545e3d3b0..ae77df7574bd 100644 --- a/src/audio/drc/drc.c +++ b/src/audio/drc/drc.c @@ -150,7 +150,7 @@ static int drc_init(struct processing_module *mod) size_t bs = cfg->size; int ret; debug_val2 = (uint32_t)&drc_interface; - comp_wrn(dev, "drc_init()"); + comp_warn(dev, "drc_init()"); /* Check first before proceeding with dev and cd that coefficients * blob size is sane. @@ -328,7 +328,7 @@ static int drc_prepare(struct processing_module *mod, int rate; int ret; - comp_info(dev, "drc_prepare()"); + comp_info(dev, "DRC_prepare() %x", (uint32_t)&drc_interface); #if CONFIG_IPC_MAJOR_4 drc_params(mod); @@ -344,18 +344,18 @@ static int drc_prepare(struct processing_module *mod, rate = audio_stream_get_rate(&sinkb->stream); /* Initialize DRC */ - comp_info(dev, "drc_prepare(), source_format=%d", cd->source_format); + comp_info(dev, "drc_prepare!(), source_format=%d", cd->source_format); cd->config = comp_get_data_blob(cd->model_handler, NULL, NULL); if (cd->config) { ret = drc_setup(cd, channels, rate); if (ret < 0) { - comp_err(dev, "drc_prepare() error: drc_setup failed."); + comp_err(dev, "drc_prepare!() error: drc_setup failed."); return ret; } cd->drc_func = drc_find_proc_func(cd->source_format); if (!cd->drc_func) { - comp_err(dev, "drc_prepare(), No proc func"); + comp_err(dev, "drc_prepare!(), No proc func"); return -EINVAL; } } else { @@ -363,7 +363,7 @@ static int drc_prepare(struct processing_module *mod, cd->drc_func = drc_default_pass; } - comp_info(dev, "drc_prepare(), DRC is configured."); + comp_info(dev, "drc_prepare!(), DRC is configured."); return 0; } diff --git a/src/audio/module_adapter/module/generic.c b/src/audio/module_adapter/module/generic.c index 9284b7fd52a9..077e343dd006 100644 --- a/src/audio/module_adapter/module/generic.c +++ b/src/audio/module_adapter/module/generic.c @@ -241,7 +241,10 @@ int module_process_legacy(struct processing_module *mod, md->state = MODULE_PROCESSING; #endif if (IS_PROCESSING_MODE_AUDIO_STREAM(mod)) { - //debug_val2 = (uint32_t)ops; + debug_val2 = (uint32_t)ops->init; + + + DEBUG(); ret = ops->process_audio_stream(mod, input_buffers, num_input_buffers, output_buffers, num_output_buffers);