summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2009-10-12 11:58:36 +0000
committerMichael Sparmann <theseven@rockbox.org>2009-10-12 11:58:36 +0000
commit7a5904cf1c7fbe27bdb383322d0c45eebb401f33 (patch)
tree1da0139c1bded2510e330d0d6809f556ae65d92b /firmware/target
parentde310fba38b7e081c9f15bc4f94d2727e4844cef (diff)
S5L870x: Implement pcm_play_dma_get_peak_buffer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23129 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/s5l8700/pcm-s5l8700.c5
1 files 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