Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Player Flash
From: Björn Stenberg (bjorn_at_haxx.se)
Date: 2003-05-26


TP Diffenbach wrote:

> What I also discovered is that the settings are copied from the global
> struct user_settings global_settings to the global unsigned char[]
> config_block continuously -- at over once a second. I wonder if this copying
> could also be deferred until the values are actually to be writen to the
> disk,

No. These values are written to the RTC even if they are not written to disk. It has to be done fairly often to make the resume information correct. The exact frequency depends on the DMA interrupt (which updates mp3info->elapsed, which triggers the write). We could write this less often, resulting in less exact resume, but I don't see that it is a problem today.

We could copy this much less often on players as they don't have the RTC and thus only saves on disk. But we can not defer the copying until the disk spins up, as that is only known by the ata device driver. (See ata_delayed_write() to see how it's done.)

-- 
Björn



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa