summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-11-09 09:25:53 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-11-09 09:25:53 +0000
commit4ca4e523fea85947c9530cc29ac5ad8451bef25e (patch)
tree20ae24fedaa61a156a5b32d597f3b3ffbab3f04a /firmware
parentaef27e1f0c69516bbcf13d7986e204502d708ec4 (diff)
Rename functions as3525_codec_* to ascodec_* to prepare re-use of as3514 code for sansa v2 players
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19047 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/as3525-codec.c6
-rw-r--r--firmware/target/arm/as3525/as3525-codec.h6
-rw-r--r--firmware/target/arm/as3525/system-as3525.c4
3 files changed, 8 insertions, 8 deletions
diff --git a/firmware/target/arm/as3525/as3525-codec.c b/firmware/target/arm/as3525/as3525-codec.c
index 0bd49464fa..76e5071197 100644
--- a/firmware/target/arm/as3525/as3525-codec.c
+++ b/firmware/target/arm/as3525/as3525-codec.c
@@ -57,7 +57,7 @@
/* initialises the internal i2c bus and prepares for transfers to the codec */
-void as3525_codec_init(void)
+void ascodec_init(void)
{
/* reset device */
CCU_SRC = CCU_SRC_I2C_AUDIO_EN;
@@ -86,7 +86,7 @@ static int i2c_busy(void)
/* returns 0 on success, <0 otherwise */
-int as3525_codec_write(int index, int value)
+int ascodec_write(int index, int value)
{
if (index == 0x21) {
/* prevent setting of the LREG_CP_not bit */
@@ -112,7 +112,7 @@ int as3525_codec_write(int index, int value)
/* returns value read on success, <0 otherwise */
-int as3525_codec_read(int index)
+int ascodec_read(int index)
{
/* check if still busy */
if (i2c_busy()) {
diff --git a/firmware/target/arm/as3525/as3525-codec.h b/firmware/target/arm/as3525/as3525-codec.h
index ce6929e152..6e6145bb77 100644
--- a/firmware/target/arm/as3525/as3525-codec.h
+++ b/firmware/target/arm/as3525/as3525-codec.h
@@ -19,9 +19,9 @@
*
****************************************************************************/
-void as3525_codec_init(void);
+void ascodec_init(void);
-int as3525_codec_write(int index, int value);
-int as3525_codec_read(int index);
+int ascodec_write(int index, int value);
+int ascodec_read(int index);
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index 240cb63b7c..a4208c709e 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -255,9 +255,9 @@ int system_memory_guard(int newmode)
void power_off(void)
{
int system;
- system = as3525_codec_read(0x20);
+ system = ascodec_read(0x20);
system &= ~1; /* clear bit 0 of system register */
- as3525_codec_write(0x20, system);
+ ascodec_write(0x20, system);
/* TODO : turn off peripherals properly ? */