mirror of https://github.com/thesofproject/sof.git
dw-dma: refine dw_dma_stop to clear done bit in all lli
The initialization of lli should be out of loop Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
This commit is contained in:
parent
84e15e721a
commit
9ebd1bce88
|
@ -508,8 +508,8 @@ static int dw_dma_stop(struct dma *dma, int channel)
|
|||
dw_write(dma, DW_DMA_CHAN_EN, CHAN_DISABLE(channel));
|
||||
|
||||
#if DW_USE_HW_LLI
|
||||
for (i = 0; i < p->chan[channel].desc_count; i++) {
|
||||
lli = p->chan[channel].lli;
|
||||
for (i = 0; i < p->chan[channel].desc_count; i++) {
|
||||
lli->ctrl_hi &= ~DW_CTLH_DONE(1);
|
||||
lli++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue