host: emit error trace log when host stop fails

Emit the trace log instead of returning error when host fails to stop.

Signed-off-by: Libin Yang <libin.yang@intel.com>
This commit is contained in:
Libin Yang 2018-11-16 22:29:32 +08:00 committed by Liam Girdwood
parent 7fca812717
commit 43a75f4b40
1 changed files with 2 additions and 2 deletions

View File

@ -284,9 +284,9 @@ static int host_trigger(struct comp_dev *dev, int cmd)
switch (cmd) { switch (cmd) {
case COMP_TRIGGER_STOP: case COMP_TRIGGER_STOP:
ret = host_stop(dev); ret = host_stop(dev);
/* host stop fails, let's return the errno */ /* host stop fails, let's emit the error log */
if (ret) if (ret)
goto out; trace_host_error("host: stop failed %d", ret);
/* fall through */ /* fall through */
case COMP_TRIGGER_XRUN: case COMP_TRIGGER_XRUN:
/* TODO: add attribute to dma interface and do run-time if() here */ /* TODO: add attribute to dma interface and do run-time if() here */