Skip to content

Commit 96fddef

Browse files
committed
debug
1 parent 61dbcf3 commit 96fddef

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/audio/drc/drc.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static int drc_init(struct processing_module *mod)
150150
size_t bs = cfg->size;
151151
int ret;
152152
debug_val2 = (uint32_t)&drc_interface;
153-
comp_wrn(dev, "drc_init()");
153+
comp_warn(dev, "drc_init()");
154154

155155
/* Check first before proceeding with dev and cd that coefficients
156156
* blob size is sane.
@@ -328,7 +328,7 @@ static int drc_prepare(struct processing_module *mod,
328328
int rate;
329329
int ret;
330330

331-
comp_info(dev, "drc_prepare()");
331+
comp_info(dev, "DRC_prepare() %x", (uint32_t)&drc_interface);
332332

333333
#if CONFIG_IPC_MAJOR_4
334334
drc_params(mod);
@@ -344,26 +344,26 @@ static int drc_prepare(struct processing_module *mod,
344344
rate = audio_stream_get_rate(&sinkb->stream);
345345

346346
/* Initialize DRC */
347-
comp_info(dev, "drc_prepare(), source_format=%d", cd->source_format);
347+
comp_info(dev, "drc_prepare!(), source_format=%d", cd->source_format);
348348
cd->config = comp_get_data_blob(cd->model_handler, NULL, NULL);
349349
if (cd->config) {
350350
ret = drc_setup(cd, channels, rate);
351351
if (ret < 0) {
352-
comp_err(dev, "drc_prepare() error: drc_setup failed.");
352+
comp_err(dev, "drc_prepare!() error: drc_setup failed.");
353353
return ret;
354354
}
355355

356356
cd->drc_func = drc_find_proc_func(cd->source_format);
357357
if (!cd->drc_func) {
358-
comp_err(dev, "drc_prepare(), No proc func");
358+
comp_err(dev, "drc_prepare!(), No proc func");
359359
return -EINVAL;
360360
}
361361
} else {
362362
/* Generic function for all formats */
363363
cd->drc_func = drc_default_pass;
364364
}
365365

366-
comp_info(dev, "drc_prepare(), DRC is configured.");
366+
comp_info(dev, "drc_prepare!(), DRC is configured.");
367367
return 0;
368368
}
369369

src/audio/module_adapter/module/generic.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,10 @@ int module_process_legacy(struct processing_module *mod,
241241
md->state = MODULE_PROCESSING;
242242
#endif
243243
if (IS_PROCESSING_MODE_AUDIO_STREAM(mod)) {
244-
//debug_val2 = (uint32_t)ops;
244+
debug_val2 = (uint32_t)ops->init;
245+
246+
247+
245248
DEBUG();
246249
ret = ops->process_audio_stream(mod, input_buffers, num_input_buffers,
247250
output_buffers, num_output_buffers);

0 commit comments

Comments
 (0)