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

@ -32,9 +32,9 @@ static int output_source = AUDIO_SRC_PLAYBACK;
static void select_audio_path(void)
{
if(input_source == AUDIO_SRC_PLAYBACK)
imx233_audiout_select_hp_input(false);
imx233_audioout_select_hp_input(false);
else
imx233_audiout_select_hp_input(true);
imx233_audioout_select_hp_input(true);
}
void audio_input_mux(int source, unsigned flags)