as3525: retain & release DMA engine when starting and stopping recording
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Thu, 13 May 2010 21:32:10 +0000 (13 21:32 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Thu, 13 May 2010 21:32:10 +0000 (13 21:32 +0000)
This fixes the error introduced in r25989, where it would release the
DMA engine when uninitializing recording.
The real bug has been fixed instead (in pitch_detector)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26003 a1c6a512-1295-4272-9138-f99709370657

firmware/target/arm/as3525/pcm-as3525.c

index 5a81cdb..c649ace 100644 (file)
@@ -259,6 +259,7 @@ void pcm_rec_dma_record_more(void *start, size_t size)
 void pcm_rec_dma_stop(void)
 {
     dma_disable_channel(1);
+    dma_release();
     rec_dma_size = 0;
 
     I2SOUT_CONTROL &= ~(1<<5); /* source = i2soutif fifo */
@@ -290,7 +291,6 @@ void pcm_rec_dma_start(void *addr, size_t size)
 
 void pcm_rec_dma_close(void)
 {
-    dma_release();
 }