mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 12:54:29 +01:00
uh_parse_midi refused real descriptor shapes: an OUT-only MIDI interface ahead of the one with the IN endpoint, an interrupt IN with bInterval 0, and bulk sizes that are not a power of two. uh_connect gave up after one probe, so any slow answer after the bus reset also read as NOT USB MIDI. Now: the parser keeps looking past an OUT-only interface, takes interval 0 as every frame and any bulk size of 4..64; the probe is tried three times with a bus reset and a longer recovery each, and waits 20 ms after SET_ADDRESS. tests/usb_host_desc_test.c covers the new shapes (they fail on the old parser) and runs in voice-user-check. Layout repinned (keep). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh