diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-06-30 01:49:55 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-06-30 01:49:55 +0000 |
commit | 9c6abb19ae012763e4ee864d834b2492cdca8732 (patch) | |
tree | 447e3fa077e8c0ad1ce099f37d977334a9d15229 /firmware/mpeg.c | |
parent | a26427aba8da5deab4db0a2f1091ebe7b802ceb4 (diff) |
Mono recording with Line In now mixes the left and right channel. Fixes bug #753084.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3786 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r-- | firmware/mpeg.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 5d4552397d..a7d5265e8c 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -2823,6 +2823,7 @@ void mpeg_sound_channel_config(int configuration) val_rl = 0x40000; val_rr = 0x80000; break; + case MPEG_SOUND_KARAOKE: val_ll = 0x80001; val_lr = 0x7ffff; @@ -2916,11 +2917,19 @@ void mpeg_set_recording_options(int frequency, int quality, { /* Copy left channel to right (mono mode) */ mas_codec_writereg(8, 0x8000); + + /* We set the channel config to stereo to get a clean left channel */ + mpeg_sound_channel_config(MPEG_SOUND_STEREO); } else { /* Stereo input mode */ mas_codec_writereg(8, 0); + + if(channel_mode == 1) /* Mono */ + mpeg_sound_channel_config(MPEG_SOUND_MONO); + else + mpeg_sound_channel_config(MPEG_SOUND_STEREO); } } |