summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-05-24 22:33:26 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-05-24 22:33:26 +0000
commit2aed6b0da8d610181d0bd061b4c03e5470eaddde (patch)
treef0f6615cb79cea732cfbffb0840c86b0acc56d55
parente236b9574641302d02e4d044ed78a65e9ae6fdc2 (diff)
as3525: Fix an oops in converting the recording API to a newer form.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26270 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/as3525/pcm-as3525.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/firmware/target/arm/as3525/pcm-as3525.c b/firmware/target/arm/as3525/pcm-as3525.c
index 39413ea2b1..a0532c8912 100644
--- a/firmware/target/arm/as3525/pcm-as3525.c
+++ b/firmware/target/arm/as3525/pcm-as3525.c
@@ -273,15 +273,16 @@ static void rec_dma_callback(void)
pcm_rec_more_ready_callback(0, (void **)&rec_dma_start_addr,
&rec_dma_size);
- if(rec_dma_size != 0)
- {
- dump_dcache_range(rec_dma_start_addr, rec_dma_size);
+ if(rec_dma_size == 0)
+ return;
+
+ dump_dcache_range(rec_dma_start_addr, rec_dma_size);
#if CONFIG_CPU == AS3525
- mono_samples = AS3525_UNCACHED_ADDR((int16_t*)rec_dma_start_addr);
+ mono_samples = AS3525_UNCACHED_ADDR((int16_t*)rec_dma_start_addr);
#endif
- rec_dma_start();
- }
}
+
+ rec_dma_start();
}
void pcm_rec_dma_stop(void)