dw-dma: Fix channel status for CNL

At the end of the DMA, we need to set the channel status into
parapre, otherwise next dma start will fail.
This will fix CNL pause resume issues.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
This commit is contained in:
Pan Xiuli 2018-03-20 15:02:35 +08:00 committed by Liam Girdwood
parent a3fab58d59
commit c0025344ed
1 changed files with 1 additions and 0 deletions

View File

@ -1101,6 +1101,7 @@ static void dw_dma_irq_handler(void *data)
trace_dma("LSo");
/* disable channel, finished */
dw_write(dma, DW_DMA_CHAN_EN, CHAN_DISABLE(i));
p->chan[i].status = COMP_STATE_PREPARE;
}
}
#endif