Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarecki committed Sep 27, 2024
1 parent 61dbcf3 commit 96fddef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/audio/drc/drc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
Expand All @@ -344,26 +344,26 @@ 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 {
/* Generic function for all formats */
cd->drc_func = drc_default_pass;
}

comp_info(dev, "drc_prepare(), DRC is configured.");
comp_info(dev, "drc_prepare!(), DRC is configured.");
return 0;
}

Expand Down
5 changes: 4 additions & 1 deletion src/audio/module_adapter/module/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 96fddef

Please sign in to comment.