mirror of https://github.com/jetkvm/kvm.git
When HDMI is unplugged during active audio capture, the blocking snd_pcm_readi() call was holding the mutex, preventing clean shutdown. This caused snd_pcm_drop() to race with the blocking read, leading to undefined behavior and crashes. Solution mirrors PiKVM's approach: - Release mutex before snd_pcm_readi()/snd_pcm_writei() - Reacquire mutex after I/O completes - Verify handle and stop flag before proceeding This allows snd_pcm_drop() to immediately abort pending I/O when the device is closed, ensuring clean shutdown during HDMI hotplug events. |
||
|---|---|---|
| .. | ||
| audio | ||
| confparser | ||
| hidrpc | ||
| logging | ||
| mdns | ||
| native | ||
| network/types | ||
| ota | ||
| supervisor | ||
| sync | ||
| timesync | ||
| tzdata | ||
| usbgadget | ||
| utils | ||
| websecure | ||