After many days of frustration, finally I got this AppleHDA.kext working on my alc888s in Mavericks, Mountain Lion and Lion. The original kext has a HDAEnabler.kext inside AppleHDA plugin,which induced kernel panic unless using -v -f to boot. However after removing this plugin and inject layout-id as "0x0c, 0x00, 0x00, 0x00" into dsdt/HDEF, this AppleHDA.kext works on all my systems.
You can use the kext with HDAEnabler or use dsdt.aml with inject layout-id (recommended).
Thanks to whom made this kext.
Edit：credit to Niresh12495