Refactor the TASCAM US-144MKII driver to improve performance and
stability for low-latency audio applications.
The key changes include:
- Improved stream and URB management for more reliable audio streaming.
- Reworked synchronization logic to prevent race conditions.
This commit includes:
- Reverted audio stream decoupling to restore original behavior.
- Implemented SysEx state machine and error retry for MIDI handling.
- Performed memory leak audit and confirmed no obvious leaks.
- Optimized playback and capture data copying for efficiency.
- Reordered `tascam_card` structure for improved cache locality.
- Fixed `active_urbs` counter management to prevent "URBs still active" errors.