From 77c915ad61c654d6ef8f49e801ca9136f7cec49d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 27 Oct 2006 11:24:23 +0000 Subject: Renamed the ipod_i2c functions to the more appropriate pp_i2c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11361 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/wmcodec-pp.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'firmware/target') diff --git a/firmware/target/arm/wmcodec-pp.c b/firmware/target/arm/wmcodec-pp.c index e9626220e7..73324c0dec 100644 --- a/firmware/target/arm/wmcodec-pp.c +++ b/firmware/target/arm/wmcodec-pp.c @@ -43,6 +43,14 @@ #include "i2c-pp5002.h" #endif +#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB) +/* The H10's audio codec uses an I2C address of 0x1b */ +#define I2C_AUDIO_ADDRESS 0x1b +#else +/* The iPod's audio codecs use an I2C address of 0x1a */ +#define I2C_AUDIO_ADDRESS 0x1a +#endif + /* * Reset the I2S BIT.FORMAT I2S, 16bit, FIFO.FORMAT 32bit */ @@ -144,13 +152,5 @@ int wmcodec_init(void) { void wmcodec_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); -#endif + pp_i2c_send(I2C_AUDIO_ADDRESS, (reg<<1) | ((data&0x100)>>8),data&0xff); } -- cgit v1.2.3