diff options
| author | 2022-10-03 22:03:51 +0000 | |
|---|---|---|
| committer | 2022-10-13 17:11:12 +0000 | |
| commit | 8c7028e8381ac030ff56f55c9be3b99da64820b6 (patch) | |
| tree | 33f7f0b3fd69b56067be13720e016b1e6910f914 /libs/androidfw/StringPool.cpp | |
| parent | 71cb768eb1cb4f4a1c9b27f3d45201b6aeee0e25 (diff) | |
USB MIDI: Extend bulkTransfer timeout
If a UsbDeviceConnection is used both for sending and receiving data,
bulkTransfer may time out.
The solution is to extend the timeout from 10ms to a second.
Also, we need to split the packet into multiple packets if they are
greater than the endpoint's max packet size. Linux would do this for
us, but with the new retry code, we may be sending some parts of the
packet multiple times otherwise.
This is because if Linux would split the packet into 3 packets and
only the third packet fails, the first and second packets would resend
if we don't split the packets.
Bug: 250616636
Bug: 251551233
Change-Id: Ic4dc2d4434731d34b26b0e073221e4ef5ebbd920
Test: CTS Verifier MIDI tests
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions