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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  H100: Initialization of the FM radio
« previous next »
  • Print
Pages: [1]

Author Topic: H100: Initialization of the FM radio  (Read 3937 times)

Offline fml2

  • Member
  • *
  • Posts: 157
H100: Initialization of the FM radio
« on: August 16, 2006, 02:30:06 AM »
Hello,

I asked this yesterday in IRC but got no reply. Maybe here more eyes will see it.

Does the FM radio need a special initialization? I tried to set up FM screen after startup by calling radio_screen() in tree.c (where auto resume is checked). The FM screen shows up but there's no sound. I use iriver H1xx.

I saw that in the menu, the radio is also activated by calling radio_screen(). But that doesn't work right after start up. Any ideas?

Thanks!
« Last Edit: August 21, 2006, 04:18:56 AM by midkay »
Logged

Offline LinusN

  • Member
  • *
  • Posts: 1914
Re: Initialization of the FM radio
« Reply #1 on: August 16, 2006, 03:02:50 AM »
Could it be that the audio setup is deferred nowadays, and you call radio_screen() before the audio init is done?
Logged
Archos Jukebox 6000, Recorder, FM Recorder/iAudio X5/iriver H1x0, H3x0/Toshiba Gigabeat F20/iPod G5, G5.5

Offline fml2

  • Member
  • *
  • Posts: 157
Re: Initialization of the FM radio
« Reply #2 on: August 16, 2006, 03:09:14 AM »
Quote from: LinusN on August 16, 2006, 03:02:50 AM
Could it be that the audio setup is deferred nowadays, and you call radio_screen() before the audio init is done?

Yes, that's what I think. But I wasn't sure since I don't know RockBox well. Do you mean that after switching on some activities (audio setup) are completed in the background by a special thread? Or is a check ('has audio been initialized') made just before activating playback? Because auto resume is called without anything special being done before.
Logged

Offline petur

  • Developer
  • Member
  • *
  • Posts: 769
  • wtb: time
Re: Initialization of the FM radio
« Reply #3 on: August 16, 2006, 07:15:08 AM »
Yes, some init stuff is being done in the background. Don't know the details, sorry...
Logged

Offline fml2

  • Member
  • *
  • Posts: 157
Re: Initialization of the FM radio
« Reply #4 on: August 16, 2006, 07:50:53 AM »
Quote from: petur on August 16, 2006, 07:15:08 AM
Yes, some init stuff is being done in the background. Don't know the details, sorry...

Thanks for the confirmation. I'll try to dig into it then. Maybe a sleep for a second or two will help thus allowing the background thread to finish its work. He-he... Poor man's solution :-)
« Last Edit: August 16, 2006, 08:23:28 AM by fml2 »
Logged

Offline fml2

  • Member
  • *
  • Posts: 157
Re: Initialization of the FM radio
« Reply #5 on: August 16, 2006, 02:47:31 PM »
Quote from: fml2 on August 16, 2006, 07:50:53 AM
Maybe a sleep for a second or two will help

Hey, that did indeed help!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  H100: Initialization of the FM radio
 

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

Page created in 0.073 seconds with 15 queries.