module_adapter: Don't print an error if reset path stops

When md->ops->reset() returns PPL_STATUS_PATH_STOP this means that
reset is not propagated along the pipeline. This is a normal condition.

So do not print an error.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
Daniel Baluta 2023-04-28 18:24:58 +03:00 committed by Daniel Baluta
parent de9b8beadc
commit 58bd5a66fd
1 changed files with 4 additions and 2 deletions

View File

@ -271,7 +271,9 @@ int module_reset(struct processing_module *mod)
ret = md->ops->reset(mod); ret = md->ops->reset(mod);
if (ret) { if (ret) {
comp_err(mod->dev, "module_reset() error %d: module specific reset() failed for comp %d", if (ret != PPL_STATUS_PATH_STOP)
comp_err(mod->dev,
"module_reset() error %d: module specific reset() failed for comp %d",
ret, dev_comp_id(mod->dev)); ret, dev_comp_id(mod->dev));
return ret; return ret;
} }