Change-Id: Iaec43120ef213d9a3c77201bdf50ebbedd1c5b76
This commit is contained in:
Mihail Zenkov 2016-04-06 00:00:57 +00:00
parent c7daef36c5
commit c5c4ea4648
2 changed files with 5 additions and 7 deletions

View file

@ -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)

View file

@ -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.