1
0
Fork 0
forked from len0rd/rockbox

imx233/fuze+: fix a typo, handle volume differently because of the line1/dac mode difference.

The headphone volume register value reads differently in Line1 and DAC mode.
Since the volume is not set again when switching between playback and radio,
we need to remember the hp volume and reapply setting when changing the mode.

Change-Id: I8fbd344f78653c19d81a39dd3f680ec6885cb1ec
This commit is contained in:
Amaury Pouly 2012-02-03 19:58:25 +01:00
parent 7d54ff069b
commit 1a083cdacc
4 changed files with 41 additions and 12 deletions

View file

@ -69,9 +69,7 @@ void audiohw_close(void)
void audiohw_set_headphone_vol(int vol_l, int vol_r)
{
/* Use playback volume if <0 and headphone volume if >0 */
imx233_audioout_set_dac_vol(MIN(0, vol_l), MIN(0, vol_r));
imx233_audioout_set_hp_vol(MAX(0, vol_l), MAX(0, vol_r));
imx233_audioout_set_hp_vol(vol_l, vol_r);
}
void audiohw_set_frequency(int fsel)