mirror of https://github.com/thesofproject/sof.git
ipc4: add state check for trigger function
return when the status is ready set Signed-off-by: Rander Wang <rander.wang@intel.com>
This commit is contained in:
parent
f4b2901cf8
commit
24b036930b
|
@ -550,6 +550,9 @@ static int copier_comp_trigger(struct comp_dev *dev, int cmd)
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (ret == COMP_STATUS_STATE_ALREADY_SET)
|
||||
return PPL_STATUS_PATH_STOP;
|
||||
|
||||
if (cd->endpoint)
|
||||
ret = cd->endpoint->drv->ops.trigger(cd->endpoint, cmd);
|
||||
|
||||
|
|
Loading…
Reference in New Issue