Add dcache cleaning to the S5L870x PCM driver.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23240 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sparmann 2009-10-17 23:08:51 +00:00
parent 3ac50ca9ff
commit bde0231803

View file

@ -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 */