From b3a808afa8c767d8ff0a925eddd902e371ca5d6e Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Fri, 24 Feb 2023 16:38:28 +0100 Subject: [PATCH] chain-dma: fix scheduling exception Task state shouldn't be modified by client code, it is fully managed by the scheduler. Setting task status to INIT after scheduling a task is wrong and for chain DMA it leads to a scheduler exception. Simply remove the offending line. BugLink: https://github.com/thesofproject/sof/issues/7084 Signed-off-by: Guennadi Liakhovetski --- src/audio/chain_dma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/audio/chain_dma.c b/src/audio/chain_dma.c index 678606565..ea536f047 100644 --- a/src/audio/chain_dma.c +++ b/src/audio/chain_dma.c @@ -303,7 +303,6 @@ static int chain_task_start(struct comp_dev *dev) } pm_policy_state_lock_get(PM_STATE_RUNTIME_IDLE, PM_ALL_SUBSTATES); - cd->chain_task.state = SOF_TASK_STATE_INIT; k_spin_unlock(&drivers->lock, key); return 0;