From 94537f954e67d44fdd9703c062c4ee53599e0e74 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 8 Feb 2009 22:32:41 +0000 Subject: 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 --- apps/pcmbuf.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/pcmbuf.c') 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) /* Give 5ms clearance. */ bufstart += NATIVE_FREQUENCY * 4 / 200; +#ifdef HAVE_PCM_DMA_ADDRESS + /* Returned peak addresses are DMA addresses */ + bufend = pcm_dma_addr(bufend); +#endif + /* Wrapped above? */ if (bufstart >= bufend) bufstart -= pcmbuf_size; -- cgit v1.2.3