diff options
Diffstat (limited to 'firmware/target/arm/as3525/audio-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/audio-as3525.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/audio-as3525.c b/firmware/target/arm/as3525/audio-as3525.c index c56024f2b5..570ff1491c 100644 --- a/firmware/target/arm/as3525/audio-as3525.c +++ b/firmware/target/arm/as3525/audio-as3525.c | |||
@@ -25,6 +25,8 @@ | |||
25 | #include "audiohw.h" | 25 | #include "audiohw.h" |
26 | #include "sound.h" | 26 | #include "sound.h" |
27 | 27 | ||
28 | int audio_channels = 2; | ||
29 | |||
28 | void audio_set_output_source(int source) | 30 | void audio_set_output_source(int source) |
29 | { | 31 | { |
30 | (void)source; | 32 | (void)source; |
@@ -47,6 +49,7 @@ void audio_input_mux(int source, unsigned flags) | |||
47 | case AUDIO_SRC_PLAYBACK: | 49 | case AUDIO_SRC_PLAYBACK: |
48 | if (source != last_source) | 50 | if (source != last_source) |
49 | { | 51 | { |
52 | audio_channels = 2; | ||
50 | #if defined(HAVE_RECORDING) || defined(HAVE_FMRADIO_IN) | 53 | #if defined(HAVE_RECORDING) || defined(HAVE_FMRADIO_IN) |
51 | audiohw_set_monitor(false); | 54 | audiohw_set_monitor(false); |
52 | #endif | 55 | #endif |
@@ -60,6 +63,7 @@ void audio_input_mux(int source, unsigned flags) | |||
60 | case AUDIO_SRC_MIC: /* recording only */ | 63 | case AUDIO_SRC_MIC: /* recording only */ |
61 | if (source != last_source) | 64 | if (source != last_source) |
62 | { | 65 | { |
66 | audio_channels = 1; | ||
63 | audiohw_set_monitor(false); | 67 | audiohw_set_monitor(false); |
64 | audiohw_enable_recording(true); /* source mic */ | 68 | audiohw_enable_recording(true); /* source mic */ |
65 | } | 69 | } |
@@ -76,6 +80,7 @@ void audio_input_mux(int source, unsigned flags) | |||
76 | ) | 80 | ) |
77 | break; | 81 | break; |
78 | 82 | ||
83 | audio_channels = 2; | ||
79 | #ifdef HAVE_RECORDING | 84 | #ifdef HAVE_RECORDING |
80 | last_recording = recording; | 85 | last_recording = recording; |
81 | 86 | ||