summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-08-30 00:23:46 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-08-30 00:23:46 +0000
commit6ea76565bc737d309f0acf2e4c711e3a6f7a3520 (patch)
tree20c4b8b54293b5897d1b7714bd3bb008ef1bfe2c
parentb0e3eac139ee0ef56ff3916e063c6150644a6cf7 (diff)
downloadrockbox-6ea76565bc737d309f0acf2e4c711e3a6f7a3520.tar.gz
rockbox-6ea76565bc737d309f0acf2e4c711e3a6f7a3520.zip
Sound on H10!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10797 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/wm8731l.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/drivers/wm8731l.c b/firmware/drivers/wm8731l.c
index cad88edf12..6a3070ff5c 100644
--- a/firmware/drivers/wm8731l.c
+++ b/firmware/drivers/wm8731l.c
@@ -45,7 +45,15 @@
void wm8731_write(int reg, int data)
{
+/* Todo: Since the ipod_i2c_* functions also work on H10 and possibly other PP
+ targets, these functions should probably be renamed */
+#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB)
+ /* The H10's audio codec uses an I2C address of 0x1b */
+ ipod_i2c_send(0x1b, (reg<<1) | ((data&0x100)>>8),data&0xff);
+#else
+ /* The iPod's audio codecs use an I2C address of 0x1a */
ipod_i2c_send(0x1a, (reg<<1) | ((data&0x100)>>8),data&0xff);
+#end
}
int wmcodec_mute(int mute)