This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12685 - disk access on volume change
Attached to Project:
Rockbox
Opened by Wolfgang Dilg (rasferret) - Friday, 25 May 2012, 22:00 GMT+2
Last edited by MichaelGiacomelli (saratoga) - Saturday, 26 May 2012, 00:14 GMT+2
Opened by Wolfgang Dilg (rasferret) - Friday, 25 May 2012, 22:00 GMT+2
Last edited by MichaelGiacomelli (saratoga) - Saturday, 26 May 2012, 00:14 GMT+2
|
DetailsAt least with the newest build 652b39b volume changes on my sansa clip+ are awfully slow. I think its because every volume change triggers a disk access.
|
This task depends upon
Closed by MichaelGiacomelli (saratoga)
Saturday, 26 May 2012, 00:14 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in 3f72ba0.
Saturday, 26 May 2012, 00:14 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in 3f72ba0.
As for why this happens on volume, I'm baffled as to why volume changes even trigger a storage callback.
Volume changes are saved to the config file. If storage callbacks are enabled, this will happen the next time storage is used for other reasons (so disks don't spin up too often, or flash doesn't power on too often). Otherwise, the save is synchronous (and therefore slow).
6b8330d2, which was meant to add enabling storage callbacks for hosted targets (i.e. sims and application builds), was wrong and instead basically enabled it *only* for hosted targets, dropping the native targets.