summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/as3525-codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/as3525-codec.c')
-rw-r--r--firmware/target/arm/as3525/as3525-codec.c6
1 files changed, 3 insertions, 3 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()) {