Rockbox Development > Starting Development and Compiling

Sansa Clip+, RDA5802 and OIRT band (65-76 MHz)

(1/1)

Alexey_B:
Hi!

According to datasheet, FM-chip RDA5802 supports not only US/Europe and Japan FM bands but Eastern Europe OIRT band as well. Here in Russia both  US/Europe and Eastern Europe bands are used. So it would be nice to have support of OIRT band in Clip+.

I have digged in sources of Rockbox and made some changes. The idea was to change borders of region named "Other". When I would switch FM radio in player to this region, the radio would tune in to OIRT band. But when I try it, player freezes instead of working.


Here are the changes I have done (new entries are in bold):

1. In the file firmware/tuner.c:

[REGION_OTHER]     = { 65000000, 76000000,  50000, 50 }


2. In the file firmware/drivers/tuner/rda5802.c:

{
    const struct fm_region_data *rd = &fm_region_data[region];

    int band = (rd->freq_min == 65000000) ?
               CHANNEL_BAND_650_760 : CHANNEL_BAND_870_1080;
    int deemphasis = (rd->deemphasis == 50) ? SYSCONFIG1_DE : 0;
    int space = (rd->freq_step == 50000) ?
                CHANNEL_SPACE_50KHZ : CHANNEL_SPACE_100KHZ;

    rda5802_write_masked(SYSCONFIG1, deemphasis, SYSCONFIG1_DE);
    rda5802_write_masked(CHANNEL, CHANNEL_BANDw(band), CHANNEL_BAND);
    rda5802_write_masked(CHANNEL, CHANNEL_SPACEw(space), CHANNEL_SPACE);
    rda5802_write_cache();
}


Maybe I missed something or made some mistakes? Thanks!

bertrik:
Yes, it looks like that should work to at least test the 65 MHz - 76 MHz band. No idea why it hangs, I'll try this on my RDA5802 clip+ too.

Mh2000wh:
On the spec sheet, it says you have to set "Band" to 10 for worldwide mode( 67-108 ) or 11 for Europe (65-76).

Navigation

[0] Message Index

Go to full version