1
0
Fork 0
forked from len0rd/rockbox

The DMA controller issued a DMA IRQ immediately when started, making it skip the entire first audio block. Setting the DONE bit before initializing seems to fix this.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8166 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-12-06 09:09:21 +00:00
parent dece047e31
commit c9016f82e0

View file

@ -93,6 +93,7 @@ static void dma_stop(void)
pcm_playing = false;
DCR0 = 0;
DSR0 = 1;
/* Reset the FIFO */
IIS2CONFIG = IIS_RESET | IIS_DEFPARM(pcm_freq);
#ifdef HAVE_SPDIF_OUT