1
0
Fork 0
forked from len0rd/rockbox

Fix typo. We only need to keep bit 6 set on HPH_OUT_L. Setting it on HPH_OUT_R does something completely different and probably not wanted.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12743 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2007-03-12 23:48:00 +00:00
parent 2370998a87
commit 9e56b15e80

View file

@ -132,7 +132,7 @@ int audiohw_set_master_vol(int vol_l, int vol_r)
{
vol_l &= 0x1f;
vol_r &= 0x1f;
pp_i2c_send(AS3514_I2C_ADDR, HPH_OUT_R, 0x40 | vol_r);
pp_i2c_send(AS3514_I2C_ADDR, HPH_OUT_R, vol_r);
pp_i2c_send(AS3514_I2C_ADDR, HPH_OUT_L, 0x40 | vol_l);
return 0;
@ -140,7 +140,7 @@ int audiohw_set_master_vol(int vol_l, int vol_r)
int audiohw_set_lineout_vol(int vol_l, int vol_r)
{
pp_i2c_send(AS3514_I2C_ADDR, LINE_OUT_R, 0x40 | vol_r);
pp_i2c_send(AS3514_I2C_ADDR, LINE_OUT_R, vol_r);
pp_i2c_send(AS3514_I2C_ADDR, LINE_OUT_L, 0x40 | vol_l);
return 0;