mirror of https://github.com/jetkvm/kvm.git
Query the ALSA channel map (snd_pcm_get_chmap) to detect hardware that reports non-standard channel ordering (R,L instead of L,R). When detected, swap channels after capture to ensure correct left/right positioning. This properly handles hardware quirks (like TC358743 HDMI audio) without hardcoding device names, making the solution portable and correct. |
||
|---|---|---|
| .. | ||
| audio.c | ||
| audio_common.c | ||
| audio_common.h | ||