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:
Ranjani Sridharan 2022-12-16 14:32:17 -08:00 committed by Liam Girdwood
parent ee969eb1b3
commit fbb82566d2
1 changed files with 3 additions and 1 deletions

View File

@ -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)