From 79c5202e0726dfea9bf712e403fba0dc2d8a71af Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 21 Nov 2002 18:57:15 +0000 Subject: 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 --- firmware/mpeg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'firmware') 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, (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); -- cgit v1.2.3