mirror of https://github.com/thesofproject/sof.git
dts : add more error logs in set_configuration()
Add more error logs to identify potential problem in set_configuration() Co-developed-by: Mac Chiang <mac.chiang@intel.com> Signed-off-by: Mac Chiang <mac.chiang@intel.com> Signed-off-by: Joe Cheng <joe.cheng@xperi.com>
This commit is contained in:
parent
0a19e7f74b
commit
5aac660e02
|
@ -427,17 +427,24 @@ 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)
|
||||
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)
|
||||
if (md->state < MODULE_INITIALIZED) {
|
||||
comp_err(dev, "dts_codec_set_configuration(): state %d error", md->state);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* whole configuration received, apply it now */
|
||||
|
|
Loading…
Reference in New Issue