diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2008-11-09 09:25:53 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2008-11-09 09:25:53 +0000 |
commit | 4ca4e523fea85947c9530cc29ac5ad8451bef25e (patch) | |
tree | 20ae24fedaa61a156a5b32d597f3b3ffbab3f04a /firmware/target/arm/as3525 | |
parent | aef27e1f0c69516bbcf13d7986e204502d708ec4 (diff) | |
download | rockbox-4ca4e523fea85947c9530cc29ac5ad8451bef25e.tar.gz rockbox-4ca4e523fea85947c9530cc29ac5ad8451bef25e.zip |
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/target/arm/as3525')
-rw-r--r-- | firmware/target/arm/as3525/as3525-codec.c | 6 | ||||
-rw-r--r-- | firmware/target/arm/as3525/as3525-codec.h | 6 | ||||
-rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 4 |
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 @@ | |||
57 | 57 | ||
58 | 58 | ||
59 | /* initialises the internal i2c bus and prepares for transfers to the codec */ | 59 | /* initialises the internal i2c bus and prepares for transfers to the codec */ |
60 | void as3525_codec_init(void) | 60 | void ascodec_init(void) |
61 | { | 61 | { |
62 | /* reset device */ | 62 | /* reset device */ |
63 | CCU_SRC = CCU_SRC_I2C_AUDIO_EN; | 63 | CCU_SRC = CCU_SRC_I2C_AUDIO_EN; |
@@ -86,7 +86,7 @@ static int i2c_busy(void) | |||
86 | 86 | ||
87 | 87 | ||
88 | /* returns 0 on success, <0 otherwise */ | 88 | /* returns 0 on success, <0 otherwise */ |
89 | int as3525_codec_write(int index, int value) | 89 | int ascodec_write(int index, int value) |
90 | { | 90 | { |
91 | if (index == 0x21) { | 91 | if (index == 0x21) { |
92 | /* prevent setting of the LREG_CP_not bit */ | 92 | /* prevent setting of the LREG_CP_not bit */ |
@@ -112,7 +112,7 @@ int as3525_codec_write(int index, int value) | |||
112 | 112 | ||
113 | 113 | ||
114 | /* returns value read on success, <0 otherwise */ | 114 | /* returns value read on success, <0 otherwise */ |
115 | int as3525_codec_read(int index) | 115 | int ascodec_read(int index) |
116 | { | 116 | { |
117 | /* check if still busy */ | 117 | /* check if still busy */ |
118 | if (i2c_busy()) { | 118 | 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 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | void as3525_codec_init(void); | 22 | void ascodec_init(void); |
23 | 23 | ||
24 | int as3525_codec_write(int index, int value); | 24 | int ascodec_write(int index, int value); |
25 | int as3525_codec_read(int index); | 25 | int ascodec_read(int index); |
26 | 26 | ||
27 | 27 | ||
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) | |||
255 | void power_off(void) | 255 | void power_off(void) |
256 | { | 256 | { |
257 | int system; | 257 | int system; |
258 | system = as3525_codec_read(0x20); | 258 | system = ascodec_read(0x20); |
259 | system &= ~1; /* clear bit 0 of system register */ | 259 | system &= ~1; /* clear bit 0 of system register */ |
260 | as3525_codec_write(0x20, system); | 260 | ascodec_write(0x20, system); |
261 | 261 | ||
262 | /* TODO : turn off peripherals properly ? */ | 262 | /* TODO : turn off peripherals properly ? */ |
263 | 263 | ||