mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
fix red
Change-Id: Iaec43120ef213d9a3c77201bdf50ebbedd1c5b76
This commit is contained in:
parent
c7daef36c5
commit
c5c4ea4648
2 changed files with 5 additions and 7 deletions
|
|
@ -66,9 +66,9 @@ void audiohw_init(void)
|
||||||
audiohw_preinit();
|
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)
|
int ascodec_read(unsigned int reg)
|
||||||
|
|
|
||||||
|
|
@ -61,13 +61,11 @@ void ascodec_close(void)
|
||||||
close(afe_dev);
|
close(afe_dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write register.
|
/* Write register */
|
||||||
* Returns >= 0 if success, -1 if fail
|
void ascodec_write(unsigned int reg, unsigned int value)
|
||||||
*/
|
|
||||||
int ascodec_write(unsigned int reg, unsigned int value)
|
|
||||||
{
|
{
|
||||||
struct codec_req_struct r = { .reg = reg, .value = 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.
|
/* Read register.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue