From 24b036930b6e7939b185c23a7a1ce564de5cf9e4 Mon Sep 17 00:00:00 2001 From: Rander Wang Date: Wed, 9 Feb 2022 16:37:10 +0800 Subject: [PATCH] ipc4: add state check for trigger function return when the status is ready set Signed-off-by: Rander Wang --- src/audio/copier.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/audio/copier.c b/src/audio/copier.c index 817819f7b..ed4ca2fc5 100644 --- a/src/audio/copier.c +++ b/src/audio/copier.c @@ -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);