summaryrefslogtreecommitdiff
path: root/apps/mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mpeg.c')
-rw-r--r--apps/mpeg.c25
1 files changed, 9 insertions, 16 deletions
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)
2432 2432
2433 DEBUGF("mas_writemem(MAS_BANK_D0, ENCODER_CONTROL, %x)\n", shadow_encoder_control); 2433 DEBUGF("mas_writemem(MAS_BANK_D0, ENCODER_CONTROL, %x)\n", shadow_encoder_control);
2434 2434
2435#if CONFIG_TUNER & S1A0903X01
2436 /* Store the (unpitched) MAS PLL frequency. Used for avoiding FM
2437 interference with the Samsung tuner. */
2438 if (rec_frequency_index)
2439 mas_store_pllfreq(24576000);
2440 else
2441 mas_store_pllfreq(22579000);
2442#endif
2443
2435 shadow_soft_mute = options->rec_editable?4:0; 2444 shadow_soft_mute = options->rec_editable?4:0;
2436 mas_writemem(MAS_BANK_D0, MAS_D0_SOFT_MUTE, &shadow_soft_mute,1); 2445 mas_writemem(MAS_BANK_D0, MAS_D0_SOFT_MUTE, &shadow_soft_mute,1);
2437 2446
@@ -2484,22 +2493,6 @@ void audio_set_recording_gain(int left, int right, int type)
2484 mas_codec_writereg(0x0, shadow_codec_reg0); 2493 mas_codec_writereg(0x0, shadow_codec_reg0);
2485} 2494}
2486 2495
2487#if CONFIG_TUNER & S1A0903X01
2488/* Get the (unpitched) MAS PLL frequency, for avoiding FM interference with the
2489 * Samsung tuner. Zero means unknown. Currently handles recording from analog
2490 * input only. */
2491int mpeg_get_mas_pllfreq(void)
2492{
2493 if (mpeg_mode != MPEG_ENCODER)
2494 return 0;
2495
2496 if (rec_frequency_index == 0) /* 44.1 kHz / 22.05 kHz */
2497 return 22579000;
2498 else
2499 return 24576000;
2500}
2501#endif /* CONFIG_TUNER & S1A0903X01 */
2502
2503/* try to make some kind of beep, also in recording mode */ 2496/* try to make some kind of beep, also in recording mode */
2504void audio_beep(int duration) 2497void audio_beep(int duration)
2505{ 2498{