Support and General Use > Hardware

H100: Initialization of the FM radio

(1/2) > >>

fml2:
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!

LinusN:
Could it be that the audio setup is deferred nowadays, and you call radio_screen() before the audio init is done?

fml2:

--- 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?

--- End quote ---

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.

petur:
Yes, some init stuff is being done in the background. Don't know the details, sorry...

fml2:

--- 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...

--- End quote ---

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 :-)

Navigation

[0] Message Index

[#] Next page

Go to full version