diff options
author | Mihail Zenkov <mihail.zenkov@gmail.com> | 2016-04-06 00:00:57 +0000 |
---|---|---|
committer | Mihail Zenkov <mihail.zenkov@gmail.com> | 2016-04-06 00:00:57 +0000 |
commit | c5c4ea46481a492c13e5c604906c8c757316e452 (patch) | |
tree | 34df9d47885633b37cc6f4aa079be9ea8f9266e5 | |
parent | c7daef36c5c75b8541d38cec4793826ab085d5ad (diff) | |
download | rockbox-c5c4ea4.tar.gz rockbox-c5c4ea4.zip |
fix red
Change-Id: Iaec43120ef213d9a3c77201bdf50ebbedd1c5b76
-rw-r--r-- | firmware/target/arm/pp/ascodec-pp.c | 4 | ||||
-rw-r--r-- | firmware/target/hosted/samsungypr/ypr0/ascodec-ypr0.c | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/firmware/target/arm/pp/ascodec-pp.c b/firmware/target/arm/pp/ascodec-pp.c index eb8093c841..cebe5e2f6b 100644 --- a/firmware/target/arm/pp/ascodec-pp.c +++ b/firmware/target/arm/pp/ascodec-pp.c @@ -66,9 +66,9 @@ void audiohw_init(void) audiohw_preinit(); } -int ascodec_write(unsigned int reg, unsigned int value) +void ascodec_write(unsigned int reg, unsigned int value) { - return pp_i2c_send(AS3514_I2C_ADDR, reg, value); + pp_i2c_send(AS3514_I2C_ADDR, reg, value); } int ascodec_read(unsigned int reg) diff --git a/firmware/target/hosted/samsungypr/ypr0/ascodec-ypr0.c b/firmware/target/hosted/samsungypr/ypr0/ascodec-ypr0.c index 24362af0c0..972b2b4a4e 100644 --- a/firmware/target/hosted/samsungypr/ypr0/ascodec-ypr0.c +++ b/firmware/target/hosted/samsungypr/ypr0/ascodec-ypr0.c @@ -61,13 +61,11 @@ void ascodec_close(void) close(afe_dev); } -/* Write register. - * Returns >= 0 if success, -1 if fail - */ -int ascodec_write(unsigned int reg, unsigned int value) +/* Write register */ +void ascodec_write(unsigned int reg, unsigned int value) { struct codec_req_struct r = { .reg = reg, .value = value }; - return ioctl(afe_dev, IOCTL_REG_WRITE, &r); + ioctl(afe_dev, IOCTL_REG_WRITE, &r); } /* Read register. |