Jump to content

AppleHDA patching in Mountain Lion

AppleHDA ML .xml.zlib

  • Please log in to reply
237 replies to this topic

#181
Hacktrix2006

Hacktrix2006

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 423 posts
  • Gender:Male
Hi i was wondering if someone could patch me a 10.8.2 AppleHDA.kext for a ALC 892 Msi Laptop.

I have tried myself and can only get one thing working at a time it then does something to my EC Firmware and then i loose sound.

Would like a modded layout1 please.

I have had success with Internal Mic, Ext-Mic, Headphones, Speakers but i couldn't get them all working together i even had auto switching working at one time. Thanks!

Codec Dump, Verbs, SVG's: https://docs.google....UHF3am1BVkxGSmM

None of the AppleHDA's i have tried has worked something to do with how MSI done the 892.

Most of the time i have use the cough cough not allowed name and thats always not worked right but a native applehda.kext from the 10.8.2 was producing better results.

Thanks in advance I only have sound and the SDcard to sort and sound is important.

Attached File  MS_16F2-codec_0-Realtek_ID_892.zip   37.38KB   41 downloads

#182
TimeWalker75a

TimeWalker75a

    InsanelyMac Legend

  • Gurus
  • 935 posts
  • Gender:Male

Oct 28 23:07:17 kernel[0]: Sound assertion in AppleHDADriver at line 1127
Oct 28 23:07:17 kernel[0]: Sound assertion in AppleHDADriver at line 1052

And no audio devices. Looking back through the log, I got the same errors when patching out 885 and 262. Could this be related to HDMI? I don't have it enabled in my DSDT, but toleda's 10.7.4 kext still worked fine (I've no need for HDMI here).

I think I've added the correct edits to enable HDMI but still the same assertions (except multiple times now, so perhaps it is HDMI after all) and still no audio devices. Is there something I need to zero-out to disable HDMI in AppleHDA?

HDMI alone won't break audio completely as it's somewhat independent. Patch out 11d41984, remove all the signal processings and MuteGPIOs from your layout and see if it works, if it doesn't then only leave Speaker in your layout, platform and disable the rest of the nodes in your pinconfig. This is the approach I've used to troubleshoot my ALC269 when I first stated tinkering with ML driver .. Had the same problem.. my 10.7.4 kext worked fine in ML, but the one I've put together wasn't working at all - no sound and errors in IOLog. Turned out my Line-In does not support any signal processing at all, as soon as I added something to this node it borked the sound alltogether ..

#183
Riley Freeman

Riley Freeman

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 846 posts
  • Gender:Male
  • Location:The Streets
That was it! Deleting the SignalProcessing section under Mic fixed it (I left the MuteGPIOs under LineIn and Mic). I've checked most of the inputs and outputs and they all work with no sound assertions :)

#184
Hacktrix2006

Hacktrix2006

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 423 posts
  • Gender:Male
Hi right i have managed to Bin patch the AppleHDA.kext to ALC892 i have inserted the codec, but wondered if someone could help me with layout12.xml and platforms.xml i am completely lost with the pinout/nodes. Please help me.

#185
Riley Freeman

Riley Freeman

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 846 posts
  • Gender:Male
  • Location:The Streets
Here's the ones I'm using. You can see if they work for you.

Attached Files

  • Attached File  892.zip   7.64KB   83 downloads


#186
Hacktrix2006

Hacktrix2006

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 423 posts
  • Gender:Male
Thank you mate, hoping it will work on Laptop version i have as Desktop and Laptop have different pinout as far as i can tell via the SVG.

Will let you know though.

Riley just tried, Even though i have the same ALC892 chip my pinouts are all different so i am going to compare yours and see if i can mod the file to mine using yours as a ruff base. Thanks mate though.

#187
Riley Freeman

Riley Freeman

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 846 posts
  • Gender:Male
  • Location:The Streets
It should work as a reference point alright. I didn't put those together, they're taken from toleda's kext. I just changed the "green" line out from internal speaker to line out in the pin config as I have a desktop. You'll want to change that back so it will show up as internal speaker.

If you copy out the verbs and paste them into a file you can run them through Andy's tool here. It translates them into a human readable format. I had a bunch of good notes and tools when I was putting together my ALC883 one but lost them all. I used this to see the pin config so I could tweak. Micky1979 also has a great thread here that covers all the basics.

#188
Hacktrix2006

Hacktrix2006

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 423 posts
  • Gender:Male
Thanks for info. I have tried andy's tool but got loads of errors FFFFF and crud. I have read the howto micky made it made it clear for me to do the codec verbs but its the tracing from the SVG to the platform and layout12.xml i get confused with. I just had another try now editing the platforms.xml file and now all inputs and outputs show as Internal Speaker with no sound coming out LOL. I am new to this, was so used to having VoodooHDA on my old laptop then tried it on this new one and boy the laptop hates it.

As for toleda's kexts even though they showed a output and input in sound prefs no sound came out which is why i knew the problem was related down to pinouts, yet when i was messing with layout 1 and 12 from native applehda i got Internal mic working.

Codec: Realtek ID 892 Address: 0 DevID: 283904146 (283904146) which means i start with 01 in my codec verb.

Jack Color Description				 Node	 PinDefault			 Modified Verbs
--------------------------------------------------------------------------------------------------------
ATAPI Unknown Mic at Int ATAPI		 18 18 2577598784 01271c40 01271d00 01271ea3 01271f90
1/8 Green HP Out at Ext Rear		 20 20 18957343 01471c10 01471d40 01471e21 01471f01
1/8 Grey Line Out at Ext Rear	 23 23 16850964 01771c50 01771d20 01771e01 01771f01
1/8 Pink Mic at Ext Rear			 24 24 27367472 01871c30 01871d90 01871ea1 01871f01
1/8 Blue Line In at Ext Rear		 26 26 25243711 01a71c60 01a71d30 01a71e81 01a71f01
Speaker at Int ATAPI 27 27					 2568159504 01b71c70 01b71d00	 01b71e13 01b71f90
ATAPI Unknown Line In at Int ATAPI	 29 29 1501757936 01d71cf0 01d71d00 01d71e83 01d71f50
Optical Green SPDIF Out at Ext Rear	 30 30 21315872 01e71c20 01e71d40 01e71e45 01e71f01
-----------------------------------------------------------------------------------------------------

Which then verbit spat out this

New 71c Associations
Before	 After
--------------------------------------------------
01271c40 01271c40 01271d09 01271ea3 01271f99
01471c1f 01471c10 01471d44 01471e21 01471f01
01771c14 01771c50 01771d20 01771e01 01771f01
01871c30 01871c30 01871d98 01871ea1 01871f01
01a71c3f 01a71c60 01a71d30 01a71e81 01a71f01
01b71c10 01b71c70 01b71d01 01b71e13 01b71f99
01d71cf0 01d71cf0 01d71d01 01d71e83 01d71f59
01e71c20 01e71c20 01e71d41 01e71e45 01e71f01

Reset 71d Misc to 0
New 71d Associations
Before			 After
--------------------------------------------------
01271d09 01271c40 01271d00 01271ea3 01271f99
01471d44 01471c10 01471d40 01471e21 01471f01
01771d20 01771c50 01771d20 01771e01 01771f01
01871d98 01871c30 01871d90 01871ea1 01871f01
01a71d30 01a71c60 01a71d30 01a71e81 01a71f01
01b71d01 01b71c70 01b71d00 01b71e13 01b71f99
01d71d01 01d71cf0 01d71d00 01d71e83 01d71f59
01e71d41 01e71c20 01e71d40 01e71e45 01e71f01

Correct 71f 02 FP to 01
New 71f Associations
Before								 After
--------------------------------------------------
01271d09 01271c40 01271d00 01271ea3 01271f90
01471d44 01471c10 01471d40 01471e21 01471f01
01771d20 01771c50 01771d20 01771e01 01771f01
01871d98 01871c30 01871d90 01871ea1 01871f01
01a71d30 01a71c60 01a71d30 01a71e81 01a71f01
01b71d01 01b71c70 01b71d00 01b71e13 01b71f90
01d71d01 01d71cf0 01d71d00 01d71e83 01d71f50
01e71d41 01e71c20 01e71d40 01e71e45 01e71f01

Now i have tried the bottom one and the middle one as i have a Green Misc which is 4 hence why verbit reset it to 0.

I done a table node output which then showed.

Node are Number into ()
					 (xx) at end of line is pointer to "Node (xx)"
					 only follow 1 time (xx) at end of line
					 NodeID is (xx) (xx) (xx) scheme
Example :
Node (9) [Audio Input] Stereo Amp-In =>	 (34)
											 ||
									 Node (34) [Audio Mixer] Stereo Amp-In =>	 (24) 25 26 27 28 29 20 21 22 23 11
=> NodeID 9 is (9-34-24)
in codecgraph svg's file => Audio input are RED's eliptic
(*) are NID connection in use when alsa make dump

Table node for : MS_16F2-codec_0-Realtek_ID_892.txt
===================================================
Node (2) [Audio Output] Stereo Amp-Out
Node (3) [Audio Output] Stereo Amp-Out
Node (4) [Audio Output] Stereo Amp-Out
Node (5) [Audio Output] Stereo Amp-Out
Node (6) [Audio Output] Stereo Digital
Node (7) [Vendor Defined Widget] Mono
Node (8) [Audio Input] Stereo Amp-In =>	 (35)
Node (9) [Audio Input] Stereo Amp-In =>	 (34)
Node (10) [Audio Input] Stereo Digital =>	 (31)
Node (11) [Audio Mixer] Stereo Amp-In =>	 (24) 25 26 27 28 29 20 21 22 23
Node (12) [Audio Mixer] Stereo Amp-In =>	 (2) 11
Node (13) [Audio Mixer] Stereo Amp-In =>	 (3) 11
Node (14) [Audio Mixer] Stereo Amp-In =>	 (4) 11
Node (15) [Audio Mixer] Stereo Amp-In =>	 (5) 11
Node (16) [Audio Output] Stereo Digital
Node (17) [Pin Complex] Stereo Digital => (Pin) Default 1091637744: [N/A] Speaker at Ext Rear =>	 (16)
Node (18) [Pin Complex] Stereo => (Pin) Default 2577598784: [Fixed] Mic at Int ATAPI
Node (19) [Vendor Defined Widget] Mono
Node (20) [Pin Complex] Stereo Amp-Out => (Pin) Default 18957343: [Jack] HP Out at Ext Rear =>	 (12)
Node (21) [Pin Complex] Stereo Amp-Out => (Pin) Default 1091637744: [N/A] Speaker at Ext Rear =>	 (13)
Node (22) [Pin Complex] Stereo Amp-Out => (Pin) Default 1091637744: [N/A] Speaker at Ext Rear =>	 (14)
Node (23) [Pin Complex] Stereo Amp-Out => (Pin) Default 16850964: [Jack] Line Out at Ext Rear =>	 (15)
Node (24) [Pin Complex] Stereo Amp-In Amp-Out => (Pin) Default 27367472: [Jack] Mic at Ext Rear =>	 (12) 13 14 15* 38
Node (25) [Pin Complex] Stereo Amp-In Amp-Out => (Pin) Default 1091637744: [N/A] Speaker at Ext Rear =>	 (12*) 13 14 15 38
Node (26) [Pin Complex] Stereo Amp-In Amp-Out => (Pin) Default 25243711: [Jack] Line In at Ext Rear =>	 (12*) 13 14 15 38
Node (27) [Pin Complex] Stereo Amp-In Amp-Out => (Pin) Default 2568159504: [Fixed] Speaker at Int ATAPI =>	 (12*) 13 14 15 38
Node (28) [Pin Complex] Stereo => (Pin) Default 1091637744: [N/A] Speaker at Ext Rear
Node (29) [Pin Complex] Mono => (Pin) Default 1501757936: [N/A] Line In at Int ATAPI
Node (30) [Pin Complex] Stereo Digital => (Pin) Default 21315872: [Jack] SPDIF Out at Ext Rear =>	 (6)
Node (31) [Pin Complex] Stereo Digital => (Pin) Default 1091637744: [N/A] Speaker at Ext Rear
Node (32) [Vendor Defined Widget] Mono
Node (33) [Vendor Defined Widget] Mono
Node (34) [Audio Mixer] Stereo Amp-In =>	 (24) 25 26 27 28 29 20 21 22 23 11 18
Node (35) [Audio Mixer] Stereo Amp-In =>	 (24) 25 26 27 28 29 20 21 22 23 11
Node (36) [Vendor Defined Widget] Mono
Node (37) [Audio Output] Stereo Amp-Out
Node (38) [Audio Mixer] Stereo Amp-In =>	 (37) 11

so now you can understand why i am so confused.

But thanks for the tips though.

All i do know which might help is what ever codec is set and if its wrong i.e no sound output through itunes when i boot back into windows i get no sound as it seems the EC Firmware on the laptop and the NVRAM gets wrote to with the wrong codec which means i off to reboot and reflash just the EC Firmware to get the sound back on my windows install.

#189
plsh2me

plsh2me

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 178 posts
  • Gender:Male
  • Location:Bangladesh

Try these, to both change the Mic Node (to 12)......no ExtMic...

Micky

Sorry I didn't notice first.
Checked both kexts - v1.device found(in & out),internal speaker ok, but no input/mic; v2. internal speaker ok but input device not found :( .

#190
Godowski

Godowski

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
  • Gender:Male
  • Location:Skopje, Macedonia
How to patch AppleHDA for gigabyte GA-Z77X-D3H with VIA VT2021 ?
someone?
thank you for your time!

#191
bgrau

bgrau

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 414 posts
  • Gender:Male
Any generous hand to help in patching sound system in my rig composed of:

On-board HD Sigmatel STAC9227
Dev_Id: 7618
Ven_Id: 8384

and HDMI Nvidia GF 450 GTS (10de_1245)
Dev_Id: 0bee (HD Sound)
Ven_Id: 10de

I got hdmi2hdmi working with full gfx effects, voodoohda gives kernel crashes most of the time,
so any help much appreciated...

I started a thread here, but stopped until I get this sound business sorted...

http://www.insanelym...31#entry1866431

My rig is old, but still good - Dell Dimension 9200 (XPS 410)

Cheers

#192
bcc9

bcc9

    InsanelyMac Legend

  • Coders
  • 1,277 posts
  • Gender:Male

How to patch AppleHDA for gigabyte GA-Z77X-D3H with VIA VT2021 ?
someone?
thank you for your time!

My script Script to patch AppleHDA binary for osx10.7/10.8
handles the patching of the AppleHDA binary for via vt2021.
For the layout/pathmap, I'd try the ones you can find here: AppleHDA for Gigabyte GA-Z77X-UD3H [VIA VT2020/VT2021]
Worked great for me on a ga-z77mx-d3h

I don't understand why that other forum claims that via vt2021 doesn't work.

#193
Godowski

Godowski

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
  • Gender:Male
  • Location:Skopje, Macedonia

My script Script to patch AppleHDA binary for osx10.7/10.8
handles the patching of the AppleHDA binary for via vt2021.
For the layout/pathmap, I'd try the ones you can find here: AppleHDA for Gigabyte GA-Z77X-UD3H [VIA VT2020/VT2021]
Worked great for me on a ga-z77mx-d3h

I don't understand why that other forum claims that via vt2021 doesn't work.


Does this works without DSDT?

#194
bcc9

bcc9

    InsanelyMac Legend

  • Coders
  • 1,277 posts
  • Gender:Male

Does this works without DSDT?

The instructions over in that other thread assume a dsdt edit, and that's the way I always do it, but you can of course inject your layout-id with an hdaenabler kext if you wish.

#195
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,693 posts
  • Gender:Male
  • Location:Italy

The instructions over in that other thread assume a dsdt edit, and that's the way I always do it, but you can of course inject your layout-id with an hdaenabler kext if you wish.

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 ...

Micky

#196
TimeWalker75a

TimeWalker75a

    InsanelyMac Legend

  • Gurus
  • 935 posts
  • Gender:Male
Just add the same comparison patches the script does and you will be settled for every Apple update.
For eg. for ALC269 in 10.8.x you need to zero out 8408ec10 and patch out 8419d411 with 6902ec10 ..

#197
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,693 posts
  • Gender:Male
  • Location:Italy

Just add the same comparison patches the script does and you will be settled for every Apple update.
For eg. for ALC269 in 10.8.x you need to zero out 8408ec10 and patch out 8419d411 with 6902ec10 ..

Ok, thanks, but I mean, if it is feasible to inject information of layoutxx.xlm and Platforms.xlm (zlib) with kext injector without using roll back of AppleHDA ..
Since I've never done this, I wanted to know if we can inject this data into AppleHDA ML version.

Micky

#198
TimeWalker75a

TimeWalker75a

    InsanelyMac Legend

  • Gurus
  • 935 posts
  • Gender:Male
You can't really do that. kext injector injects entire kexts into kernelcache.

you still need to roll back at least the resources (zlib files), because info.plist can be inejcted into .. say a fakesmc's info.plsit to avoid adding the pinconfig data to hwconfig plugin after every update. since you would have the binary patched by clover and your hardwareconfig data inside fakesmc info.plist only resource swap and not entire AppleHDA rollback would be necessary.

#199
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 1,693 posts
  • Gender:Male
  • Location:Italy
Ok Timewalker, thank you very much for this explanation, really interesting!
But then, (sorry I'm Italian.....my poor English...), there is a small street, writing data into FakeSMC?...............(....no! :(...)


Micky

#200
TimeWalker75a

TimeWalker75a

    InsanelyMac Legend

  • Gurus
  • 935 posts
  • Gender:Male
Here's an example of what i'm referring to: http://pastie.org/5402768





Also tagged with one or more of these keywords: AppleHDA, ML, .xml.zlib


1 user(s) are reading this topic

0 members, 1 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