summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2009-03-20 23:19:06 +0000
committerMarcus Meissner <marcus@jet.franken.de>2009-03-20 23:19:06 +0000
commit108c7e171b748356447e15231b2b1c78d5cc9a4b (patch)
treed1c11754b23dea79c529919740e3646828553c40
parent8b694a195a8e6543c140635910f86a43ebc24965 (diff)
downloadlibgphoto2-108c7e171b748356447e15231b2b1c78d5cc9a4b.tar.gz
merged from libmtp
git-svn-id: https://svn.code.sf.net/p/gphoto/code/branches/libgphoto2-2_4/libgphoto2@11871 67ed7778-7388-44ab-90cf-0a291f65f57c
-rw-r--r--camlibs/ptp2/device-flags.h9
-rw-r--r--camlibs/ptp2/music-players.h21
2 files changed, 28 insertions, 2 deletions
diff --git a/camlibs/ptp2/device-flags.h b/camlibs/ptp2/device-flags.h
index 2eb092b85..b08d28d65 100644
--- a/camlibs/ptp2/device-flags.h
+++ b/camlibs/ptp2/device-flags.h
@@ -149,7 +149,9 @@
* to unknown when storing Ogg files, even though they're not
* actually unknown. Later iRivers seem to need this flag since
* they do not report to support OGG even though they actually
- * do.
+ * do. Often the device supports OGG in USB mass storage mode,
+ * then the firmware simply miss to declare metadata support
+ * for OGG properly.
*/
#define DEVICE_FLAG_OGG_IS_UNKNOWN 0x00000200
/**
@@ -199,3 +201,8 @@
* Gigabeat MEU202 for example has this problem.
*/
#define DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST 0x00008000
+/**
+ * Devices that cannot support reading out battery
+ * level.
+ */
+#define DEVICE_FLAG_BROKEN_BATTERY_LEVEL 0x00010000
diff --git a/camlibs/ptp2/music-players.h b/camlibs/ptp2/music-players.h
index ecfbc7b44..ce5c4de8b 100644
--- a/camlibs/ptp2/music-players.h
+++ b/camlibs/ptp2/music-players.h
@@ -296,7 +296,12 @@
DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED },
// Reported by Patrick <skibler@gmail.com>
// There are apparently problems with this device.
- { "SanDisk", 0x0781, "Sansa Fuze", 0x74c0,
+ { "SanDisk", 0x0781, "Sansa Fuze", 0x74c0,
+ DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST |
+ DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR |
+ DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED },
+ // Harry Phillips <tuxcomputers@users.sourceforge.net>
+ { "SanDisk", 0x0781, "Sansa Fuze v2", 0x74c2,
DEVICE_FLAG_UNLOAD_DRIVER | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST |
DEVICE_FLAG_NO_RELEASE_INTERFACE | DEVICE_FLAG_ALWAYS_PROBE_DESCRIPTOR |
DEVICE_FLAG_CANNOT_HANDLE_DATEMODIFIED },
@@ -534,6 +539,8 @@
{ "Nokia", 0x0421, "N78 Mobile Phone", 0x0079, DEVICE_FLAG_NONE },
// From William Pettersson <the_enigma@users.sourceforge.net>
{ "Nokia", 0x0421, "6220 Classic", 0x008d, DEVICE_FLAG_NONE },
+ // From kellerkev@gmail.com
+ { "Nokia", 0x0421, "N85 Mobile Phone", 0x0092, DEVICE_FLAG_NONE },
// From: danielw
{ "Nokia", 0x0421, "E71", 0x00e4, DEVICE_FLAG_NONE },
// From: Laurent Bigonville <bigon@users.sourceforge.net>
@@ -583,6 +590,7 @@
// From kiki <omkiki@users.sourceforge.net>
{ "Thomson", 0x069b, "EM28 Series", 0x0774, DEVICE_FLAG_NONE },
{ "Thomson / RCA", 0x069b, "Opal / Lyra MC4002", 0x0777, DEVICE_FLAG_NONE },
+ { "Thomson", 0x069b, "Lyra MC5104B (M51 Series)", 0x077c, DEVICE_FLAG_NONE },
{ "Thomson", 0x069b, "RCA H106", 0x301a, DEVICE_FLAG_UNLOAD_DRIVER },
// From Svenna <svenna@svenna.de>
// Not confirmed to be MTP.
@@ -695,6 +703,8 @@
{ "Sony", 0x054c, "Walkman NWZ-B135", 0x036e, DEVICE_FLAG_UNLOAD_DRIVER },
// Reported by <tiagoboldt@users.sourceforge.net>
{ "Sony", 0x054c, "Walkman NWZ-E436F", 0x0385, DEVICE_FLAG_UNLOAD_DRIVER },
+ // Reported by Ondrej Sury <ondrej@sury.org>
+ { "Sony", 0x054c, "Walkman NWZ-S739F", 0x038c, DEVICE_FLAG_UNLOAD_DRIVER },
// Reported by Marco Filipe Nunes Soares Abrantes Pereira <marcopereira@ua.pt>
{ "Sony", 0x054c, "Walkman NWZ-S638F", 0x038e, DEVICE_FLAG_UNLOAD_DRIVER },
@@ -783,6 +793,15 @@
{ "Pioneer", 0x08e4, "XMP3", 0x0148, DEVICE_FLAG_NONE },
/*
+ * Slacker Inc.
+ * Put in all evilness flags because it looks fragile.
+ */
+ // Reported by Pug Fantus <pugfantus@users.sourceforge.net>
+ { "Slacker Inc.", 0x1bdc, "Slacker Portable Media Player", 0xfabf,
+ DEVICE_FLAG_BROKEN_BATTERY_LEVEL | DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST |
+ DEVICE_FLAG_BROKEN_SET_OBJECT_PROPLIST | DEVICE_FLAG_BROKEN_SEND_OBJECT_PROPLIST },
+
+ /*
* Other strange stuff.
*/
{ "Isabella", 0x0b20, "Her Prototype", 0xddee, DEVICE_FLAG_NONE }