Actually power off the lv24020 tuner (Sansa e200/c200). Don't clear the TUNER_POWERED flag until after writing to the device.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15876 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mark Arigo 2007-12-05 02:38:35 +00:00
parent ea4fc14a7f
commit 36ee6532c5

View file

@ -832,11 +832,11 @@ void lv24020lp_power(bool status)
}
else
{
tuner_status &= ~(TUNER_POWERED | TUNER_AWAKE);
/* Power off */
if (tuner_status & TUNER_PRESENT)
lv24020lp_write_and(PW_SCTRL, ~PW_RAD);
tuner_status &= ~(TUNER_POWERED | TUNER_AWAKE);
}
}