audio: USB DAC not connecting

Hello, Trying to use an USB Audio DAC, Questyle M12i (ES9281AC-based) it does not want to connect. I was able to use it on other devices just fine.

OnePlus 7Pro guacamole GM1911 crDroid 10.4 build AP1A.240405.002.A1

The DAC's gain led lights up but the data leds stay dark. I can hear periodic faint clicking on the connected earphones for 5 seconds, then silence. Android does not recognize a new audio device. If audio was played back prior to this it keeps being played back on the speaker of the phone.

I think it might have something to do with:

apm::HwModule: createDevice: could not find HW module for device type AUDIO_DEVICE_OUT_USB_HEADSET

I tried editing 'usbv2_audio_policy_configuration.xml', somehow the module is named usbv2 which I've seen nowhere else.

As a last ditch effort I copied the lineage config files to '/vendor/etc'.

After the reboot, the DAC was detected immediately.

First, I copied the files to Documents/Lineage, then:

adb shell
su
mount -o rw,remount /vendor
cp /storage/emulated/0/Documents/Lineage/* /vendor/etc/ 
mount -o ro,remount /vendor

I've noticed the lineage files do not move all the USB audio stuff into a separate file (and module). Maybe that is it?

Why the crDroid files worked in testing previously might be due to differences between how UAC1.0 and UAC2.0 audio devices are handled, afaik M12i is a UAC2.0 device without backward compatibility.

I've used logfox to create two logs: DAC_rejected.log and DAC_connected.log.

Edited by Edmund Raile