From 1a083cdaccb3598de834c3643c5bc02716af804d Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Fri, 3 Feb 2012 19:58:25 +0100 Subject: 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 --- firmware/drivers/audio/imx233-codec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'firmware/drivers') diff --git a/firmware/drivers/audio/imx233-codec.c b/firmware/drivers/audio/imx233-codec.c index d99a4d0ca9..20edf005e8 100644 --- a/firmware/drivers/audio/imx233-codec.c +++ b/firmware/drivers/audio/imx233-codec.c @@ -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) -- cgit v1.2.3