kvm/internal/audio
Alex P 2040db6094 Fix USB Audio Gadget sample rate constraints
USB Audio Gadget (hw:1,0) hardware only supports 48kHz for both capture
and playback due to configfs p_srate/c_srate being hardcoded. This commit
ensures both audio paths respect this hardware limitation:

- Output path: Force 48kHz when using hw:1,0, allow configurable rates for HDMI
- Input path: Always use 48kHz regardless of UI configuration
- Calculate frame size dynamically based on actual sample rate used

Also removes redundant comments that don't add debugging or maintainability value.
2025-11-21 01:56:56 +02:00
..
c Fix comment inaccuracies and restore lint targets 2025-11-21 01:31:33 +02:00
cgo_source.go Fix USB Audio Gadget sample rate constraints 2025-11-21 01:56:56 +02:00
cgo_source_stub.go Simplify audio management 2025-11-17 22:21:47 -06:00
relay.go Simplify audio configuration and error handling 2025-11-21 00:54:32 +02:00
source.go Fix critical audio race conditions and align configuration defaults 2025-11-18 16:37:44 +02:00