diff options
Diffstat (limited to 'firmware/drivers/wm8731l.c')
-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) |