I have HDMI audio working on both of my systems: GA-P55M-UD4/GT240 and DFI-P55-T36/GT240. I used the tmongol method as noted above. Both of those motherboards use the ALC885 codec which is supported natively in the AppleHDA kext. Further, The GT220 is also native in that kext. I patched the AppleHDA kext for the GT240 Device ID as described. I use the same kext in both systems. The Device HDEF and Device PEGP sections are modified and Device GFX0 and Device HDAU are added in each DSDT as described. This approach has worked in 10.6.3 and 10.6.4. At this point, I have not had any success with any other codec, though tmongol got his ALC662 working with a GT240 successfully.
Regarding the ATI HD5XXX, I just received my new iMac with the 5750 card. Though I have not connected the iMac to my HDTV, I have looked at the IORegistryExplorer and it shows GFX and HDAU in the same relationships I see on the machines noted above. Perhaps, tmongol has more insight.