From 7a5904cf1c7fbe27bdb383322d0c45eebb401f33 Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Mon, 12 Oct 2009 11:58:36 +0000 Subject: [PATCH] S5L870x: Implement pcm_play_dma_get_peak_buffer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23129 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/s5l8700/pcm-s5l8700.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/firmware/target/arm/s5l8700/pcm-s5l8700.c b/firmware/target/arm/s5l8700/pcm-s5l8700.c index f461465663..93697b8125 100644 --- a/firmware/target/arm/s5l8700/pcm-s5l8700.c +++ b/firmware/target/arm/s5l8700/pcm-s5l8700.c @@ -256,9 +256,8 @@ size_t pcm_get_bytes_waiting(void) const void * pcm_play_dma_get_peak_buffer(int *count) { - /* currently not supported */ - *count = 0; - return 0; + *count = DMACTCNT0 >> 1; + return (void *)((DMACADDR0 + 2) & ~3); } #ifdef HAVE_PCM_DMA_ADDRESS