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:
Tomasz Lauda 2019-06-07 10:49:00 +02:00 committed by Tomasz Lauda
parent 7e357d14a0
commit 7d8d44da05
1 changed files with 1 additions and 5 deletions

View File

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