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:
Rander Wang 2022-02-09 16:37:10 +08:00 committed by Liam Girdwood
parent f4b2901cf8
commit 24b036930b
1 changed files with 3 additions and 0 deletions

View File

@ -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);