FS#8238 - tuner fails to tune in when awaken by alarm wake-up
Attached to Project:
Rockbox
Opened by Przemysław Hołubowski (p.h.) - Tuesday, 27 November 2007, 10:47 GMT
Last edited by Michael Sevakis (MikeS) - Friday, 25 January 2008, 19:21 GMT
Opened by Przemysław Hołubowski (p.h.) - Tuesday, 27 November 2007, 10:47 GMT
Last edited by Michael Sevakis (MikeS) - Friday, 25 January 2008, 19:21 GMT
|
DetailsWhen H10 is awaken by the RTC alarm wake-up and as a start screen tuner or recording screen is chosen then after awaking tuner does not tune in for the last played station. One can only hear noise and some hardly audible radio station different from the one that was played last.
|
This task depends upon
Closed by Michael Sevakis (MikeS)
Friday, 25 January 2008, 19:21 GMT
Reason for closing: Fixed
Additional comments about closing: Just dumped an extra DELAY; in fmradio_i2c_outb and all is well on my unit.
Friday, 25 January 2008, 19:21 GMT
Reason for closing: Fixed
Additional comments about closing: Just dumped an extra DELAY; in fmradio_i2c_outb and all is well on my unit.
When the radio is turned on and PLL frequency is set it may be checked whether or not radio got tuned in. If it wasn't tuned in PLL frequency may be repeatedly set until the radio gets tuned in.
The patch was tested on H10 20GB and was found to work reliably.
FS#8144and in general I think the issues on 20GB need to be found (In my case, no chip communication at all at 80MHz) rather than a brute-force workaround. I'm pretty confident one exists. The driver probably needs tweaking too in order to allow powerup time before actually doing much with the radio.Is the CPU frequency at 80MHz at the time the alarm wakes up?
As to the CPU frequency - when alarm wakes up CPU freq. is 80MHz up to the line where tuner's PLL is set. It changes to 30MHz right after that line (see radio_start() in radio.c). When the player is turned on in a normal way CPU freq. is already set to 30MHz before the line which sets PLL.