summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
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 ? */