summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2010-02-10 21:20:51 +0000
committerMichael Sparmann <theseven@rockbox.org>2010-02-10 21:20:51 +0000
commit3d7983e5c7a496bb7c3a8578051fd9da61e243d1 (patch)
tree1bd8d0eb532233e4e014cb01721476aa7b13946c
parente95d603fba9e3ca79c406dbfdce3db15b74b46d3 (diff)
downloadrockbox-3d7983e5c7a496bb7c3a8578051fd9da61e243d1.tar.gz
rockbox-3d7983e5c7a496bb7c3a8578051fd9da61e243d1.tar.bz2
rockbox-3d7983e5c7a496bb7c3a8578051fd9da61e243d1.zip
Fix iPod Nano 2G channel swapping issues
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24589 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/s5l8700/pcm-s5l8700.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/s5l8700/pcm-s5l8700.c b/firmware/target/arm/s5l8700/pcm-s5l8700.c
index 08a1038022..b0b155165f 100644
--- a/firmware/target/arm/s5l8700/pcm-s5l8700.c
+++ b/firmware/target/arm/s5l8700/pcm-s5l8700.c
@@ -109,7 +109,7 @@ static const void* dma_callback(void)
get_more(&dma_start_addr, &nextsize);
if (nextsize >= 4096)
{
- dblbufsize = nextsize >> 4;
+ dblbufsize = (nextsize >> 4) & ~3;
nextsize = nextsize - dblbufsize;
dblbuf = dma_start_addr + nextsize;
dmamode = 0;
@@ -235,7 +235,7 @@ void pcm_play_dma_start(const void *addr_in, size_t size)
clean_dcache();
if (size >= 4096)
{
- dblbufsize = size >> 4;
+ dblbufsize = (size >> 4) & ~3;
size = size - dblbufsize;
dblbuf = addr + size;
dmamode = 0;