Skip to content

Commit

Permalink
dts : add more error logs in dts_codec_set_configuration()
Browse files Browse the repository at this point in the history
Add more logs in dts_codec_set_configuration() to identify the potential
problem.

Signed-off-by: Joe Cheng <joe.cheng@xperi.com>
Signed-off-by: Mac Chiang <mac.chiang@intel.com>
  • Loading branch information
joechengxperi committed Oct 11, 2023
1 parent 6d75eae commit 8c03b99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/audio/module_adapter/module/dts/dts.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,18 +505,22 @@ dts_codec_set_configuration(struct processing_module *mod, uint32_t config_id,

ret = module_set_configuration(mod, config_id, pos, data_offset_size, fragment,
fragment_size, response, response_size);
if (ret < 0)
if (ret < 0) {
comp_err(dev, "dts_codec_set_configuration(): error %x from module_set_configuration()",
ret);
return ret;
}

/* return if more fragments are expected */
if (pos != MODULE_CFG_FRAGMENT_LAST && pos != MODULE_CFG_FRAGMENT_SINGLE) {
comp_err(dev, "dts_codec_set_configuration(): pos %d error", pos);
return 0;
}

#if CONFIG_IPC_MAJOR_3
// return if the module is not prepared
if (md->state < MODULE_INITIALIZED) {
comp_err(dev, "dts_codec_set_configuration(): state %d error", md->state);
return 0;
}
#endif
Expand Down

0 comments on commit 8c03b99

Please sign in to comment.