diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-08-30 00:23:46 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-08-30 00:23:46 +0000 |
commit | 6ea76565bc737d309f0acf2e4c711e3a6f7a3520 (patch) | |
tree | 20c4b8b54293b5897d1b7714bd3bb008ef1bfe2c /firmware/drivers | |
parent | b0e3eac139ee0ef56ff3916e063c6150644a6cf7 (diff) | |
download | rockbox-6ea76565bc737d309f0acf2e4c711e3a6f7a3520.tar.gz rockbox-6ea76565bc737d309f0acf2e4c711e3a6f7a3520.zip |
Sound on H10!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10797 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/wm8731l.c | 8 |
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 @@ | |||
45 | 45 | ||
46 | void wm8731_write(int reg, int data) | 46 | void wm8731_write(int reg, int data) |
47 | { | 47 | { |
48 | /* Todo: Since the ipod_i2c_* functions also work on H10 and possibly other PP | ||
49 | targets, these functions should probably be renamed */ | ||
50 | #if defined(IRIVER_H10) || defined(IRIVER_H10_5GB) | ||
51 | /* The H10's audio codec uses an I2C address of 0x1b */ | ||
52 | ipod_i2c_send(0x1b, (reg<<1) | ((data&0x100)>>8),data&0xff); | ||
53 | #else | ||
54 | /* The iPod's audio codecs use an I2C address of 0x1a */ | ||
48 | ipod_i2c_send(0x1a, (reg<<1) | ((data&0x100)>>8),data&0xff); | 55 | ipod_i2c_send(0x1a, (reg<<1) | ((data&0x100)>>8),data&0xff); |
56 | #end | ||
49 | } | 57 | } |
50 | 58 | ||
51 | int wmcodec_mute(int mute) | 59 | int wmcodec_mute(int mute) |