kvm/internal
Alex P ac568c7bbf Fix HDMI hotplug crash by releasing mutex during blocking ALSA I/O
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.
2025-11-21 16:50:35 +02:00
..
audio Fix HDMI hotplug crash by releasing mutex during blocking ALSA I/O 2025-11-21 16:50:35 +02:00
confparser feat: refactoring network stack (#878) 2025-10-15 18:32:58 +02:00
hidrpc feat: release keyPress automatically (#796) 2025-09-18 13:35:47 +02:00
logging feat: jetkvm native in cGo 2025-09-29 14:09:30 +02:00
mdns feat: refactoring network stack (#878) 2025-10-15 18:32:58 +02:00
native Merge branch 'dev' into feat/audio-support 2025-11-20 23:47:44 +02:00
network/types chore: make udhcpc the default DHCP client (#990) 2025-11-20 16:48:07 +01:00
ota refactor: OTA (#912) 2025-11-19 15:20:59 +01:00
supervisor feat: add failsafe reason for video max restart attempts reached (#991) 2025-11-20 17:32:54 +01:00
sync feat: refactoring network stack (#878) 2025-10-15 18:32:58 +02:00
timesync feat: refactoring network stack (#878) 2025-10-15 18:32:58 +02:00
tzdata Refactor audio subsystem for improved maintainability 2025-11-19 13:42:51 +02:00
usbgadget Simplify audio configuration and error handling 2025-11-21 00:54:32 +02:00
utils feat: move native to a separate process, again (#964) 2025-11-19 16:02:37 +01:00
websecure feat(websecure): add support for ed25519 certificates (#513) 2025-05-25 11:09:58 +02:00