mirror of https://github.com/thesofproject/sof.git
module_adapter: Fix module_adapter_reset()
When module_reset() returns a non-zero value, print an error if needed and return immediately. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
parent
ee969eb1b3
commit
fbb82566d2
|
@ -981,7 +981,9 @@ int module_adapter_reset(struct comp_dev *dev)
|
|||
|
||||
ret = module_reset(mod);
|
||||
if (ret) {
|
||||
comp_err(dev, "module_adapter_reset(): failed with error: %d", ret);
|
||||
if (ret != PPL_STATUS_PATH_STOP)
|
||||
comp_err(dev, "module_adapter_reset(): failed with error: %d", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (!mod->simple_copy)
|
||||
|
|
Loading…
Reference in New Issue