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 <krzysztofx.frydryk@intel.com>
This commit is contained in:
Krzysztof Frydryk 2022-04-04 08:52:05 +02:00 committed by Liam Girdwood
parent 39f2626c47
commit 27e9635227
1 changed files with 1 additions and 1 deletions

View File

@ -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",