diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-11-21 18:57:15 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-11-21 18:57:15 +0000 |
| commit | 79c5202e0726dfea9bf712e403fba0dc2d8a71af (patch) | |
| tree | bf3059414bbc8338166fe1d7502788fe54f8c2fc /firmware | |
| parent | 936b7b2a26f63c46cfb6833457a66bdc251573c3 (diff) | |
| download | rockbox-79c5202e0726dfea9bf712e403fba0dc2d8a71af.zip rockbox-79c5202e0726dfea9bf712e403fba0dc2d8a71af.tar.gz rockbox-79c5202e0726dfea9bf712e403fba0dc2d8a71af.tar.bz2 rockbox-79c5202e0726dfea9bf712e403fba0dc2d8a71af.tar.xz | |
Experiment to cure the strange sound wuality problem with Line In recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2871 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
| -rw-r--r-- | firmware/mpeg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index feb12ca..c5f036c 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -2473,6 +2473,8 @@ void mpeg_set_recording_options(int frequency, int quality, (1 << 2) /* Is an original */; mas_writemem(MAS_BANK_D0, 0x7f0, &val,1); + DEBUGF("mas_writemem(MAS_BANK_D0, 0x7f0, %x)\n", val); + val = (((source < 2)?1:2) << 8) | /* Input select */ (1 << 5) | /* SDO strobe invert */ ((is_mpeg1?0:1) << 3) | @@ -2480,6 +2482,8 @@ void mpeg_set_recording_options(int frequency, int quality, 1; /* Validate */ mas_writemem(MAS_BANK_D0, 0x7f1, &val,1); + DEBUGF("mas_writemem(MAS_BANK_D0, 0x7f1, %x)\n", val); + if(source == 0) /* Mic */ { /* Copy left channel to right (mono mode) */ @@ -2522,7 +2526,7 @@ void mpeg_init(int volume, int bass, int treble, int balance, int loudness, int mas_reset(); /* Enable the audio CODEC and the DSP core, max analog voltage range */ - rc = mas_direct_config_write(MAS_CONTROL, 0x8c00); + rc = mas_direct_config_write(MAS_CONTROL, 0x4c00); if(rc < 0) panicf("mas_ctrl_w: %d", rc); |