Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Sansa Clip+, RDA5802 and OIRT band (65-76 MHz)
« previous next »
  • Print
Pages: [1]

Author Topic: Sansa Clip+, RDA5802 and OIRT band (65-76 MHz)  (Read 2838 times)

Offline Alexey_B

  • Member
  • *
  • Posts: 4
Sansa Clip+, RDA5802 and OIRT band (65-76 MHz)
« on: June 25, 2012, 03:06:03 PM »
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!
Logged

Offline bertrik

  • Developer
  • Member
  • *
  • Posts: 171
    • Homepage Bertrik Sikken
Re: Sansa Clip+, RDA5802 and OIRT band (65-76 MHz)
« Reply #1 on: June 25, 2012, 03:34:19 PM »
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.
Logged
Meizu M6SP, Samsung YP-S3, iPod nano 1g, Sansa c200, Sansa e200, Sansa Clip, Sansa Clip+, Sansa Clip Zip
 

Offline Mh2000wh

  • Member
  • *
  • Posts: 1
Re: Sansa Clip+, RDA5802 and OIRT band (65-76 MHz)
« Reply #2 on: January 14, 2013, 09:33:16 AM »
On the spec sheet, it says you have to set "Band" to 10 for worldwide mode( 67-108 ) or 11 for Europe (65-76).
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Sansa Clip+, RDA5802 and OIRT band (65-76 MHz)
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.072 seconds with 15 queries.