Jump to content

[Closed] AppleHDA patching requests


plsh2me

Recommended Posts

Hi, EMlyDinEsH:

    I am trying my best to modify the Original AppleHDA.kext to drive the IDT 92HD90BXX(111d76e7) from Dell Latitude E6320, and below is some output from me, unfortunately, I still couldn't make it happen, so maybe I need your guys help~~~

 

Part 1. Codec ConfigData from Codec_Dump.txt, and modify info.plist file in AppleHDA.kext\Plugin (Codec_Dump.txt pls refer to attached file)

[attachment=129425:codec_dump.txt]
Codec: IDT 92HD90BXX
Address: 0
Vendor Id: 0x111d76e7
Normal Hex: 11 1d 76 e7
Decimal: 287143655
Hex Byte Flipped: e7 76 1d 11

 

codec_dump.txt

a. Original Codec ConfigData
00A71C20 00A71D10 00A71EA1 00A71F03
00B71C1f 00B71D10 00B71E21 00B71F03
00C71CF0 00C71D00 00C71E00 00C71F40
00D71C10 00D71D01 00D71E17 00D71F90
00E71C50 00E71D10 00E71E01 00E71F23
00F71C2e 00F71D10 00F71EA1 00F71F23
01071CF3 01071D00 01071E00 01071F40
01171CF2 01171D00 01171E00 01171F40
01F71CF0 01F71D00 01F71E00 01F71F40
02071CF0 02071D00 02071E00 02071F40
b. Verb Data which Corrected by me
00A71C20 00A71D10 00A71EA1 00A71F03
00B71C10 00B71D10 00B71E21 00B71F03
00C71CF0 00C71D00 00C71E00 00C71F40
00D71C10 00D71D01 00D71E17 00D71F90
00E71C50 00E71D10 00E71E01 00E71F23
00F71C20 00F71D11 00F71EA0 00F71F20
01071CF3 01071D00 01071E00 01071F40
01171CF2 01171D00 01171E00 01171F40
01F71CF0 01F71D00 01F71E00 01F71F40
02071CF0 02071D00 02071E00 02071F40 00D70C02
Comments: I modified the Verb Data according to http://www.insanelymac.com/forum/topic/283754-patched-applehdakext-for-codecs-idt-92hd81b1x5-92hd91bxx-and-92hd87b24/, thanks Micky1979 

 

 

Then, I modified the AppleHDA.kext/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext\info.plist as following steps:(Edit with Plist Editor Pro)

    a. Change "CodecID" to 287143655 in decimal(111d76e7 in hex)

    b. copy above Verb Data into "ConfigData" area.(164 bytes)

    c. Change "Function Group" as "1"

    d. Change "Layout ID" as "12"(Same with DSDT).

 

file info.plist, download link: https://dl.dropboxusercontent.com/u/6897343/Shared/Info.plist

(sorry, i couldn't upload file to this thread. so I use a dropbox link)

Info.plist.zip

 

Part2. Patch the AppleHDA Binary file in AppleHDA.kext/Contents/MacOS.

I used bcc9's Script to patch the AppleHDA Binary file.

I modified the script file "patch-hda-codecs.pl", added the 111d76e7, and to replace the 11d4198b.

{ name => 'IDT 76e7', #aka 92HD90BXX
target_id => 0x111d76e7,
patch_id => 0x11d4198b #ADI 1984B
},
Comments: thanks bcc9's great effort. 

file Patched AppleHDA Binary file, download link: 

https://dl.dropboxusercontent.com/u/6897343/Shared/AppleHDA

(sorry, i couldn't upload file to this thread. so I use a dropbox link)

Patched AppleHDA Binary.zip

 

Part3. Modified Layout12.xml.

I use zlib.pl (thanks RevoGirl R.I.P) to decompress the zlib file to xml, after modified, compress back.

 

     a. Change "CodecID" to 287143655 in decimal(111d76e7 in hex)

     b. Inputs                         Outputs

                    0: LineIn                       0:HeadPhone

                    1: Mic                           1:IntSpeaker

     c. Change "PathMapID" to "1".

 

 

file modified Layout12.xml file, download link: 

https://dl.dropboxusercontent.com/u/6897343/Shared/layout12.xml

(sorry, i couldn't upload file to this thread. so I use a dropbox link)

layout12.xml.zip

 

Part4. Calculate the PathMaps, and modify the platforms.xml.

Below is my PathMaps for Inputs and Outputs.

a. For Outputs (Pin Complex --> Audio Output)
    IntSpeaker:
      Hex:   0x0d --> 0x13
      Decimal: 13 --> 19
    HeadPhone:
      Hex:   0x0b --> 0x14
      Decimal: 11 --> 20
b. For Inputs (Pin Complex --> Audio Selector/Mixer --> Audio Input)
    Int Mic:
      Hex:   0x0f --> 0x17 --> 0x15
      Decimal: 15 --> 23 --> 21
    Ext Mic(LineIn):
      Hex:   0x0a --> 0x18 --> 0x16
      Decimal: 10 --> 24 --> 22 

then, I put those into platforms.xml file, and compress it, drop back.

 

 

file modified platforms.xml file, download link: 

https://dl.dropboxusercontent.com/u/6897343/Shared/Platforms.xml

(sorry, i couldn't upload file to this thread. so I use a dropbox link)

 

 

Part5. Modify DSDT to add the Method function in Device (HDEF).

I set the layout ID 0x0c, 0x00, 0x00, 0x00

 

 

file AppleHDA.kext file, download link: 

https://dl.dropboxusercontent.com/u/6897343/Shared/AppleHDA.kext.zip

(sorry, i couldn't upload file to this thread. so I use a dropbox link)

 

 

After done above, I drop the modified AppleHDA.kext to S\L\E, and repair the permission, then rebuild the kernelkeche.....reboot, but unfortunately, it didn't work at all.

AppleHDA.kext.zip

 

so, Could you help to solve it? thanks, appreciate for your effort. :-)

 

 

 

 

 

Link to comment
Share on other sites

  • Replies 390
  • Created
  • Last Reply

Top Posters In This Topic

Hi, EMlyDinEsH

 

First af all thank you for the help. I tried you pached file: working speaker, but no mic at all. I already pached AppleHDA by my self, and working speakers and mic, but have  a noise if no music or any signal (I don't know how to fix it). Also the main problem: after st-by no any sound, like mute mode. Possible to fix it? I surfing internet and found that need to make paching of IOAudioFamily.kext, but I don't know how.Can you help me with this?

 

Thank you in advance.

 

My new file

https://www.dropbox.com/s/eyrkybb7r2j9h5u/AppleHDA.kext.zip

Link to comment
Share on other sites

Wohoooo....

EMlyDinEsH, i'm following your guide for patching AppleHDA.kext in my installation, and it works!! :lol:

when i play a song through my internal speaker then plug-in my earphone, the sound automatically routed to my earphone.

last time with VodooHDA, i can't get that luxury. i need to manually switched in sound pref-pane.

 

so far, i'm testing for an output (internal speaker and headphone jack).

haven't got a chance to test for mic.

 

just in case someone else needed for his/her Thinkpad T430, the patched along with my scrapfiles during the process can be found on attachment (AppleHDA_T430_ML_1084_patching.zip). Installed the AppleHDA.kext from the download, and modified the DSDT in the installation with guide in the first page, then you should be set.

 

my thinkpad is T430 2349-A17 with mountain lion 10.8.4 installed using myHack method (myHack-3.2-BETA-8).

 

again, thanks so much EMlyDinEsH for putting all information into one easy to follow post.

-----

audio issue after sleep (internal speaker) can be fixed using IOAudioFamily.kext from this post

AppleHDA_T430_ML_1084_patching.zip

Link to comment
Share on other sites

Ok, so I'm new to trying to create a patch. I just got Mavericks running on my Inspiron 17 7737 without USB or -x and the graphics fully work.

However, my audio is Realtek ALC283 according to my codec dump and apparently there is no AppleHDA patch for me yet so I decided I need to try this myself.

I haven't gotten far but I was wondering if someone more experienced and knows what to look for could tell me if my information so far is correct, especially down in the Verbs part. Hope this isn't too much of a headache, hope to hear from someone soon!


 

UpdatedCodecProgress.txt

Link to comment
Share on other sites

Hi EMlyDinEsH
 
My codec is a Realtek ALC269VC - so there are just some minor deviations from your sample.
I got through your instructions OK and used layout28.xml.
Sound works OK, but no Mic.
 
Can you please have a look and give me some pointers. Pls find my patched kext in the attachment.

ALC269VC-patchedAppleHDA.zip 
 
thank you very much for your help.
Michael

 

P.S. Had forgotten to insert the _DSM Method in my DSDT before.

When trying to add this as instructed in your guide, I get this compile error: Object does not exist (DTGP)

..?

Link to comment
Share on other sites

I desperately need your help. For the life of me, I just can't, no matter how hard I try, understand how to correct the values. I've read the notes multiple times and my mind just can't comprehend how it works out. I just had to check if I'm doing this correctly. I'm currently stuck at Chapter 1, Part 2, Section 2:Extracting the verb data. I have the following information:

 

Node 0x0b* (11) : Pin Default 0x0421101f, EAPD 0x2
Node 0x0c* (12) : Pin Default 0x04a11020, EAPD 0x2
Node 0x0d* (13) : Pin Default 0x90170110, EAPD 0x2
Node 0x11* (17) : Pin Default 0xd5a30130

 

*I was unsure if these values should be converted to decimal too, so I placed the corresponding decimal values beside it in parenthesis.

 

With the above values, I've come up with:

Node 11:
Pin Default value: 0x0421101f
Extracted verb data: "1f 01 11 42"

Node 12:
Pin Default value: 0x04a11020
Extracted verb data: "20 10 a1 04"

Node 13:
Pin Default value: 0x90170110
Extracted verb data: "10 01 17 90"

Node 17:
Pin Default value: 0xd5a30130
Extracted verb data: "30 01 a3 d5"
 

The problem really is the "correcting part". I've read it multiple times but I just get all confused. All I know is I have 2 jacks-- 1 for the mic and 1 for headphones. They are beside each other on the left side of the laptop. Also, my laptop has a built-in webcam--HP Truevision HD which I'm pretty sure has an integrated mic. I have 2 codec_dump.txts which resulted from the command cat /proc/asound/card0/codec#0 and codec#3 respectively. The above info came from the codec#0 output. Here are some other info that might be useful too:

 

Codec: IDT 92HD87B2/4
Address: 0
Vendor ID: HEX: 0x111d76d9 DEC: 287143641

As of the moment, sound/webcam/ethernet/wifi card are the ones that aren't functioning on my hackintosh build. I'm only able to access the internet by using a USB Wifi dongle called NetCore NW336. I'm also having issues with signing into Mac App Store--it says my device cannot be verified or something, but I think that's a totally different issue. Just wanted to provide all the information I could. My laptop is an HP Pavilion G6 2991sa, and I triple boot Windows 8.1, Mac OS X Mavericks 10.9.1 and Ubuntu 13.10 all 64 bit. Please let me know if I need to add something.

 

Update:

Here are links to my codec dumps:

codec#0: http://www.mediafire.com/?6a3loxr8fi2r7e7

codec#3: http://www.mediafire.com/?cd2c903maw98818

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...