summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-12-06 09:09:21 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-12-06 09:09:21 +0000
commitc9016f82e02470ea0f282d676742044ff0851e97 (patch)
tree7cafd9d2d7a6cdb8a3e57cd147e06dba07cd8924 /firmware
parentdece047e310ef665cd6f58b0fc4775dea76508cb (diff)
downloadrockbox-c9016f82e02470ea0f282d676742044ff0851e97.tar.gz
rockbox-c9016f82e02470ea0f282d676742044ff0851e97.zip
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/pcm_playback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/pcm_playback.c b/firmware/pcm_playback.c
index 79eefe3c64..6703c6a622 100644
--- a/firmware/pcm_playback.c
+++ b/firmware/pcm_playback.c
@@ -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