Rockbox

Tasklist

FS#10514 - itunes compatible time setting

Attached to Project: Rockbox
Opened by Laurent Papier (papier) - Tuesday, 11 August 2009, 16:32 GMT
Last edited by Frank Gevaerts (fg) - Tuesday, 11 August 2009, 17:55 GMT
Task Type Patches
Category Operating System/Drivers
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This patch adds support for itunes time setting (special SCSI command over USB).

I have only tested it with my iPod mini2g and with ipod-time-sync tool from libgpod. But from the short discussion I had on IRC, it could works on other target too and with iTunes.

The USB code is taken from Frank Gevaerts patch found in FS#10023.
This task depends upon

Closed by  Frank Gevaerts (fg)
Tuesday, 11 August 2009, 17:55 GMT
Reason for closing:  Accepted
Additional comments about closing:  Accepted as r22255
Comment by Laurent Papier (papier) - Tuesday, 11 August 2009, 16:35 GMT
missing patch
Comment by Maurus Cuelenaere (mcuelenaere) - Tuesday, 11 August 2009, 17:48 GMT
In yearday_to_daymonth():

Can't you move the ((y%4 == 0 && y%100 != 0) || y%400 == 0) check into if(yd <= t[i]) { ... }?

That way you'd only have to increase *d and not the whole t[] array..

Loading...