mirror of https://github.com/thesofproject/sof.git
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:
parent
7fca812717
commit
43a75f4b40
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue