Help - Search - Members - Calendar
Full Version: Fully working HP Pavillon DV5-1157ca IDT audio kext
InsanelyMac Forum > OSx86 Project > Hardware and Drivers > Sound
Pages: 1, 2
Laqk
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 !
SamsonT
Hey, I am also using a IDT High Definition Audio, which might have a different codec(SigmaTel 92HD206X). I followed the guide from The King and patched the 10.5.6 vanilla AppleHDA.kext, unfortunately, no result. But when I tried to use your kext, at least it show something correct inside System Profiler though still no sound. Maybe only little adjustment would make that happen. Currently, I already got Linux dump and Pin config on hand, could you tell me the exact way to patch AppleHDA.kext? By the way, must I use Audio ID 1, after using your HDAEnabler, my working USB bluetooth headset not working any more, maybe it's also using Audio ID 1.
Laqk
You can change the audo id (layout id) if you like, but you must change it in all the Info.plist files of HDAEnabler.kext, AppleHDAController.kext and AppleHDAPlatformDriver.kext.

I Don't know about your bluetooth headset, does it use the AppleHDA.kext driver ? If so, it won't work with my version since I removed everything except support for the IDT codec.

As for your codec, I doubt that a "little adjustment" would make it work. Working with it for the past few days, I realized that the devil is in the PathMaps in AppleHDAPlatformDriver. You basically have to have your pin configuration graph handy and create your node list for each pin complex you want to use, one by one. I had to study the path maps for the already existing codecs for a while before I started to "get it". It's relatively simple once you understand, but it's not simple to explain.

Right now I'm trying to include support for the HDMI sound output. I know it can be done cause I can see it implemented in some of the pre-existing codecs in the vanilla AppleHDA.kext, but so far I've been unable to duplicate this in my codec.

I might post soon a "cleaner" version of my driver. Hope to get rid of at least some of the sound assertion errors.

I would really welcome some feedback from other people with harware indentical or similar to mine.
Laqk
Here's a new, cleaner version of the IDT 92HD71B7X audio codec driver for the HP Pavillon DV5-1157ca. Input volumes are now more appropriate on both the internal mic and external mic input, and the input volume control is now available on the latter.

Click to view attachment

Despite having a working driver, I hesitated to post this because to be honest, there are still so many things I don't understand that I find this very frustrating. For example, despite all my efforts, I've been unable to activate input volume control on the internal mic, even though this control relies on a selector widget that is functionaly identical to the one driving the external mic jack. In both nodes, I configure the "Amp" section identically, and yet input volume works for the external jack and not for the internal mic. Even switching the two selector widgets doesn't change anything.

Furthermore, I can't for the life of me seem to figure out the "MuteGPIO" value that appears in the layout section, and it seems that I am not alone in this. There is almost no information on this value anywhere, and everybody seems to have found a value that works simply by trial and error, as I did. Very frustrating.

And to top it off, there are still these annoying "sound assertion" errors. I now begin to understand more what some of them mean, but I still can't figure out why they happen.

Despite the driver working, there are still some problems with it and I'd welcome feedback on this, to figure out if these problems happen only on my rig or with everybody:

- About one in five times, at boot time, a "SetupHostInterrupt() failed" sound assertion error appears, and the HDA driver doesn't load. Only rebooting can solve the problem;
- Random freezes or kernel panics at boot time that only seem to happen when the AppleHDA.kext driver is loading (I have to use voodoo kernel with 10.5.5 System.kext and seatbelt.kext because the CPU in the dv5-1157ca is 45nm);
- About 30 seconds after using the sound system to play a sound, the codec seems to turn itself off (probably for power management reasons). However, this results in a large "click" sound on the external headphone line. More annoying than anything, but still, this happens neither on windows nor linux.

So enjoy this, but please I need feedback to improve the driver. In particular I need someone to test the SPDIF output. Also, if any of you have seen one of the above problems discussed somewhere else, I'd appreciate if you let me know. I've done so many searches and sifted through so much unrelated information these past few weeks that my head is spinning.
Silverstone
Great work! Thanks! smile.gif
yuanshijie
I want to ask a question about shutdown issue !

I already modified the workable (except shutdown) AppleHDA.kext and HDAEnabler .

What cause the shutdown issue , and how to fix it ?
moi osx
On Hp Pavilion dv5-1110es works perfect without bad behaviour.So thanks!!!
pateras
hi,would this work on a compaq mini/hp 1000?
it has an IDT HD sound card.
thanx
Laqk
@Silverstonne:

You're welcome. smile.gif

@yuanshijie:

TBH I don't know, but I suspect it has something to do with the fact that the driver you're talking about was made from an earlier version of the AppleHDA kext, probably even the one from Tiger. Had it not been for the shutdown issue I would have used it myself. My driver is made from the 10.5.6 kext, and I suspect that's why shutdown works properly on a Leopard system.

@moi osx:

Glad it works without problems for you. So now I have to figure out what's wrong with my rig. blink.gif

@pateras:

Only if it has the same devid as mine (0x111D776B2).
yeehaa
QUOTE (Laqk @ Feb 20 2009, 08:15 PM) *
@Silverstonne:

You're welcome. smile.gif

@yuanshijie:

TBH I don't know, but I suspect it has something to do with the fact that the driver you're talking about was made from an earlier version of the AppleHDA kext, probably even the one from Tiger. Had it not been for the shutdown issue I would have used it myself. My driver is made from the 10.5.6 kext, and I suspect that's why shutdown works properly on a Leopard system.

@moi osx:

Glad it works without problems for you. So now I have to figure out what's wrong with my rig. blink.gif

@pateras:

Only if it has the same devid as mine (0x111D776B2).


@LaqK: thank a lot. your kext works perfect on my hp dv4t-1200. and no input control on internal mic. everything else works ok. finally the shutdown issue is fixed. the audio assertion error is still there and occassional hang at boot, no kp tho'. do you have nvdarwin for your graphics?

@moi osx: what graphics solution are you using? nvdarwin?
NERD1983
... HEY MAN THIS WORKS !!! ... I GOT AN HP PAVILLION DV5-1000US ... I WAS USING ANOTHER PATCH THAT WOULD WORK FOR AUDIO AND TWO JACKS OUT, BUT THE MIC WOULDNT WORK ... WITH YOUR PATCH IT WORKS NICELY ...
... QUESTION: WHEN I PLUG A MIC INTO THE JACK, THE INTERNAL MIC DOESNT SWITCH TO JACK ONLY, SO IT WOULD HAVE THE INTERNAL MIC AND EXTERNAL MIC JACK WORKING AT THE SAME TIME ??? ... AM I DOING SOMETHING WRONG OR WHATS UP ??? .... I KINDA NEED THE INTERNAL MIC OFF WHEN IM USING THE EXTERNAL MIC JACK ... HELP PLEASE ???? ...
ANYWAYS THANKS A LOT BRO ...
... OH BTW WHEN I WAS USING THE OLDER PATCH, I HAD PROBLEMS SHUTTING DOWN MY LAPTOP ... I WAS GETTING A MESSAGE SAYING TO HOLD DOWN THE POWER BUTTON ... IM NOT CERTAIN THAT THE OLDER PATCH WAS THE PROBLEM ... ANYWAYS WHEN I INSTALLED YOUR PATCH, MY LAPTOP SHUTS OFF PERFECTLY, I GET THE INTERNAL AND EXTERNAL JACK MIC WORKIN', INTERNAL SPEAKERS WORK, AND TWO JACKS OUT FOR HEADPHONES WORK TOO ....
... THANKS A LOT ....

... MY WEBCAM WAS WORKING WHEN I WAS RUNNING IATKOS 2i (10.5.2) ... THEN I UPDATED TO 10.5.6 AND DOESNT WORK ANYMORE ... ANYBODY CAN HELP ME ??? ...
taylorsyn
I have only one problem and that is when I plug in headphones the audio is incredibly quiet and almost not even audible. Any idea on how I could fix this?


Also here is the codec graph for the IDT codec: http://linuxlaptopwiki.net/mediawiki/image...T_92HD71B7X.svg

Thanks,
Taylor
lёfechka
I am so sorry for bad English. At an output from a sleep mode the sound is not started. How to troubleshoot?
yeehaa
QUOTE (lefechka @ Mar 18 2009, 05:16 PM) *
I am so sorry for bad English. At an output from a sleep mode the sound is not started. How to troubleshoot?


are you sure you are using this applehda with just the hdaenabler and nothing else?
lёfechka
Yes. The first variant works only, the second is not got at all.
Laqk
@nerd1983:

Yes, both internal and external mic are active at the same time, this is by design. Can't you select which mic to use in your software ? Anyway, that's how it works under windows, you select which mic to use in control panel. And yes, the shutdown problem was due to the old sound driver, I think because it was made from a tiger kext. Mine is made from the leopard 10.5.6 kext.

@taylorsin:

No idea whatsoever. My headphones work perfectly, and judging by your coded graph, your coded layout is exactly the same as mine. Sorry.

@lefechka:

Sleep doesn't work on my rig, so I'm unable to test whether the sound comes back after wakeup. This seems to be a common problem though, it's mentionned in many other threads relating to sound. Maybe you could check those, someone may have found a solution. I could try to work on it, but it wouldn't be very practical since I cannot test it. So these days I'm concentrating more on trying to fix the sleep issue I'm having.




@yeeha:

I'm using an EFI string. Check this thread:

http://www.insanelymac.com/forum/index.php?showtopic=131400
yeehaa
QUOTE (Laqk @ Mar 19 2009, 05:07 PM) *
@yeeha:

I'm using an EFI string. Check this thread:

http://www.insanelymac.com/forum/index.php?showtopic=131400

thnks for the link. but no. I had tried almost all the solutions there, but i do not get QE/CI. the funny thing is, my 9200m graphics card is working perfect with nvdarwin. tried the efi string solution to get rid of the injector, but i guess, i will have to live with it! smile.gif

back to the topic, did you find any solution for the sound assertion errors?

on my comp, i do not have any problem with sound when i come back from sleep. works perfect..almost..
there are some pops in the headphone mode. looks random.. but happens almost every minute. and the pops are there only when no app is using the sound. if i am running itunes or something, no pops from the headfone.
lёfechka
QUOTE
Laqk
I welcome. We will search. Can look my variant of a sound if there will be a desire and possibility. It one gets a sound. It can turn out to make upgrade. Can take something useful to itself?
My sleep-mode

QUOTE
yeeha:

my NVIDIAGeForce 9600M GT All works strings
The description, but in Russian

PS.Has edited a little kext from the second variant and he has earned. After a dream silence.
taylorsyn
Hey Laqk,

Perhaps we can iron this out as to why I get no headphone output. I have attached my linux codec dump perhaps you can take a look at it and give me some advice or work your magic with my dump? smile.gif

Many thanks for your efforts my friend!

Yours,
Taylor

Click to view attachment
kidamnesiac
tried the driver on a hp dv5 1170 el, and it killed my webcam..
{now it has magically reappeared... unsure.gif }
any ideas?

hope you'll solve the hdmi quest...
that REALLY matters...

kidA.
lёfechka
Hi guys!

Who could force to work AppleHDA.kext from10.5.7?
kidamnesiac
bump this one too for a 10.5.7 version smile.gif
destructordt
Will this work with the HP Pavilion dv6500?
Oxtie
hmmm... I got dv6xxx and they have Conexant HD Audio + HD Modem builtin. VooDoo HDA solved got my SPDIF+extMic + headphone + speakers running...

Only thing missing is "internal mic (2 of them)"
lёfechka
Hi guys!

New sound for AppleHDA ver 1.7.1a2

goila
QUOTE (lefechka @ Aug 25 2009, 02:22 PM) *


Hi,

for snow leopard, please!
lёfechka
QUOTE (goila @ Sep 4 2009, 02:57 AM) *
Hi,

for snow leopard, please!


If you run Snow Leopard in 32 bit mode, it works kekst from 10.5.8
Or, carefully transfer all the data in kext of Snow Leopard
Work will most likely only in 32 bit mode
While all possible

But, there is in fact the decision of Voodoo for x64
rich89
QUOTE (lefechka @ Sep 5 2009, 07:51 PM) *
But, there is in fact the decision of Voodoo for x64


this don't work on my sl 64 bit
goila
QUOTE (rich89 @ Sep 7 2009, 04:58 PM) *
this don't work on my sl 64 bit


this is perfect:

http://www.projectosx.com/forum/index.php?...&#entry2092
lёfechka
QUOTE (rich89 @ Sep 7 2009, 07:58 PM) *
this don't work on my sl 64 bit

AppleHDA.kext delete?
lukamar
Tnx laqk you are great!!!
With this helpfull kext i've made a legacy kext for idt working in snowleopard!!
Now i'm testing it...
goila
QUOTE (lukamar @ Sep 17 2009, 05:48 PM) *
Tnx laqk you are great!!!
With this helpfull kext i've made a legacy kext for idt working in snowleopard!!
Now i'm testing it...


