Audio crashing

I finally got audio working on my latitude e6530 Hackintosh running Sonoma. Using a combination of ssdttime’s fix hpet and obviously apple alc. The problem is whenever I connect my AirPods, the whole thing freezes indefinitely. Which is a huge problem. It means I can either only use my AirPods or only use my built in speakers/mic. I want to be able to switch between them of course. Any way to fix this?

Author: @SP68YT