Skip to content

Commit

Permalink
module_adapter: Don't print an error if reset path stops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dbaluta committed May 2, 2023
1 parent de9b8be commit 58bd5a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/audio/module_adapter/module/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,10 @@ int module_reset(struct processing_module *mod)

ret = md->ops->reset(mod);
if (ret) {
comp_err(mod->dev, "module_reset() error %d: module specific reset() failed for comp %d",
ret, dev_comp_id(mod->dev));
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));
return ret;
}

Expand Down

0 comments on commit 58bd5a6

Please sign in to comment.