From 6ea76565bc737d309f0acf2e4c711e3a6f7a3520 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Wed, 30 Aug 2006 00:23:46 +0000 Subject: Sound on H10! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10797 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/wm8731l.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'firmware') 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) -- cgit v1.2.3