From caff78802b4caad5b7a4c0f70d1efd13b886335d Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 4 Dec 2003 11:26:10 +0000 Subject: Fix for the occasional problem on FMR devices, when the device can't be turned off git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4105 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/rtc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/drivers/rtc.c b/firmware/drivers/rtc.c index 20b0b00a75..d5b6c2fda6 100644 --- a/firmware/drivers/rtc.c +++ b/firmware/drivers/rtc.c @@ -57,6 +57,10 @@ void rtc_init(void) rtc_write(0x04, data); } + /* Also, make sure that the OUT bit in register 8 is 1, + otherwise the player can't be turned off. */ + rtc_write(8, rtc_read(8) | 0x80); + rtc_enable_alarm(false); #endif } -- cgit v1.2.3