Skip to content

Commit 27a3db1

Browse files
committed
hda-dma: wait for L1 exit instead of buffer full
Changes waiting condition for Host Output DMA start. Let's wait for L1 exit instead of buffer full. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
1 parent 6b94226 commit 27a3db1

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/drivers/hda-dma.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,7 @@ static int hda_dma_start(struct dma *dma, int channel)
213213
/* full buffer is copied at startup */
214214
p->chan[channel].desc_avail = p->chan[channel].desc_count;
215215

216-
/* for render let's wait for buffer full */
217-
if (p->chan[channel].direction == DMA_DIR_HMEM_TO_LMEM) {
218-
do {
219-
idelay(PLATFORM_DEFAULT_DELAY);
220-
dgcs = host_dma_reg_read(dma, channel, DGCS);
221-
} while (!(dgcs & DGCS_BF));
222-
}
216+
pm_runtime_put(PM_RUNTIME_HOST_DMA_L1);
223217
out:
224218
spin_unlock_irq(&dma->lock, flags);
225219
return ret;

0 commit comments

Comments
 (0)