Jump to content

AppleHDA patching in Mountain Lion


nyolc8
 Share

239 posts in this topic

Recommended Posts

Wow!

<key>IOKitPersonalities</key>
<dict>
<key>HDA Hardware Config Resource</key>
<dict>
 <key>CFBundleIdentifier</key>
 <string>com.apple.driver.AppleHDAHardwareConfigDriver</string>
 <key>HDAConfigDefault</key>
 <array>
 <dict>
	 <key>AFGLowPowerState</key>
	 <data>
	 AwAAAA==
	 </data>
	 <key>CodecID</key>
	 <integer>283903589</integer>
	 <key>ConfigData</key>
	 <data>
	 ASccUAEnHQABJx6gAScfmQFXHBABVx0AAVce
	 EwFXH5kBlxwwAZcdEAGXHiEBlx8DAaccQAGn
	 HRABpx6gAacfkwG3HCABtx0QAbceIQG3HwMB
	 5xxwAecdEAHnHkUB5x8DAUcMAg==
	 </data>
	 <key>FuncGroup</key>
	 <integer>3</integer>
	 <key>LayoutID</key>
	 <integer>65</integer>
 </dict>
 </array>
 <key>IOClass</key>
 <string>AppleHDAHardwareConfigDriver</string>
 <key>IOMatchCategory</key>
 <string>AppleHDAHardwareConfigDriver</string>
 <key>IOProviderClass</key>
 <string>AppleHDAHardwareConfigDriverLoader</string>
 <key>PostConstructionInitialization</key>
 <array>
 <dict>
	 <key>CodecID</key>
	 <integer>283904133</integer>
	 <key>Layouts</key>
	 <array>
	 <integer>36</integer>
	 <integer>38</integer>
	 <integer>52</integer>
	 <integer>53</integer>
	 </array>
	 <key>widgets</key>
	 <array>
	 <dict>
		 <key>MicAttributes</key>
		 <integer>28</integer>
		 <key>MicInfo</key>
		 <string>Sampled on rising edge</string>
		 <key>NodeID</key>
		 <integer>39</integer>
		 <key>PinConfigDefault</key>
		 <integer>2426405136</integer>
	 </dict>
	 </array>
 </dict>
 <dict>
	 <key>Codec</key>
	 <string>Cirrus Logic CS4206</string>
	 <key>CodecID</key>
	 <integer>269697542</integer>
	 <key>Layouts</key>
	 <array>
	 <integer>0</integer>
	 </array>
	 <key>widgets</key>
	 <array>
	 <dict>
		 <key>NodeID</key>
		 <integer>22</integer>
		 <key>PinConfigDefault</key>
		 <integer>1073742064</integer>
	 </dict>
	 </array>
 </dict>
 <dict>
	 <key>Codec</key>
	 <string>Cirrus Logic CS4206</string>
	 <key>CodecID</key>
	 <integer>269697542</integer>
	 <key>Layouts</key>
	 <array>
	 <integer>71</integer>
	 </array>
	 <key>widgets</key>
	 <array>
	 <dict>
		 <key>NodeID</key>
		 <integer>23</integer>
		 <key>PinConfigDefault</key>
		 <integer>2416968002</integer>
	 </dict>
	 </array>
 </dict>
 <dict>
	 <key>Codec</key>
	 <string>Cirrus Logic CS4206</string>
	 <key>CodecID</key>
	 <integer>269697542</integer>
	 <key>Layouts</key>
	 <array>
	 <integer>83</integer>
	 </array>
	 <key>widgets</key>
	 <array>
	 <dict>
		 <key>NodeID</key>
		 <integer>24</integer>
		 <key>PinConfigDefault</key>
		 <integer>2416968001</integer>
	 </dict>
	 </array>
 </dict>
 <dict>
	 <key>Codec</key>
	 <string>Cirrus Logic CS4206</string>
	 <key>CodecID</key>
	 <integer>269697542</integer>
	 <key>Layouts</key>
	 <array>
	 <integer>90</integer>
	 <integer>92</integer>
	 </array>
	 <key>widgets</key>
	 <array>
	 <dict>
		 <key>NodeID</key>
		 <integer>24</integer>
		 <key>PinConfigDefault</key>
		 <integer>2416967952</integer>
	 </dict>
	 </array>
 </dict>
 <dict>
	 <key>Codec</key>
	 <string>Wolfson WM8800</string>
	 <key>CodecID</key>
	 <integer>451708928</integer>
	 <key>Layouts</key>
	 <array>
	 <integer>67</integer>
	 <integer>73</integer>
	 </array>
	 <key>widgets</key>
	 <array>
	 <dict>
		 <key>MicInfo</key>
		 <string>WM8800 External Microphone Virtual Pin Complex</string>
		 <key>NodeID</key>
		 <integer>24</integer>
		 <key>PinConfigDefault</key>
		 <integer>28020848</integer>
	 </dict>
	 </array>
 </dict>
 </array>
</dict>

 

this is awesome, I will surely try!

Thanks for the tip

 

Micky

Link to comment
Share on other sites

basically only this part is relevant:

       <dict>
                <key>AFGLowPowerState</key>
                <data>
                AwAAAA==
                </data>
                <key>CodecID</key>
                <integer>283903589</integer>
                <key>ConfigData</key>
                <data>
                ASccUAEnHQABJx6gAScfmQFXHBABVx0AAVce
                EwFXH5kBlxwwAZcdEAGXHiEBlx8DAaccQAGn
                HRABpx6gAacfkwG3HCABtx0QAbceIQG3HwMB
                5xxwAecdEAHnHkUB5x8DAUcMAg==
                </data>
                <key>FuncGroup</key>
                <integer>3</integer>
                <key>LayoutID</key>
                <integer>65</integer>
        </dict>

this is your hardwareconfig from AppleHDA.kext\Contents\PlugIns\AppleHDAHardwareConfigDriver.kext\Info.plist

the rest is just a cliche copy-paste from there as well.

Link to comment
Share on other sites

Hello bcc9,

 

now that I can use Clover in UEFI mode on my Lappy, has become interesting for me, an kext injector.

I have not tried to patch the binary from config.plist, but your injector can work with AppleHDA.kext version 10.8.x?

This would be cool after AppleUpdate ...

Ok, looks like clover can also inject the layout-id so that's a third option, I have only been injecting via dsdt.

I did not write a kext injector, I generally think it's the wrong approach (you have to worry about your kext(s) getting loaded across each release instead of just hacking the dsdt once).

Link to comment
Share on other sites

Ok, looks like clover can also inject the layout-id so that's a third option, I have only been injecting via dsdt.

I did not write a kext injector, I generally think it's the wrong approach (you have to worry about your kext(s) getting loaded across each release instead of just hacking the dsdt once).

Meanwhile, thanks for your advice (you and Timewalker)!

My intention with Clover, is to see if it is possible to overcome AppleUpdate without Osx stops working... or with very few changes ....

 

... but this was only to be discovered (by me), that's why I ask!

 

Micky

 

 

 

:lol:

Link to comment
Share on other sites

Well I have been working on getting a compact sound system in Lion / MLion (anyone will do) for my rig (which is a bit old, but still in good working order):

 

Dell Dimension 9200 (XPS 410) + a newer gfx card NVidia GTS 450...

 

the on-board chip is Sigmatel 9277...

 

I got a reasonable solution with latest VoodooHDA 2.7.4 (patched also for hdmi)

and DSDT patching...

 

The stuff I did achieve is posted here:

 

http://www.insanelymac.com/forum/topic/284480-voodoohda-sigmatel-9277-nvidia-450-gts-hdmi-sound/

 

http://www.insanelymac.com/forum/topic/284414-dsdt-for-dell-dimension-9200-aka-xps-410/

 

http://www.insanelymac.com/forum/topic/284295-geforce-gts-450-2gb-vram-palit-case-study/

 

and I wondered if I can achieve better results (like Line In for HDEF)

using AppleHDA patching...

 

Any advice welcome... I know Sigmatel 9277 is pretty old, but it will be nice for me not to have to hook up an external

usb sound just for a line in...

Link to comment
Share on other sites

  • 2 weeks later...

Ok guy, i had been trying to make my audio work on HP folio 13 (IDT 92HD99BXX 111d76e5) but failed.

i want to ask, how do i know that i patch the correct target codec id? Will there anything show up in the system information or ioreg?

Link to comment
Share on other sites

Ok guy, i had been trying to make my audio work on HP folio 13 (IDT 92HD99BXX 111d76e5) but failed.

i want to ask, how do i know that i patch the correct target codec id? Will there anything show up in the system information or ioreg?

See my guide: Patched AppleHDA.kext for codecs IDT 92HD81B1X5 + IDT 92H...

 

Micky

Link to comment
Share on other sites

  • 2 weeks later...

X58 Motherboards needs an HDEF Injector in ML....

Search on the Forum Enoch bootloader r 2151, has this Injector available from bootloader (also for the layout-id)

HDEF is show up in your ioreg? or try these available: #2

 

 

Micky

Link to comment
Share on other sites

  • 3 weeks later...

Hi,

 

I have a HP dv5-1130ea and tried to use patch-hda.pl script done by bcc9. However there is no support for the 111d76b2 codec, which is the IDT 92HD71B7X. Can somebody point out some tips how can I patch the AppleHDA binary manually via terminal?

 

Till now I have tried the following commands:

 

 

sudo perl -pi -e 's|\x84\x19\xd4\x11|\xb2\x76\x1d\x11|g' /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA

 

However there is no devices showing in the Audio section under System profiler.

 

Can anyone help in patching manually or else advise how can I make support in the perl script of @bcc9? I am not really proficient in pl scripts :worried_anim:

Link to comment
Share on other sites

-= ADI AD2000B =-

 

First of all I wont give the proper credits.

- Samantha (aka Revogirl, DHP) R.I.P. we miss you. For the script (Inflate/Deflate zlib)

- TimeWalker75a , I suppose is the same as TimeWalker on Applelife.ru post #338

for find the binpatch for this controller.

 

So let's go.

 

.

 

.

 

.

 

Fabio

 

Thank you! I've been struggling with this since I upgraded from Lion to ML several weeks ago. Finally my system is fully functional again.

Link to comment
Share on other sites

 

Thanks for the link, however I followed a copy of this link in english in here: http://www.insanelymac.com/forum/topic/283754-patched-applehdakext-for-codecs-idt-92hd81b1x5-idt-92hd91bxx/

 

and didnt work for me. Would you like to see the verbs, and kext I generated maybe you can guide me to whats wrong?

Link to comment
Share on other sites

 Share

×
×
  • Create New...