diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-12-06 09:09:21 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-12-06 09:09:21 +0000 |
commit | c9016f82e02470ea0f282d676742044ff0851e97 (patch) | |
tree | 7cafd9d2d7a6cdb8a3e57cd147e06dba07cd8924 | |
parent | dece047e310ef665cd6f58b0fc4775dea76508cb (diff) | |
download | rockbox-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
-rw-r--r-- | firmware/pcm_playback.c | 1 |
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) | |||
93 | pcm_playing = false; | 93 | pcm_playing = false; |
94 | 94 | ||
95 | DCR0 = 0; | 95 | DCR0 = 0; |
96 | DSR0 = 1; | ||
96 | /* Reset the FIFO */ | 97 | /* Reset the FIFO */ |
97 | IIS2CONFIG = IIS_RESET | IIS_DEFPARM(pcm_freq); | 98 | IIS2CONFIG = IIS_RESET | IIS_DEFPARM(pcm_freq); |
98 | #ifdef HAVE_SPDIF_OUT | 99 | #ifdef HAVE_SPDIF_OUT |