From 9558c4956d3d603c4d132af88633767810f3ba62 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Tue, 14 Oct 2008 11:12:20 +0000 Subject: Moved pcm_record from firmware to apps. Cleaned up some. Now all code using struct mp3entry is in apps. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18807 a1c6a512-1295-4272-9138-f99709370657 --- apps/mpeg.c | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'apps/mpeg.c') diff --git a/apps/mpeg.c b/apps/mpeg.c index 2c65e46060..b570f41b28 100644 --- a/apps/mpeg.c +++ b/apps/mpeg.c @@ -2432,6 +2432,15 @@ void audio_set_recording_options(struct audio_recording_options *options) DEBUGF("mas_writemem(MAS_BANK_D0, ENCODER_CONTROL, %x)\n", shadow_encoder_control); +#if CONFIG_TUNER & S1A0903X01 + /* Store the (unpitched) MAS PLL frequency. Used for avoiding FM + interference with the Samsung tuner. */ + if (rec_frequency_index) + mas_store_pllfreq(24576000); + else + mas_store_pllfreq(22579000); +#endif + shadow_soft_mute = options->rec_editable?4:0; mas_writemem(MAS_BANK_D0, MAS_D0_SOFT_MUTE, &shadow_soft_mute,1); @@ -2484,22 +2493,6 @@ void audio_set_recording_gain(int left, int right, int type) 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 /* CONFIG_TUNER & S1A0903X01 */ - /* try to make some kind of beep, also in recording mode */ void audio_beep(int duration) { -- cgit v1.2.3