Jump to content

Patched AppleHDA.kext for codecs IDT 92HD81B1X5, 92HD91BXX, 92HD87B1/3, 92HD87B2/4, 92HD87XX etc.

10.8.x Native Audio

  • Please log in to reply
172 replies to this topic

#41
zoltankr

zoltankr

    zoliky

  • Members
  • PipPipPipPipPipPip
  • 427 posts
  • Gender:Male
Some info about the internal mic.

My original verbs:
ATAPI Unknown Mic at Int Top 17 0x11 0xd5a30130 01171c30 01171d01 01171ea3 01171fd5

Fixed verbs:
ATAPI Unknown Mic at Int Top 17 0x11 0xd5a30130 01171c30 01171d00 01171ea3 01171fd0

how it looks in ML:
Posted Image

verbit does a great job, but it's not perfect.

We need to replace 01171fd0 with 01171f90 to set mic as internal device.

Bits
Hex	 76 54 3210
-------------------
71cf01 = 00 00 0001 - Port has a jack - It is External - Rear Location
71cf02 = 00 00 0010 - Port has a jack - It is External - Front Panel Location
71cf59 = 01 01 1001 - No External Port - ATAPI
71cf18 = 00 01 1000 - Port has a jack - External - HDMI
71cf90 = 10 01 0000 - Built In Device - Internal - N/A
		 | | ||||
		 | | |--------- Location part 2
		 | |------------ Location part 1
		 |--------------- Port Connectivity

Take a look:
Posted Image

Let's add "Ambient Noise Reduction".

Change 01171ea3 to 01171ea0.
3 and 0 => connection type. The value should be 0 "unknown connection" type.

Open layout12.xml then remove:

Posted Image

and add Signal Processing.

Posted Image

take a look:
Posted Image

I attached my layout file. Copy and paste the "SignalProcessing" to your layout file with PlistEdit Pro.
Use Samantha's script to compress the xml.

Attached Files



#42
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,802 posts
  • Gender:Male
  • Location:a 100m dal Tevere, vicino a Peppe

I would like to share some information about the internal mic.

My original verbs:

ATAPI Unknown Mic at Int Top 17 0x11 0xd5a30130 01171c30 01171d01 01171ea3 01171fd5

Fixed verbs:
ATAPI Unknown Mic at Int Top 17 0x11 0xd5a30130 01171c30 01171d00 01171ea3 01171fd0

how it looks in ML:
Posted Image

verbit does a great job, but it's not perfect.

We need to replace 01171fd0 with 01171f90 to declare mic as internal device. After all, it is internal.

Bits
Hex	 76 54 3210
-------------------
71cf01 = 00 00 0001 - Port has a jack - It is External - Rear Location
71cf02 = 00 00 0010 - Port has a jack - It is External - Front Panel Location
71cf59 = 01 01 1001 - No External Port - ATAPI
71cf18 = 00 01 1000 - Port has a jack - External - HDMI
71cf90 = 10 01 0000 - Built In Device - Internal - N/A
		 | | ||||
		 | | |--------- Location part 2
		 | |------------ Location part 1
		 |--------------- Port Connectivity

Take a look:
Posted Image

Let's add "Ambient Noise Reduction".

Change 01171ea3 to 01171ea0.
3 and 0 => connection type. The value should be 0 "unknown connection" type.

Open layout12.xml then remove:

Posted Image

and add Signal Processing.

Posted Image

take a look:
Posted Image

I attached my layout file. Copy and paste the "SignalProcessing" to your layout file with PlistEdit Pro.
Use Samantha's script to compress the xml.

Unfortunately, it is clear that verbit can not do all the work, infact I added the link to the guidance of Master Chief for this purpose, but verbit can be useful for many people.
Tonight I will try as you said, I have no time to experiment at this time. 'll Let you know the outcome.

thanks

EDIT

This morning I saw another post, and it may have been deleted by mistake. if so, I apologize.
I think you speak for the volume slider, but frankly I do not know how to solve, because I do not have this problem

Micky

Edited by Alessandro17, 16 January 2013 - 07:27 PM.
Deleted post restored.


#43
zoltankr

zoltankr

    zoliky

  • Members
  • PipPipPipPipPipPip
  • 427 posts
  • Gender:Male

I think you speak for the volume slider, but frankly I do not know how to solve, because I do not have this problem
Micky

Thanks for your answer! I think it's a known issue on HP Probook.

#44
MacKing

MacKing

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Malta, Europe
Hi Guys,

I have a HP DV5-1130ea, which recently has been installed with the Mountain Lion 10.8 version.

This laptop has the IDT 92HD71B7X Codec. The codec id is: 111D 76B2.

I followed this guide to the word however I am not successful. Attached is all the files I dealt with including the codec verbs modified using verbit, the codec graph (in svg format), layout12.xml and Platforms.xml, pinconfig extracted from regedit in windows, my custom AppleHDA.kext along with my dsdt.dsl file which contains entries for HDEF and DPTG.

If someone can have a look and tell me what's wrong with it I really appreciate, as I really don't have other ideas what to do to at least have sound from the speaker, at the moment in system profiler there is no devices under audio.

Attached Files



#45
maddafacca

maddafacca

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts
hi,

i have 92HD87B1 on my laptop. and i've never attempted to patch applehda (originally installed)
so, just following this instruction , can i patch my 92HD87B1 ?

i have one more question,
i saw here a kext for my 92HD87B1 .
http://www.osx86.net...ion_ver_...html
but i couldn't manage to work it, i've even patched my dsdt but still no luck.

it gives me sound assertion errors during boot screen.

#46
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,802 posts
  • Gender:Male
  • Location:a 100m dal Tevere, vicino a Peppe
Hi All, this is a guide, and the aim is to try to apply it! A simple "does not work" does not give an indication of the possible problem to solve!

Micky

#47
MacKing

MacKing

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Malta, Europe

Hi All, this is a guide, and the aim is to try to apply it! A simple "does not work" does not give an indication of the possible problem to solve!

Micky


Hi Micky, while I really appreciate the very clear guide you posted, believe me I have put a great effort to make my codec work. I have wasted a whole week, since I didnt get any further from no sound completely. All i ask is for someone to give me a hint how to patch the applehda binary at least, since my idt codec is not supported by the bcc9 perl script. I did compare a lot of differen kexts built for idt codecs with my applehda kext and mine seems up to standard so I really have no idea what could be wrong, why at least there is no audio devices registered in system profiler.

#48
zoltankr

zoltankr

    zoliky

  • Members
  • PipPipPipPipPipPip
  • 427 posts
  • Gender:Male
I added 92HD87B2 manually:

{ name => 'IDT 76d9', #aka 92HD87B2 (my codec)
target_id => 0x111d76d9,
patch_id => 0x11d41984 #ADI 1984
},

If you're not sure about "patch_id" do some trial and error.

#49
MacKing

MacKing

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Malta, Europe

My codec (92HD87B2) wasn't supported as well, but I opened patch-hda-codecs.pl and saw this:

{ name => 'IDT 76d1', #aka 92HD87B1
target_id => 0x111d76d1,
patch_id => 0x11d41984 #ADI 1984
},

then added it myself:

{ name => 'IDT 76d9', #aka 92HD87B2 (my codec)
target_id => 0x111d76d9,
patch_id => 0x11d41984 #ADI 1984
},

As you can see it wasn't that hard.
If you're not sure about "patch_id" do some trial and error.


To be completely honest, I did that already. Since I tried to read the perl script already. After running the script and examining the applehda binary I noticed that "b2 76 1d 11" (since my codec in hex is 111d76b2), was replaced twice in the binary file. However the applehda kext is still not loading (running kextstat after mountain lion boots up does not show applehda), do you think its a problem of the dsdt?

Originally my dsdt had no definition for HDEF and DPTG, so I added them.

#50
zoltankr

zoltankr

    zoliky

  • Members
  • PipPipPipPipPipPip
  • 427 posts
  • Gender:Male
After binary patching you should see "sound assertion errors" at boot.
You need to get rid of these errors, but at least you know the DSDT is communicating with AppleHDA.

This code looks for layout12.xml

Buffer (0x04)
{
     0x0C, 0x00, 0x00, 0x00
},

You need to patch that file.

#51
MacKing

MacKing

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Malta, Europe

After binary patching you should see "sound assertion errors" at boot.
You need to get rid of these errors, but at least you know the DSDT is communicating with AppleHDA.


Thats the problem, I am not seeing any sound assertion errors. These errors are shown in verbose boot right?
The only applehda stuff I saw during booting was applehdacontroller failed to load in the console utility under system.log.

Do you want to check my dsdt file?

#52
zoltankr

zoltankr

    zoliky

  • Members
  • PipPipPipPipPipPip
  • 427 posts
  • Gender:Male

These errors are shown in verbose boot right?


Yes.

Attach your DSDT file.

#53
MacKing

MacKing

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Malta, Europe

Attach your DSDT file.


Here you go.

Attached Files



#54
zoltankr

zoltankr

    zoliky

  • Members
  • PipPipPipPipPipPip
  • 427 posts
  • Gender:Male

dsdt.dsl 8233: Method (_GTM, 0, NotSerialized)
Warning 1106 - ^ Reserved method must return a value (Buffer required for _GTM)

I'm using the latest iasl 20121220-64, compiled with acpicatools.
Try this:


Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x04)
{
"layout-id",
Buffer (0x04)
{
0x0C, 0x00, 0x00, 0x00
},

"PinConfigurations",
Buffer (Zero) {}

}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}

Add DTGP after this:


Name (_S5, Package (0x04) // _S5_: S5 System State
{
0x07,
0x07,
Zero,
Zero
})

DTGP code here


#55
MacKing

MacKing

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Malta, Europe

I'm unable to compile your DSDT.


dsdt.dsl 8233: Method (_GTM, 0, NotSerialized)
Warning 1106 - ^ Reserved method must return a value (Buffer required for _GTM)

I'm using the latest iasl 20121220-64, compiled with acpicatools. Sorry I don't have enough time to figure out your error.


Thanks for your code. With regards to compiling, from DSDTse application it gives just warning and remarks, about _HOT, _GTM and much more, but it still compiles successfully, I don't whether these remarks and warning are affecting the HDEF section :worried_anim:

Can you confirm the edits in the attached dsdt?
I have amended the code you sent me however. In case the dsdt still does not load the AppleHDA kext, can I use an alternative way to load the kext?

Attached Files



#56
MacKing

MacKing

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Malta, Europe

I got two errors. I think we're using different iasl versions.
Your edits looks good.

[/size][/font][/color]
As far as I know, no.


Ok thanks dude, I don't know where those errors actually came from, as those method definitions, like _GTM are the default code from HP, just extracted using DSDTse app.
I actually need to go to my girlfriend now, (since the laptop with the hackintosh is hers) to check the new dsdt edits, and reinstall the applehda kext. One last question for now :)

The HDA assertion errors, do you have any idea, at what part of the booting they will show, and how do they look like, so that I will have an idea?

#57
MacKing

MacKing

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Malta, Europe

I got two errors. BTW, your edits looks good.

[/size][/font][/color]
As far as I know, no.


Hey, I have rebooted using the new dsdt however, still no assertion errors at least.
However attached are the errors for AppleHDAController, that I have been seeing when booting into Mountain Lion.

Is there a way to be sure that at least DSDT.aml is loading? Do I need to make any alterations in the smbios.plist? I have also attached the smbios file.

Attached Files



#58
zoltankr

zoltankr

    zoliky

  • Members
  • PipPipPipPipPipPip
  • 427 posts
  • Gender:Male
LOL. Now, I have the same issue :)
works with "-f" flag. I rebuilt kernel cache. Same issue.

#59
MacKing

MacKing

    InsanelyMac Protégé

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Location:Malta, Europe

LOL. Now I have problems starting AppleHDA :)
It works with "-f" boot flag, but it doesn't load without that flag. I rebuilt kernel cache with kext helper. Same problem.


Try UseKernelCache=No maybe it helps.

By the way I have got some update. I managed to get sound assertion error by installing HDAEnabler and deleting the dsdt.aml. I am starting to think that my dsdt has a problem. What could it be?

#60
zoltankr

zoltankr

    zoliky

  • Members
  • PipPipPipPipPipPip
  • 427 posts
  • Gender:Male
Thanks. I tried everything, doesn't work.
I need to use -f flag to have audio





1 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users


© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy