mirror of https://github.com/thesofproject/sof.git
Merge pull request #565 from libinyang/coverity_dw_dma
dw-dma: fix dw_dma_work reschedule issue
This commit is contained in:
commit
8b48aca7f3
|
@ -1069,15 +1069,14 @@ static uint64_t dw_dma_work(void *data, uint64_t delay)
|
|||
|
||||
tracev_dma("wrk");
|
||||
|
||||
/* skip if channel is not running */
|
||||
if (p->chan[i].status != COMP_STATE_ACTIVE) {
|
||||
trace_dma_error("eDs");
|
||||
goto out;
|
||||
/* skip if channel is not running */
|
||||
return 0;
|
||||
}
|
||||
|
||||
dw_dma_process_block(&p->chan[i], &next);
|
||||
|
||||
out:
|
||||
return next.size == DMA_RELOAD_END ? 0 : p->chan[i].timer_delay;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue