summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-11-21 18:57:15 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-11-21 18:57:15 +0000
commit79c5202e0726dfea9bf712e403fba0dc2d8a71af (patch)
treebf3059414bbc8338166fe1d7502788fe54f8c2fc /firmware
parent936b7b2a26f63c46cfb6833457a66bdc251573c3 (diff)
downloadrockbox-79c5202e0726dfea9bf712e403fba0dc2d8a71af.tar.gz
rockbox-79c5202e0726dfea9bf712e403fba0dc2d8a71af.zip
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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index feb12ca57f..c5f036c860 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -2473,6 +2473,8 @@ void mpeg_set_recording_options(int frequency, int quality,
2473 (1 << 2) /* Is an original */; 2473 (1 << 2) /* Is an original */;
2474 mas_writemem(MAS_BANK_D0, 0x7f0, &val,1); 2474 mas_writemem(MAS_BANK_D0, 0x7f0, &val,1);
2475 2475
2476 DEBUGF("mas_writemem(MAS_BANK_D0, 0x7f0, %x)\n", val);
2477
2476 val = (((source < 2)?1:2) << 8) | /* Input select */ 2478 val = (((source < 2)?1:2) << 8) | /* Input select */
2477 (1 << 5) | /* SDO strobe invert */ 2479 (1 << 5) | /* SDO strobe invert */
2478 ((is_mpeg1?0:1) << 3) | 2480 ((is_mpeg1?0:1) << 3) |
@@ -2480,6 +2482,8 @@ void mpeg_set_recording_options(int frequency, int quality,
2480 1; /* Validate */ 2482 1; /* Validate */
2481 mas_writemem(MAS_BANK_D0, 0x7f1, &val,1); 2483 mas_writemem(MAS_BANK_D0, 0x7f1, &val,1);
2482 2484
2485 DEBUGF("mas_writemem(MAS_BANK_D0, 0x7f1, %x)\n", val);
2486
2483 if(source == 0) /* Mic */ 2487 if(source == 0) /* Mic */
2484 { 2488 {
2485 /* Copy left channel to right (mono mode) */ 2489 /* 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
2522 mas_reset(); 2526 mas_reset();
2523 2527
2524 /* Enable the audio CODEC and the DSP core, max analog voltage range */ 2528 /* Enable the audio CODEC and the DSP core, max analog voltage range */
2525 rc = mas_direct_config_write(MAS_CONTROL, 0x8c00); 2529 rc = mas_direct_config_write(MAS_CONTROL, 0x4c00);
2526 if(rc < 0) 2530 if(rc < 0)
2527 panicf("mas_ctrl_w: %d", rc); 2531 panicf("mas_ctrl_w: %d", rc);
2528 2532