diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-02-03 19:58:25 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-02-03 20:04:39 +0100 |
commit | 1a083cdaccb3598de834c3643c5bc02716af804d (patch) | |
tree | 05536822b84d48e1d5d71954646b7ae52e03f04a /firmware/target/arm/imx233/sansa-fuzeplus | |
parent | 7d54ff069ba36702b58d1dd6bb8a8ab03297f9e2 (diff) | |
download | rockbox-1a083cdaccb3598de834c3643c5bc02716af804d.tar.gz rockbox-1a083cdaccb3598de834c3643c5bc02716af804d.zip |
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
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus')
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/audio-fuzeplus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/audio-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/audio-fuzeplus.c index abdcda90cb..57a3efd642 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/audio-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/audio-fuzeplus.c | |||
@@ -32,9 +32,9 @@ static int output_source = AUDIO_SRC_PLAYBACK; | |||
32 | static void select_audio_path(void) | 32 | static void select_audio_path(void) |
33 | { | 33 | { |
34 | if(input_source == AUDIO_SRC_PLAYBACK) | 34 | if(input_source == AUDIO_SRC_PLAYBACK) |
35 | imx233_audiout_select_hp_input(false); | 35 | imx233_audioout_select_hp_input(false); |
36 | else | 36 | else |
37 | imx233_audiout_select_hp_input(true); | 37 | imx233_audioout_select_hp_input(true); |
38 | } | 38 | } |
39 | 39 | ||
40 | void audio_input_mux(int source, unsigned flags) | 40 | void audio_input_mux(int source, unsigned flags) |