Merge pull request #565 from libinyang/coverity_dw_dma

dw-dma: fix dw_dma_work reschedule issue
This commit is contained in:
Liam Girdwood 2018-11-13 14:55:51 +00:00 committed by GitHub
commit 8b48aca7f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}