diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2009-02-12 00:22:31 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2009-02-12 00:22:31 +0000 |
commit | 911cc69ebd037f8fa17b77590b2e3e99ea6b0644 (patch) | |
tree | d0cef8fb10e8a99085fd9203904987842a7636d1 /firmware/target/arm/imx31/gigabeat-s | |
parent | 3b3acd6e769de5cc4f30bdc71696c67c02ef2e56 (diff) |
Gigabeat S: No need to do cache writeback on recording buffers now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19982 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c b/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c index c5ba27ace6..7aa7a2ae19 100644 --- a/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/pcm-imx31.c @@ -425,8 +425,8 @@ void pcm_record_more(void *start, size_t size) start = (void *)(((unsigned long)start + 3) & ~3); size &= ~3; - /* Write back and invalidate - buffer must be coherent */ - invalidate_dcache_range(start, size); + /* Invalidate - buffer must be coherent */ + dump_dcache_range(start, size); start = (void *)addr_virt_to_phys((unsigned long)start); @@ -460,7 +460,8 @@ void pcm_rec_dma_start(void *addr, size_t size) addr = (void *)(((unsigned long)addr + 3) & ~3); size &= ~3; - invalidate_dcache_range(addr, size); + /* Invalidate - buffer must be coherent */ + dump_dcache_range(addr, size); addr = (void *)addr_virt_to_phys((unsigned long)addr); pcm_rec_peak_addr = addr; |