Jump to content

AppleHDA patching in Mountain Lion

AppleHDA ML .xml.zlib

  • Please log in to reply
237 replies to this topic

#121
DirectXtraOrdinary

DirectXtraOrdinary

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 330 posts
  • Gender:Male
  • Location:Mödling, Austria

kext that worked for you SupraMac?


No, sorry, as I applied the DSDT / _DSM you attached in HDEF it shows NO ID in the system panel now, it's frustrating with this laptop.
The aggravation started at the setup, cause I had to replace the IOPCIFamiliy.kext with the one from netkas's site.
Maybe all the trouble is caused by this kext :hammer: but thanks for your effort.

#122
hackintosh1984

hackintosh1984

    InsanelyMac Protégé

  • Members
  • Pip
  • 12 posts
  • Gender:Male
  • Location:Poland, Zamosc
Hello


I'm have problem in Mountain Lion with sound on ALC888 in EP41-UD3L and not run audio 5.1. Only 2 channel works - screen photo file I add to this post. Now use this file https://www.dropbox....pleHDA.kext.zip




In Lion, my sound was working perfectly using only AppleHDA + Plataform.xml + layout888.xml all added with HDA Wizard (link to this files:)

https://www.dropbox....0y9u/alc888.zip




I test more metod:

For Mountain Lion I make this (and not works for me - is't audio):
Posted Image VCH888
Posted 29 July 2012 - 04:38 PM


You need to rename layout888.xml to layout12.xml and edit inside layout12.xml to be as following

<key>LayoutID</key>
<integer>12</integer>

get perl script from zlib.pl.zip (by Revogirl, R.I.P.)

(compress)
perl zlib.pl deflate layout12.xml > layout12.xml.zlib


also;
perl zlib.pl deflate Platforms.xml > Platforms.xml.zlib

copy *.xml.zlib to /System/Library/Extensions/AppleHDA.kext/Contents/Resources/




------------------
------------------
And link to oryginal (not patched) AppleHDA.kext for Mountain Lion :

https://www.dropbox....z%20ML%20GM.zip


Please help me. Thanks.

Attached Files



#123
Gamamou

Gamamou

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
Hello there,

I have the following audio in my Dell e6520 "IDT 92HD75B3" and was wondering how to get audio working. Is it correct to state that to get it working in Mountain Lion, I need to simply use the installer posted by Bcc9 in post #4 in this thread or there to be done before I can get my audio working. I am still trying to wrap my head around audio kext patching.

How do I find my layout and the things that you guys talk about in this thread. Please bear with me as I am new.

Please point me to the proper set of steps to take to get my audio working.

I have extracted my codec dump from Ubuntu live CD for easy reference. First file is for IDT onboard card and the second one is for HDMI audio on my nVidia NVS4200M card.

I have just managed to get my internal speakers to work with my IDT 92HD90BXX card, but I don't know whether it is correctly done or not? Could you please take a look and let me know how best to improve it?

The only other question remaining for me now is to make the onboard nVidia NVS 4200M HDMI audio work and I really hope bcc9 or some of you experienced guys will help.

Thanks in advance for your help.

Attached Files



#124
tdtran1025

tdtran1025

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 351 posts

Hello


I'm have problem in Mountain Lion with sound on ALC888 in EP41-UD3L and not run audio 5.1. Only 2 channel works - screen photo file I add to this post. Now use this file https://www.dropbox....pleHDA.kext.zip




In Lion, my sound was working perfectly using only AppleHDA + Plataform.xml + layout888.xml all added with HDA Wizard (link to this files:)

https://www.dropbox....0y9u/alc888.zip




I test more metod:

For Mountain Lion I make this (and not works for me - is't audio):
Posted Image VCH888
Posted 29 July 2012 - 04:38 PM


You need to rename layout888.xml to layout12.xml and edit inside layout12.xml to be as following

<key>LayoutID</key>
<integer>12</integer>

get perl script from zlib.pl.zip (by Revogirl, R.I.P.)

(compress)
perl zlib.pl deflate layout12.xml > layout12.xml.zlib


also;
perl zlib.pl deflate Platforms.xml > Platforms.xml.zlib

copy *.xml.zlib to /System/Library/Extensions/AppleHDA.kext/Contents/Resources/




------------------
------------------
And link to oryginal (not patched) AppleHDA.kext for Mountain Lion :

https://www.dropbox....z%20ML%20GM.zip


Please help me. Thanks.


The above link is a an old kext (ver. 2.2) for ALC888/1200. What works for me after a wrestling with most patching scripts to no success, other than using old patched kexts, is adding 2 layout888.xml, platform.xml, and HDEnable.kext (inserted inside /PlugIns) to ML AppleHDA ver. 2.3.0. Open it up and see added items in orange and green hightlights.

But for 10.8.2 AppleHDA.kext version 2.3.1, there's absence of resource folder in which layout.xml and platform.xml go so I don't know if this method will work anymore. I got to try it and get back on this topic later.

#125
tdtran1025

tdtran1025

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 351 posts
10.8.2 Beta doesn't play nice. It would not take even 10.8.1 kext. I had to resort to an old Lion sound kext. I don't know why since a new AppleHDA.kext is introduced. Maybe it's a further pruning of supported devices. Then again, it's only a beta.

#126
Hacktrix2006

Hacktrix2006

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 423 posts
  • Gender:Male
Hi i have a realtek 892 but i have noticed that there is 2 versions of this codec one is DTS-CG and the other is CG i have tried the Patched one and the perl script but i can not get a single bit of sound from either nor can i with voodoohda.

If i upload the codec_dump.txt from ubuntu and the Verbs from windows would someone be able to help me out.


Here is the files

Attached Files



#127
marsuss

marsuss

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts
Hi all.
I have ALC269VC on my laptop, headphones and mic working but there is no sound from internal speakers. Have you guys any suggestions?

I've used following config data;

From

Node 0x12 411111f0
Node 0x14 411111f0, EAPD 0x02
Node 0x15 0321101f, EAPD 0x02

Node 0x17 90170120
Node 0x18 03a11830
Node 0x19 90a70940
Node 0x1a 411111f0
Node 0x1b 90170110
Node 0x1d 4006a21d
Node 0x1e 411111f0


To

Node 12 : f0 11 11 41 - N/A
Node 14: f0 11 11 41 - N/A
Node 15: 1f 10 21 03-> 10 10 21 03 (Corrected sequence)
Node 17: 20 01 17 90 -> - N/A
Node 18: 30 18 a1 03 ->30 10 81 03 (Corrected Ext mic to LineIn)
Node 19: 40 09 a7 90 -> 40 01 a0 90 (Corrected IntMic Conn type and DSP)
Node 1a: f0 11 11 41 - N/A
Node 1b: 10 01 17 90-> 20 01 17 90 (Corrected Association)
Node 1d: 1d a2 06 40 - N/A
Node 1e: f0 11 11 41 - N/A

Node 14 EAPD : 02 - N/A
Node 15 EAPD : 02 - Headphone contains EAPD

<01571c40 01571d10 01571e21 01571f03 01871c20 01871d10 01871e81 01871f03 01971c30 01971d01 01971ea0 01971f90 01b71c10 01b71d01 01b71e17 01b71f90 01570c02>

in dsdt

Method (_DSM, 4, NotSerialized)
			{
				Store (Package (0x06)
					{
						"hda-gfx",
						Buffer (0x0A)
						{
							"onboard-1"
						},

						"layout-id",
						Buffer (0x04)
						{
							0x1C, 0x00, 0x00, 0x00
						},

						"PinConfigurations",
						Buffer (Zero) {}
					}, Local0)
				DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
				Return (Local0)
			}

and attached files for patching

AppleHDA, codec dump, layout28.xml, Platforms.xml, Info.plist attached.

I have also sound assertion

14/09/2012 20:48:05.000 kernel[0]: Sound assertion in AppleHDAController at line 1294
14/09/2012 21:38:31.000 kernel[0]: Sound assertion in AppleHDAController at line 1294
14/09/2012 21:38:37.000 kernel[0]: Sound assertion in AppleHDAEngine at line 6611
14/09/2012 21:38:37.000 kernel[0]: Sound assertion in AppleHDAEngine at line 748
14/09/2012 21:38:37.000 kernel[0]: Sound assertion in AppleHDADriver at line 2285
14/09/2012 21:38:37.000 kernel[0]: Sound assertion in AppleHDADriver at line 217
14/09/2012 21:38:37.000 kernel[0]: Sound assertion in AppleHDADriver at line 1055
14/09/2012 21:48:16.000 kernel[0]: Sound assertion in AppleHDAController at line 1294

Attached Files



#128
Gamamou

Gamamou

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
Hi Marsus,

In your DSDT I noticed that your layout ID has:
"layout-id",
												Buffer (0x04)
												{
													    [color=#ff0000][b]0x1C,[/b][/color] 0x00, 0x00, 0x00 // Should the highlighted value not be [color=#ff0000]0x0C[/color] or 12 instead of 28 (0x1c)?
												},

Just making sure I am a noob when it come to DSDT editing.

Thanks

#129
marsuss

marsuss

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts
@TimeWalker75a
Could you quick look on my files? please. Corrected to 12 and no changes.

#130
TimeWalker75a

TimeWalker75a

    InsanelyMac Legend

  • Gurus
  • 1,018 posts
  • Gender:Male
I'm kind of lazy this evening (its 11PM here) .. but at first glance ...
Your internal stereo speaker appears to be at node 0x1b


Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Speaker Playback Switch", index=0, device=0
	ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x00003734: IN OUT Detect
	Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
	Conn = Analog, Color = Unknown
	DefAssociation = 0x1, Sequence = 0x0
	Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
	 0x0c 0x0d*

But there's also a Mono speaker there? I have never seen a dump of 269 with such an option. S/PDIF - sure, but extra speaker?


Node 0x17 [Pin Complex] wcaps 0x40050c: Mono Amp-Out
  Control: name="Bass Speaker Playback Switch", index=0, device=0
	ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00]
  Pincap 0x00000010: OUT
  Pin Default 0x90170120: [Fixed] Speaker at Int N/A
	Conn = Analog, Color = Unknown
	DefAssociation = 0x2, Sequence = 0x0
	Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
	 0x0f
If you can see the output in system preferences > Sound then you are missing something in the patmaps\pinconfig.
Try using 01B71C40 01B71D01 01B71E10 01B71F90 and just for the sakes of it try adding EAPD 01B70C02 , since HP and speakers are usually tied together.
As for layout-id its pretty much up to you what you use. I prefer 28 (1C) for no apparent reason other than MBP8,1 uses this number and I'm conveniently faking this model.

#131
marsuss

marsuss

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts
TimeWalker75a thanks for your replay

If you can see the output in system preferences > Sound then you are missing something in the patmaps\pinconfig.


There is no way to miss something, checked twice. Looks ok, but isn't because as im mentioned is no sound from speakers.


Posted Image
Posted Image

Try using 01B71C40 01B71D01 01B71E10 01B71F90 and just for the sakes of it try adding EAPD 01B70C02


Unfortunately didn't work.

I'm out of ideas.

#132
myrorym

myrorym

    InsanelyMac Protégé

  • Members
  • PipPip
  • 79 posts
  • Gender:Male

I've updated my AppleHDA patch script to handle multiple codec ids and also dynamically figure out which extra comparisons should be patched to get the matching to work properly. The script supports osx 10.7 and osx 10.8.

The script works by continuing my idea of patching the codec comparisons by zeroing out the codec ids found as operands to the applicable comparison instructions. This is easier to do in a script than trying to compute a new jump location as the script does not even need to parse AppleHDA's match routine's instructions (see ati-personality.pl for an example of that kind of processing).

I think maintaining a script like this will be more generally useful & easier to maintain than a bunch of perl one-liner posts.

This script resembles the concept of HDA wizard http://www.insanelym...howtopic=266531 but instead of being GUI focused, it focuses on getting the AppleHDA binary patching done automatic&right across osx releases.

I've only added support for a few codecs that I've used on hackintoshes (idt 7675, alc 889 and alc992). I could try to fold in the codecs from HDA wizard, as well as this thread, if this looks good.

Examples, under 10.7:

% ./patch-hda.pl 111d7675
Patching AppleHDA codec 11d41984 with 111d7675
1 codec range comparison(s) to patch
Patching range comparison 11d41983
AppleHDA patched successfully.
under 10.8:
% ./patch-hda.pl 111d7675
Patching AppleHDA codec 11d41984 with 111d7675
No codec range comparisons require patching
AppleHDA patched successfully.
% ./patch-hda.pl 10ec0889
Patching AppleHDA codec 10ec0885 with 10ec0889
No codec range comparisons require patching
AppleHDA patched successfully.
% ./patch-hda.pl 'Realtek ALC889+inputs'
Patching AppleHDA codec 11d41984 with 10ec0889
No codec range comparisons require patching
AppleHDA patched successfully.
% ./patch-hda.pl
Usage: patch-hda.pl <codec-id>|<codec-name>
Examples: patch-hda.pl 111d7675
Examples: patch-hda.pl 'IDT 7675'
Supported codecs:
Target		 Patch		 Name
Codec ID		Codec ID
-------------------------------------------
111d7675		11d41984		IDT 7675
10ec0889		10ec0885		Realtek ALC889
10ec0889		11d41984		Realtek ALC889+inputs
10ec0892		10ec0885		Realtek ALC892

%

Note: Since there is debate as to which codec to use for alc889, I offer two choices above. I could just take the patch codec id as an optional argument, what do people think?

Update: I added a bunch more codecs (including all the codecs that HDA wizard had).


Why no permission for this? I would like to get my ALC889 running and want to look at this, is it there?

#133
bcc9

bcc9

    InsanelyMac Legend

  • Coders
  • 1,277 posts
  • Gender:Male

Why no permission for this? I would like to get my ALC889 running and want to look at this, is it there?

Something is wrong with the forum software, I had to move the attachment to within post #1 to get it to be downloadable again.


#134
Composer.Nhan

Composer.Nhan

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts
Does the AppleHDA in 10.8.2 need different binary patch for ALC269?

#135
TimeWalker75a

TimeWalker75a

    InsanelyMac Legend

  • Gurus
  • 1,018 posts
  • Gender:Male
It does, as the binary has changed. But I see no point in calculating it again since bcc9's script handles it absolutely fine.

#136
Composer.Nhan

Composer.Nhan

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts
I got "Sound assertion in AppleHDAController at line 483" with the 10.8.2 AppleHDA (patched), even the old 10.8.0 AppleHDA that worked on 10.8.0 got the same problem.

#137
TimeWalker75a

TimeWalker75a

    InsanelyMac Legend

  • Gurus
  • 1,018 posts
  • Gender:Male
Most definitely due to not having hda-gfx onboard-1 and SNB framebuffer patched for HDMI audio ...

#138
Composer.Nhan

Composer.Nhan

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts
Thank you, it works now :D

#139
Carstiman

Carstiman

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 116 posts
  • Gender:Male

Thanks to this I finally have the current AppleHDA working with my ALC883 :)

I guess ALC885 must have some checks in place too, or has been nerfed in some other way. Binpatching ALC262 instead has got it working. Thanks for the info!


Hello, thx for your ALC883 AppleHda !
working perfekt with my Asus P5K-Pro and behind edits with my Nvidia GTS450 too.

But now i´ve got a GTX650 and i have to patch your Applehda again.

do you know the hex value´s i have to change to get my GTX650 HDMI working (dsdt edits are done so far)?
                Device (HDAU)
                {
                    Name (_ADR, One)
                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x02)
                            {
                                "hda-gfx",
                                Buffer (0x0A)
                                {
                                    "onboard-1"
                                }
                            }, Local0)
                        MCDP (Arg2, RefOf (Local0))
                        Return (Local0)
                    }
                }


