This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8046 - H10 Radio
Attached to Project:
Rockbox
Opened by Barry Wardell (barrywardell) - Tuesday, 30 October 2007, 02:47 GMT+2
Last edited by Barry Wardell (barrywardell) - Sunday, 11 November 2007, 17:03 GMT+2
Opened by Barry Wardell (barrywardell) - Tuesday, 30 October 2007, 02:47 GMT+2
Last edited by Barry Wardell (barrywardell) - Sunday, 11 November 2007, 17:03 GMT+2
|
DetailsThis is my first attempt at getting the FM radio working on the H10. I did this quite a while ago. Quite a few things have changed in svn since then, so I've done a quick sync and hopefully not missed anything.
Unfortunately, it doesn't seem to work at all right now and never did. The FM radio debug screen seems to indicate that the I2C communication with the device is somehow not working (at least some of those data bytes should be non-zero). |
This task depends upon
Closed by Barry Wardell (barrywardell)
Sunday, 11 November 2007, 17:03 GMT+2
Reason for closing: Accepted
Sunday, 11 November 2007, 17:03 GMT+2
Reason for closing: Accepted
(fmradio_i2c.c)
Apart from that, this patch is a hack as it breaks FM radio on Ondio. Hijacking other arch's code isn't nice...
Read: D0 78 02 00 BC
Write: 00 00 00 00 00
I'm not sure if these are right. I think it documents them in the datasheet, but haven't had a chance to take a proper look.
No luck with sound yet, too. We probably need to look a bit closer at the code in audio-pp.c for that. We'll also probably need to figure out what to do about the wait for SCL.
The driver seems to talk to the chip just fine, tuning finds a signal where expected in my area, but there's no sound yet. Also, the radio controls are messed up so the only thing that works is tuning....
I also changed audio_set_recvol() to set the volume to 0dB. It makes sense to me that it should be set that way. Is there any reason it was set to -34.5dB (LINVOL = 0) previously?
Still no success, however. Turning the volume up to max, I can hear faint random noise, which does respond slightly to changing station.