From 4ca4e523fea85947c9530cc29ac5ad8451bef25e Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Sun, 9 Nov 2008 09:25:53 +0000 Subject: 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 --- firmware/target/arm/as3525/as3525-codec.c | 6 +++--- firmware/target/arm/as3525/as3525-codec.h | 6 +++--- firmware/target/arm/as3525/system-as3525.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'firmware/target/arm/as3525') 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 ? */ -- cgit v1.2.3