i tried to get the 10.8.2 Hda.hext working with no luck. could you please so kind and post your terminal patch vor ALC883 ?

thx in advance

edit:
is find and replace AppleHDA:
de 10 e4 0b
de 10 1b 0e

AppleHDAControler
07 00 de 10
42 00 de 10

right for the gtx650?

Attached Files



#140
toleda

toleda

    InsanelyMac Legend

  • Gurus
  • 875 posts
  • Gender:Male

Hello, thx for your ALC883 AppleHda !
working perfekt with my Asus P5K-Pro and behind edits with my Nvidia GTS450 too.

But now i´ve got a GTX650 and i have to patch your Applehda again.

do you know the hex value´s i have to change to get my GTX650 HDMI working (dsdt edits are done so far)?

i tried to get the 10.8.2 Hda.hext working with no luck. could you please so kind and post your terminal patch vor ALC883 ?

No AppleHDA.kext edits are required for Nvidia HDMI audio in 10.8. As a matter of fact, with the layout-id of 12 and the proper HDMI audio dsdt edits, Nvidia HDMI audio works with the native AppleHDA.kext. In addition, working onboard audio is not necessary for HDMI audio in ML. Your HDMI audio problem is missing dsdt/P0P2/GFX0 edits. Add GFX0 to your dsdt per the example below. For onboard audio, you will need an 883 edited 10.8 AppleHDA.kext.

		 Device (P0P2) /** Existing Code **/
		 {
			 Name (_ADR, 0x00010000)
			 Name (_PRW, Package (0x02) /** Optional **/
			 {
				 0x09,
				 0x05
			 })
			 Device (GFX0) /** Add GFX0 Code **/
			 {
				 Name (_ADR, Zero)
				 Name (_SUN, One)
				 Method (_DSM, 4, NotSerialized)
				 {
					 Store (Package (0x06)
						 {
							 "@0,connector-type",
							 Buffer (0x04)
							 {
								 0x00, 0x08, 0x00, 0x00
							 },
							 "@1,connector-type",
							 Buffer (0x04)
							 {
								 0x00, 0x08, 0x00, 0x00
							 },
							 "hda-gfx",
							 Buffer (0x0A)
							 {
								 "onboard-1"
							 }
						 }, Local0)
					 DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
					 Return (Local0)
				 }
			 }
			 Device (HDAU) /** Existing Code **/






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


0 user(s) are reading this topic

0 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