1
0
Fork 0
forked from len0rd/rockbox

Call tuner_power(true) from the correct place for lv24020lp.

This fixes radio not working on c200 and e200 (and possibly others),
as reported in FS#12631.

Change-Id: Idd66fa3b74916cc6f2de45ae7dd89b3bfd70f070
This commit is contained in:
Frank Gevaerts 2012-04-02 22:11:24 +02:00
parent eb6c6581bd
commit 416da2260c

View file

@ -740,8 +740,7 @@ static int sd_setcmp(int regval)
static void set_sleep(bool sleep)
{
if (sleep)
tuner_power(false);
tuner_power(!sleep);
if (sleep || tuner_awake())
return;
@ -749,7 +748,6 @@ static void set_sleep(bool sleep)
(TUNER_PRESENT | TUNER_POWERED))
return;
tuner_power(true);
enable_afc(false);
/* 2. Calibrate the IF frequency at 110 kHz: */