TRX40 Onboard Audio Passthrough

Hello—I have an TRX40 AORUS XTREME and am confused about the onboard audio. It seems like the Realtek Audio decoders are present in the system as USB devices?

/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb7  /dev/bus/usb/007/001
    |__ Port 4: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 05e3:0608 Genesys Logic, Inc. Hub
        /sys/bus/usb/devices/7-4  /dev/bus/usb/007/002
    |__ Port 5: Dev 3, If 3, Class=Audio, Driver=snd-usb-audio, 480M
        ID 0414:a001 Giga-Byte Technology Co., Ltd
        /sys/bus/usb/devices/7-5  /dev/bus/usb/007/003
    |__ Port 5: Dev 3, If 1, Class=Audio, Driver=snd-usb-audio, 480M
        ID 0414:a001 Giga-Byte Technology Co., Ltd
        /sys/bus/usb/devices/7-5  /dev/bus/usb/007/003
    |__ Port 5: Dev 3, If 6, Class=Human Interface Device, Driver=usbhid, 480M
        ID 0414:a001 Giga-Byte Technology Co., Ltd
        /sys/bus/usb/devices/7-5  /dev/bus/usb/007/003
    |__ Port 5: Dev 3, If 4, Class=Audio, Driver=snd-usb-audio, 480M
        ID 0414:a001 Giga-Byte Technology Co., Ltd
        /sys/bus/usb/devices/7-5  /dev/bus/usb/007/003
    |__ Port 5: Dev 3, If 2, Class=Audio, Driver=snd-usb-audio, 480M
        ID 0414:a001 Giga-Byte Technology Co., Ltd
        /sys/bus/usb/devices/7-5  /dev/bus/usb/007/003
    |__ Port 5: Dev 3, If 0, Class=Audio, Driver=snd-usb-audio, 480M
        ID 0414:a001 Giga-Byte Technology Co., Ltd
        /sys/bus/usb/devices/7-5  /dev/bus/usb/007/003
    |__ Port 5: Dev 3, If 5, Class=Audio, Driver=snd-usb-audio, 480M
        ID 0414:a001 Giga-Byte Technology Co., Ltd
        /sys/bus/usb/devices/7-5  /dev/bus/usb/007/003
    |__ Port 6: Dev 4, If 1, Class=Audio, Driver=snd-usb-audio, 480M
        ID 0414:a000 Giga-Byte Technology Co., Ltd
        /sys/bus/usb/devices/7-6  /dev/bus/usb/007/004
    |__ Port 6: Dev 4, If 2, Class=Human Interface Device, Driver=usbhid, 480M
        ID 0414:a000 Giga-Byte Technology Co., Ltd
        /sys/bus/usb/devices/7-6  /dev/bus/usb/007/004
    |__ Port 6: Dev 4, If 0, Class=Audio, Driver=snd-usb-audio, 480M
        ID 0414:a000 Giga-Byte Technology Co., Ltd
        /sys/bus/usb/devices/7-6  /dev/bus/usb/007/004

But when I pass through these devices to a Windows 10 host they appear and are recognized but the only output that appears in Device Manager is the SPDIF out. What’s going on here? How does the onboard audio work on TRX40 and what are my options for outputting audio from the guest?

If you are running qemu 4.2 you can use sound passthrough to the host. Arch wiki on vfio shows how to do that quiet nicely.

Edit: here is the link

https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#QEMU_4.0/4.2+_audio_changes

Could someone please point in in the right direction getting onboard audio to work in a windows VM.

Host = latest proxmox, linux kernel 5.11.

VM starts with PCI devices passed through but nothing shows up in VM

never mind, found the option to passthrough the usb audio devices in the proxmox gui. i removed the pci passedthrough devices exposing those usb audio options and it’s working like a charm now