mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
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:
parent
3ac50ca9ff
commit
bde0231803
1 changed files with 3 additions and 1 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue