diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-05-28 01:09:19 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-05-28 01:09:19 +0000 |
| commit | 7a977b833fed49f67a74636addb590f078d12636 (patch) | |
| tree | 49a13ff70ad4c8d31e1380158462cdbf7c0096f0 /firmware/mpeg.c | |
| parent | 8ca1831a5e87cf4216b3d36a373ca8ed481941f1 (diff) | |
| download | rockbox-7a977b833fed49f67a74636addb590f078d12636.zip rockbox-7a977b833fed49f67a74636addb590f078d12636.tar.gz rockbox-7a977b833fed49f67a74636addb590f078d12636.tar.bz2 rockbox-7a977b833fed49f67a74636addb590f078d12636.tar.xz | |
Avoid radio interference from the MAS internal clock on devices with the Samsung tuner (FM recorder, old Ondio FM) by slightly shifting it away when necessary.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6531 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/mpeg.c')
| -rw-r--r-- | firmware/mpeg.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index ff3f95c..28bfa62 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -2382,6 +2382,22 @@ void mpeg_set_recording_gain(int left, int right, bool use_mic) mas_codec_writereg(0x0, shadow_codec_reg0); } +#if CONFIG_TUNER & S1A0903X01 +/* Get the (unpitched) MAS PLL frequency, for avoiding FM interference with the + * Samsung tuner. Zero means unknown. Currently handles recording from analog + * input only. */ +int mpeg_get_mas_pllfreq(void) +{ + if (mpeg_mode != MPEG_ENCODER) + return 0; + + if (rec_frequency_index == 0) /* 44.1 kHz / 22.05 kHz */ + return 22579000; + else + return 24576000; +} +#endif + /* try to make some kind of beep, also in recording mode */ void audio_beep(int duration) { |