mirror of https://github.com/thesofproject/sof.git
hda-dma: remove not needed check
Removes not needed check for DMA_CB_STATUS_END in hda_dma_post_copy. HD-DMA is not driven using interrupts, so there is no need to asynchronously stop the transfer. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
7e357d14a0
commit
7d8d44da05
|
@ -314,12 +314,8 @@ static void hda_dma_post_copy(struct dma *dma, struct hda_chan_data *chan,
|
|||
{
|
||||
struct dma_cb_data next = { .elem = { .size = bytes } };
|
||||
|
||||
if (chan->cb) {
|
||||
if (chan->cb)
|
||||
chan->cb(chan->cb_data, DMA_CB_TYPE_COPY, &next);
|
||||
if (next.status == DMA_CB_STATUS_END)
|
||||
/* disable channel, finished */
|
||||
hda_dma_stop(dma, chan->index);
|
||||
}
|
||||
|
||||
/* Force Host DMA to exit L1 */
|
||||
if (chan->direction == DMA_DIR_HMEM_TO_LMEM ||
|
||||
|
|
Loading…
Reference in New Issue