From e9940467f8264b069f68c57482c9a950f46d17a2 Mon Sep 17 00:00:00 2001 From: Krzysztof Frydryk Date: Mon, 4 Apr 2022 08:52:05 +0200 Subject: [PATCH] ipc4: fix pipeline reset trigger from paused state When pipeline reset was called from paused state, it was not stopped beforehand. This resulted in improper device turn-off sequence. Signed-off-by: Krzysztof Frydryk --- src/ipc/ipc4/handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc/ipc4/handler.c b/src/ipc/ipc4/handler.c index 8e46e9c7cc46..51a2bc13f537 100644 --- a/src/ipc/ipc4/handler.c +++ b/src/ipc/ipc4/handler.c @@ -268,7 +268,7 @@ static int set_pipeline_state(uint32_t id, uint32_t cmd, bool *delayed, uint32_t if (status == COMP_STATE_READY) return 0; - if (status == COMP_STATE_ACTIVE) { + if (status == COMP_STATE_ACTIVE || COMP_STATE_PAUSED) { ret = pipeline_trigger(host->cd->pipeline, host->cd, COMP_TRIGGER_STOP); if (ret < 0) { tr_err(&ipc_tr, "ipc: comp %d trigger 0x%x failed %d",