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
Loading
Please register or sign in to comment