Good news. I committed an updated version of my AppleHDA patching script. Which is now available from my Github repository. Go get it and give it a try.
Please be so kind to let me know if it is working for you.
Thank you.
p.s. Yeah yeah yea. The resource files (XML) are now compressed – another step forward to speed up the boot process – with zlib. Whatever. Have a look here: http://opensource.apple.com/source/xnu/xnu-1699.24.8/libkern/zlib/ and http://en.wikipedia.org/wiki/Zlib
FYI; These functions:
AppleHDADriver::layoutLoadHandler(void const*,uint)
AppleHDADriver::platformLoadHandler(void const*,uint)
Update I have a Perl script to inflate and deflate the resource files, which I will add to my dropbox account a.s.a.p. And done!
Download zlib.pl.zip and let me know what you think. Have fun with it 
Usage You can inflate (decompress) a file with: (解压)
perl zlib.pl inflate layout99.xml.zlib > layout99.xml
And you can deflate (compress) a file with: (压缩)
perl zlib.pl deflate layout99.xml > layout99.xml.zlib