diff options
| author | Zixun LI <[email protected]> | 2026-05-07 11:17:57 +0200 |
|---|---|---|
| committer | Zixun LI <[email protected]> | 2026-05-07 11:17:57 +0200 |
| commit | e557f94c721871246ee7ac0761d74e5f8794300f (patch) | |
| tree | 99c322d499c23bcb3fe69b52fd68b852d14f0ea2 /src | |
| parent | d24cf89e4896ee959c034818bd4ecb6210714042 (diff) | |
revert RX buffer size as it's not related to issue
Even if CFG_TUH_MIDI_RX_BUFSIZE=100*TUH_EPSIZE_BULK_MAX, calling tuh_midi_stream_read without a loop can return only one 4-byte packet and preventing subsequent transfer.
Signed-off-by: Zixun LI <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/midi/midi_host.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/class/midi/midi_host.h b/src/class/midi/midi_host.h index 000d815c4..8fdfd8966 100644 --- a/src/class/midi/midi_host.h +++ b/src/class/midi/midi_host.h @@ -38,12 +38,7 @@ extern "C" { // Class Driver Configuration //--------------------------------------------------------------------+ #ifndef CFG_TUH_MIDI_RX_BUFSIZE - // Default sized to 2x the bulk endpoint to absorb residue left in the FIFO - // when tuh_midi_stream_read() stops early on a cable-number transition. - // Sizing this equal to the endpoint packet size (the historical default) - // can cause the next bulk IN transfer to fail to queue silently, wedging - // the stream. See the drain-loop note on tuh_midi_stream_read() below. - #define CFG_TUH_MIDI_RX_BUFSIZE (2 * TUH_EPSIZE_BULK_MAX) + #define CFG_TUH_MIDI_RX_BUFSIZE TUH_EPSIZE_BULK_MAX #endif #ifndef CFG_TUH_MIDI_TX_BUFSIZE |
