[PATCH] itdb_tzinfo.c: handle more iPod classic sizes (6g)
Adeodato Simó <[email protected]> Tue, 31 May 2011 04:12:05 +0100
| Newsgroups | gmane.comp.ipod.gtkpod |
|---|---|
| Message-ID | <f5a3abb004d51f6a742190a5d5ca828c22ccd189.1306810984.git.dato@net.com.org.es> |
---
Hi,
this tiny patch (adding one extra possible size for the Preferences
file) fixes timezone recognition in my 6g iPod Classic.
I've tested it:
- the get-timezone.c program prints correct values for Europe/Dublin
(local timezone in the computer) and Europe/Madrid (not local
timezone in the computer), UTC+1 and UTC+2 respectively (we're on
DST at the moment)
- reading a LE 32-bit integer at byte 0xb70 in my Preferences file
yields the expected city IDs (0x4b when the timezone is Dublin in
the iPod; 0x62 for Madrid).
I'd be grateful if you could apply it.
src/itdb_tzinfo.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/itdb_tzinfo.c b/src/itdb_tzinfo.c
index ded4dd2..3c29947 100644
--- a/src/itdb_tzinfo.c
+++ b/src/itdb_tzinfo.c
@@ -272,6 +272,7 @@ G_GNUC_INTERNAL void itdb_device_set_timezone_info (Itdb_Device *device)
raw_timezone_converter = raw_timezone_to_utc_shift_5g;
break;
case 2952: /* seen on nano 3g and iPod classic */
+ case 2956: /* seen on iPod classic */
case 2960: /* seen on nano 4g */
offset = 0xb70;
raw_timezone_converter = raw_timezone_to_utc_shift_6g;
--
1.7.2.3
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev