Skip to content

Commit a4b7b90

Browse files
authored
Merge pull request #99 from tlauda/topic/issue-97
hda-dma: wait for L1 exit instead of buffer full
2 parents 2d92796 + 27a3db1 commit a4b7b90

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)