mirror of https://github.com/thesofproject/sof.git
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 <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
2b572c7d3b
commit
5f066f2698
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue