diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-14 12:59:54 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-14 12:59:54 +0000 |
commit | ac43fd367ab4e2b41f2671a047c86e5ace81a33d (patch) | |
tree | 1ae746e5b84ddf85d02a71094689cfb2b5f02069 /firmware/target/arm/as3525/audio-as3525.c | |
parent | 59d827f7a63239fc508e4eb71bb4bb9769c79669 (diff) | |
download | rockbox-ac43fd367ab4e2b41f2671a047c86e5ace81a33d.tar.gz rockbox-ac43fd367ab4e2b41f2671a047c86e5ace81a33d.zip |
as3525v1: duplicate the right channel into the left channel when recording microphone
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26023 a1c6a512-1295-4272-9138-f99709370657
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 | ||