| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hi,
During debugging weird "access only possible once" scenarios,
on Raspberry Pi and also on regular Linux with USB 3.0 controllers,
I found that clearing halt on a endpoint which is not stalled
will confuse the (kernel) driver and device and make them really
stall until resetted.
This is probably a Kernel bug.
So do not do a unconditional clear_halt.
I am leaving the conditional clear_stall in, as it queries the
status before.
This might need testing.
Ciao, Marcus
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
|
|
| |
This adds and API to check a device for specific capabilities,
when need be.
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In general, GetObject for large files is much like SendObject; you
keep trying to transfer data until the sender stops. The existing
code does almost everything you need, except it doesn't use a
sufficient condition to detect the case.
While you might think that a large transfer would be signaled with
a containerLength of 0xFFFFFFFF - this has not proven the case in
my testing; what I see is the file size truncated to 32bits. This
makes the existing condition ineffectual.
An alternative condition, suggested by Han-Wen, is to simply always
use the sender-limited transfer pattern if the transfer is larger
than one packet. This means that the containerLength is ignored for
any transfer over 512 bytes, but it works, and it's really the only
way to handle the corner case where the large file size truncates
to a small value < 512.
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
|
|
|
| |
The libmtp specific piece of supporting > 4GB file transfers was
missing.
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
|
|
|
| |
Not sure why, but these changes were dropped when the original
patchset was applied. The rest of the changes to ptp made it in.
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
|
| |
Here is an updated diff also build tested with gcc 4.6.
Signed-off-by: Brad Smith <brad@comstyle.com>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
|
|
|
| |
The Samsung Galaxy S3 which is 04e8:6860 supports FLAC and OGG files, even if it
doesn't report its support, so add these two flags to music-players.h.
Signed-off-by: Chow Loong Jin <hyperair@debian.org>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
| |
Signed-off-by: Lei Zhang <thestig@google.com>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
| |
Signed-off-by: Lei Zhang <thestig@google.com>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
| |
Signed-off-by: Lei Zhang <thestig@google.com>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
|
|
| |
Stock Nexus S devices are mass storage and not MTP.
Signed-off-by: Lei Zhang <thestig@google.com>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
| |
Signed-off-by: Lei Zhang <thestig@google.com>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
| |
Signed-off-by: Lei Zhang <thestig@google.com>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
| |
Signed-off-by: Lei Zhang <thestig@google.com>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
|
| |
Also remove incorrect model number from some Sony entries
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These events, along with the previously exposed StoreAdded event,
are the most frequently implemented events on MTP devices. In the
case of Google's Android MTP stack, they are the only events
exposed.
In the case of StoreRemoved, the param value is the storage ID
and in the case of ObjectAdded/Removed, it is the entity ID.
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
|
|
|
| |
This change just adds simple libmtp wrappers for the libptp
methods that in turn expose the android in-place read/write extensions.
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
|
|
| |
script grabbing out the source code...
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|
|
|
|
| |
Signed-off-by: Linus Walleij <triad@df.lth.se>
|