summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Robert Wu <robertwu@google.com> 2022-05-06 18:14:13 +0000
committer Robert Wu <robertwu@google.com> 2022-05-09 17:14:04 +0000
commit9228e50119a13c155d6048d7ee713e380ca54737 (patch)
treed81fdbc27f8f34777779cd520fe3f8cbc202fda9 /api/api.go
parent7fe0b77c8bbd4760ee13003c39cf59f7be633850 (diff)
USB MIDI: Replace bulkTransfer with requestWait
When getting data from a device, bulkTransfer loses ~1-2% of data. The recommended approach is to use requestWait as done in this CL. This method also lets us remove a lock. Removing this lock speeds up initialization, fixing a timeout bug with CTS Verifier. Also add a null check for UsbDeviceConnection Bug: 231496864 Bug: 223316278 Bug: 231973034 Test: MidiKeyboard/MidiSynth to multiple keyboards Test: CTS Verifier with AudioBox USB96 Change-Id: Ib841fd0b092e93ac5fdb7a65221ec5c2958f6171
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions