summaryrefslogtreecommitdiff
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
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;