summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-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 @@
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 */
60void as3525_codec_init(void) 60void 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 */
89int as3525_codec_write(int index, int value) 89int 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 */
115int as3525_codec_read(int index) 115int 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
22void as3525_codec_init(void); 22void ascodec_init(void);
23 23
24int as3525_codec_write(int index, int value); 24int ascodec_write(int index, int value);
25int as3525_codec_read(int index); 25int 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)
255void power_off(void) 255void 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