summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2009-10-17 23:08:51 +0000
committerMichael Sparmann <theseven@rockbox.org>2009-10-17 23:08:51 +0000
commitbde02318035b9cad07a288b611f2b77fdf9cf1f8 (patch)
tree27a2504fa27a711aa62f4303f3a40f64d0fa71ad
parent3ac50ca9ff417fc90e255f3c39e63e0414c755da (diff)
downloadrockbox-bde02318035b9cad07a288b611f2b77fdf9cf1f8.tar.gz
rockbox-bde02318035b9cad07a288b611f2b77fdf9cf1f8.tar.bz2
rockbox-bde02318035b9cad07a288b611f2b77fdf9cf1f8.zip
Add dcache cleaning to the S5L870x PCM driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23240 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/s5l8700/pcm-s5l8700.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/s5l8700/pcm-s5l8700.c b/firmware/target/arm/s5l8700/pcm-s5l8700.c
index 93697b8125..fd41da1432 100644
--- a/firmware/target/arm/s5l8700/pcm-s5l8700.c
+++ b/firmware/target/arm/s5l8700/pcm-s5l8700.c
@@ -29,6 +29,7 @@
#include "pcm.h"
#include "pcm_sampr.h"
#include "dma-target.h"
+#include "mmu-target.h"
/* Driver for the IIS/PCM part of the s5l8700 using DMA
@@ -104,6 +105,7 @@ static void play_next(void *addr, size_t size)
dma_callback);
/* DMA channel on */
+ clean_dcache();
dma_enable_channel(DMA_IISOUT_CHANNEL);
}
@@ -160,6 +162,7 @@ void pcm_play_dma_start(const void *addr, size_t size)
#endif
/* S3: DMA channel 0 on */
+ clean_dcache();
dma_enable_channel(DMA_IISOUT_CHANNEL);
/* S4: IIS Tx clock on */
@@ -314,4 +317,3 @@ const void * pcm_rec_dma_get_peak_buffer(int *count)
}
#endif /* HAVE_RECORDING */
-