summaryrefslogtreecommitdiff
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2009-02-08 22:32:41 +0000
committerMichael Sevakis <jethead71@rockbox.org>2009-02-08 22:32:41 +0000
commit94537f954e67d44fdd9703c062c4ee53599e0e74 (patch)
tree5dc555914ba4c6f943a90b0804fef9a5fead4a33 /apps/pcmbuf.c
parent0222d0a5ebcc0be2e511abeb3ea8fbe7b4df8475 (diff)
downloadrockbox-94537f954e67d44fdd9703c062c4ee53599e0e74.tar.gz
rockbox-94537f954e67d44fdd9703c062c4ee53599e0e74.zip
Gigabeat S: Implement an SDMA API and use it in the PCM driver. Some other miscellaneous adjustments to recording and PCM buffer to accomodate use of physical addresses and cache coherency.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19949 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 99e56d160d..6e2234880e 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -1001,6 +1001,11 @@ void pcmbuf_beep(unsigned int frequency, size_t duration, int amplitude)
1001 /* Give 5ms clearance. */ 1001 /* Give 5ms clearance. */
1002 bufstart += NATIVE_FREQUENCY * 4 / 200; 1002 bufstart += NATIVE_FREQUENCY * 4 / 200;
1003 1003
1004#ifdef HAVE_PCM_DMA_ADDRESS
1005 /* Returned peak addresses are DMA addresses */
1006 bufend = pcm_dma_addr(bufend);
1007#endif
1008
1004 /* Wrapped above? */ 1009 /* Wrapped above? */
1005 if (bufstart >= bufend) 1010 if (bufstart >= bufend)
1006 bufstart -= pcmbuf_size; 1011 bufstart -= pcmbuf_size;