Here is the AppleHDA driver I've been working on for the past few weeks. My laptop is an HP Pavillon DV5-1157ca with IDT High Definition Audio. It has three inputs: Internal mic, external mic jack, and another mic input through the HP expansion port; and three outputs: Internal speaker, external HP jack, and S/P-DIF output through the HP expansion port. All inputs and outputs, except the ones available through the expansion port, have been tested and work. The two mic inputs are independant, while the external HP output autodetects the presence of an inserted jack and switches output to this port, disabling internal speakers. Volume and mute touch controls above the keyboard are also working.
Click to view attachment
The driver was constructed from a Leopard 10.5.6 AppleHDA.kext vanilla kext. No hex edit was necessary. The only files modified were the Info.plist's from AppleHDAController.kext and AppleHDAPlatformDriver.kext plugins. Despite "sound assertion" error messages in the system log at boot time, the driver seems stable, all inputs and outputs are working, and shutdown works, although there is an occasional 30 seconds delay between the screen shutdown and the actual turning off of the computer.
A big thanks to Age_sabres18 and AREOS for inspiring me for doing this, as well as Taruga, MadTux, The KiNG, Master Chief, DiaboliK and all the others (sorry if I forgot anyone) involved in the AppleHDA project.
This is designed for a DV5-1157ca, but all HP Pavillon laptops of the DV5 series using an Intel High Definition Audio controller with an IDT codec with similar input/output configuration should be able to use it as well. This is a work in progress so feel free to test extensively and report your findings here. For example, someone much more knowledgeable than I am could steer me in the right direction for getting rid of these sound assertion errors.
IMPORTANT: You MUST use the HDAEnabler.kext provided in this package. Any other HDAEnabler won't work. Mine uses "1" as the layoutID, and I've modified the PinConfiguration parameter in Info.plist so that all inputs and outputs are properly listed in System Information.
To do:
Get rid of the "sound assertion" error messages;
Test the input/output available through the HP expansion port;
There is also a second High Definition audio codec in the HP Pavillon DV5-1157ca for HDMI output, associated with the NVIDIA GeForce 9600M GT. I might work on that next.
Enjoy !


