mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
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
This commit is contained in:
parent
8ca1831a5e
commit
7a977b833f
3 changed files with 44 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue