summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2007-09-20 02:46:11 +0000
committerMark Arigo <markarigo@gmail.com>2007-09-20 02:46:11 +0000
commita80c0e8b83eb52a322c2b33e49875159c6d6a12a (patch)
treee77f90f7b20ae964b3a76ce720a9c92e3273313e
parente4363c116cd398721ad1eea6d7cfc68ebfaaf136 (diff)
downloadrockbox-a80c0e8b83eb52a322c2b33e49875159c6d6a12a.tar.gz
rockbox-a80c0e8b83eb52a322c2b33e49875159c6d6a12a.zip
Fix the sound on the c200 by resetting all devices as done on the e200. Make the reset sequence like the c200 OF with hopefully no ill effects to the e200.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14762 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/system-pp502x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c
index 465457d0e1..64153eefc4 100644
--- a/firmware/target/arm/system-pp502x.c
+++ b/firmware/target/arm/system-pp502x.c
@@ -198,8 +198,9 @@ void system_init(void)
#ifndef BOOTLOADER
if (CURRENT_CORE == CPU)
{
-#ifdef SANSA_E200
+#if defined(SANSA_E200) || defined(SANSA_C200)
/* Reset all devices */
+ outl(inl(0x60006008) | 0x20, 0x60006008);
DEV_RS = 0x3bfffef8;
outl(0xffffffff, 0x60006008);
DEV_RS = 0;