Good? Could you sharing?
yo2
Hi i got a hp dv1216ss laptop and i cant get the sound work .... i guess is idc sound.



and the ati hd4530 is compatible with osx?



regards

lёfechka
QUOTE (lukamar @ Sep 17 2009, 08:48 PM) *
Tnx laqk you are great!!!
With this helpfull kext i've made a legacy kext for idt working in snowleopard!!
Now i'm testing it...


Share, we test together. We grind 
lёfechka
lukamar

We wait




lukamar
LegacyAppleHDA

This is not definitive, i'm still working..

LayoutID 12 must be in HDAEnabler or DSDT.
firepower12
i have hp dv5t - 1000
how to make this work please help sad.gif
plusa
thank you!!!!!!!!!\
really working dv4-1280
up and down volume and mute
also the mute

tongue.gif tongue.gif
rachaf
QUOTE (lukamar @ Sep 24 2009, 07:19 PM) *
LegacyAppleHDA

This is not definitive, i'm still working..

LayoutID 12 must be in HDAEnabler or DSDT.


HOW TO INSTALL THIS WITH DSDT PLEASE
I HAVE INJECTED HDEF AND GTDP IN MY DSDT
I DONT UNDERSTAND WHERE TO INSERT "LayoutID 12"

PLEASE SHOW US WHAT TO DO

THNAKS IN ADVANCE

SORRY FOR MY ENGLISH
lёfechka
Sound for SnowLeo x64 (thanks lukamar)
Delete VoodooHDA, repair permissions
Copy kexts in /System/Library/Extensions, repair permissions and reboot





rachaf
QUOTE (lefechka @ Sep 29 2009, 01:44 PM) *
Sound for SnowLeo x64 (thanks lukamar)
Delete VoodooHDA, repair permissions
Copy kexts in /System/Library/Extensions, repair permissions and reboot


somethimes i have kenel panic with this "legacyapplehda.kext"
and i have pops in my sound
(i tried both injection -dsdt- and -HDAEnabler- ---> same thing)

i tried onother patched "applehda.kext" found her:
http://www.infinitemac.com/f57/solved-need.../post32817.html
but always same thing.

another question biggrin.gif : like you i have dv5, how can i wake up from sleep?

thanks in advance

and sorry for my english.
lёfechka
QUOTE (goila @ Sep 8 2009, 03:03 AM) *

If there is a good result on the mentioned manual
Share please
Together we can make a good sound

QUOTE (rachaf @ Sep 30 2009, 12:22 AM) *
i tried onother patched "applehda.kext" found her:
http://www.infinitemac.com/f57/solved-need.../post32817.html
but always same thing.


Variant that you have found too works
But after a dream silence
rachaf
QUOTE (lefechka @ Sep 30 2009, 06:29 PM) *
Variant that you have found too works
But after a dream silence


what do you do to get wake from dream work? please share sad.gif
sorry for my english.
lёfechka
QUOTE (rachaf @ Sep 30 2009, 11:19 PM) *
what do you do to get wake from dream work? please share sad.gif
sorry for my english.

In search
yeehaa
QUOTE (lukamar @ Sep 24 2009, 03:19 PM) *
LegacyAppleHDA

This is not definitive, i'm still working..

LayoutID 12 must be in HDAEnabler or DSDT.


QUOTE (lefechka @ Sep 29 2009, 09:44 AM) *
Sound for SnowLeo x64 (thanks lukamar)
Delete VoodooHDA, repair permissions
Copy kexts in /System/Library/Extensions, repair permissions and reboot


thanks a lot guys! finally sound in snow without any voodoo smile.gif

guys any tutorial for this? i know about the King's incomplete tutorial. but the HDAEnabler attached and also the codec verbs in the legacy plist threw me off completely! thanks in advance
goila
hahaha biggrin.gif biggrin.gif . voodoohda gives the best, purest sound quality. 192khz/24bit
lёfechka
Guys if at whom to turn out to correct DSDT about
QUOTE
LayoutID 12 must be in DSDT

I ask to share
rachaf
lefechka you can help slice to creat a perfect voodooHDA for our IDT HP sound here (russian language).
http://www.projectosx.com/forum/index.php?...=483&st=160
Guitar King
QUOTE (plusa @ Sep 26 2009, 07:52 AM) *
thank you!!!!!!!!!\
really working dv4-1280
up and down volume and mute
also the mute

tongue.gif tongue.gif


What did you do exactly ??? biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.