mirror of https://github.com/jetkvm/kvm.git
Extract shared error recovery logic: - Create handle_alsa_error() for EPIPE, EAGAIN, ESTRPIPE, EIO errors - Consolidates ~180 lines of duplicate error handling code - Used by both capture and playback paths Extract shared close logic: - Create close_audio_stream() for safe shutdown sequence - Handles CAS synchronization, delay, mutex protection - Used by both jetkvm_audio_capture_close and jetkvm_audio_playback_close Remove all TRACE_LOG dead code: - TRACE_LOG was compiled to ((void)0) with zero runtime value - Eliminates ~30 statements cluttering the codebase Result: 87 lines removed (9% reduction), improved maintainability |
||
|---|---|---|
| .. | ||
| audio | ||
| confparser | ||
| hidrpc | ||
| logging | ||
| mdns | ||
| native | ||
| network/types | ||
| sync | ||
| timesync | ||
| tzdata | ||
| usbgadget | ||
| utils | ||
| websecure | ||