mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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
This commit is contained in:
parent
2c1eec5533
commit
77c915ad61
7 changed files with 41 additions and 41 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue