I can get my audio to work (with caveats). I use AppleALC with layout 21, no CodecCommander
Here is the problem, though: rebooting to Windows always breaks audio. After booting back to macOS there is no audio output (can still change volume, plugging/unplugging audio jack is recognized). One way I currently know how to fix this is rebooting into Ubuntu, changing volume there and rebooting back into macOS. This works but means I need to boot into Ubuntu after every time I use Windows (???)
This behavior is the same in Mojave and Catalina. I've tried different values for ResetHDA in config.plist with no change. Upd: Tried CodecCommander+ SSDT-ALC294.aml, also no change.