diff options
Diffstat (limited to 'firmware/target/arm/audio-pp.c')
-rw-r--r-- | firmware/target/arm/audio-pp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/audio-pp.c b/firmware/target/arm/audio-pp.c index b170518af4..1a4952fcc3 100644 --- a/firmware/target/arm/audio-pp.c +++ b/firmware/target/arm/audio-pp.c | |||
@@ -35,7 +35,7 @@ void audio_input_mux(int source, unsigned flags) | |||
35 | (void)flags; | 35 | (void)flags; |
36 | /* Prevent pops from unneeded switching */ | 36 | /* Prevent pops from unneeded switching */ |
37 | static int last_source = AUDIO_SRC_PLAYBACK; | 37 | static int last_source = AUDIO_SRC_PLAYBACK; |
38 | #ifdef HAVE_FMRADIO_REC | 38 | #ifdef HAVE_FMRADIO_REC |
39 | bool recording = flags & SRCF_RECORDING; | 39 | bool recording = flags & SRCF_RECORDING; |
40 | static bool last_recording = false; | 40 | static bool last_recording = false; |
41 | #endif | 41 | #endif |
@@ -43,7 +43,7 @@ void audio_input_mux(int source, unsigned flags) | |||
43 | #if defined(IPOD_COLOR) || defined (IPOD_4G) | 43 | #if defined(IPOD_COLOR) || defined (IPOD_4G) |
44 | /* The usual magic from IPL - I'm guessing this configures the headphone | 44 | /* The usual magic from IPL - I'm guessing this configures the headphone |
45 | socket to be input or output. */ | 45 | socket to be input or output. */ |
46 | if (recording && source != AUDIO_SRC_PLAYBACK) | 46 | if ((flags & SRCF_RECORDING) && source != AUDIO_SRC_PLAYBACK) |
47 | { | 47 | { |
48 | /* input */ | 48 | /* input */ |
49 | GPIO_CLEAR_BITWISE(GPIOI_OUTPUT_VAL, 0x40); | 49 | GPIO_CLEAR_BITWISE(GPIOI_OUTPUT_VAL, 0x40); |