Jump to content

[HOW TO] Patch AppleHDA - Knowledge Base


THe KiNG
 Share

392 posts in this topic

Recommended Posts

Strange things, couse everything looks fine with my AD1988b (ASUS P5B Premium) profiler looks great and system preferences shows devices as well but .... nothing comes out from speakers.. ;) silent ...don't know why

Link to comment
Share on other sites

Strange things, couse everything looks fine with my AD1988b (ASUS P5B Premium) profiler looks great and system preferences shows devices as well but .... nothing comes out from speakers.. :| silent ...don't know why

You are unlucky owner of unnsuported revision...

Same stuff happen on a friend AD1988b or msi wind alc888 or my atom alc662 etc.

I dont know, yet, where is the problem. :)

Link to comment
Share on other sites

Hi, The King. A strange thing happened here. Recently I did a clean installation of Mac OS X 10.5.6 but used the Legacy kexts which I did in 10.5.4 upgraded to 10.5.6 the kext cannot load now. Dunno what`s wrong.

Link to comment
Share on other sites

You are unlucky owner of unnsuported revision...

Same stuff happen on a friend AD1988b or msi wind alc888 or my atom alc662 etc.

I dont know, yet, where is the problem. :(

+1.......BenQ S41 ALC262.....only input working.

Link to comment
Share on other sites

Hi, all. I've get all device working. But I noticed the Input has a very annoying echo. How to lower the echo? Is there a similar solution like the noise reduction function to add? Anyone succeed, please post and reply. Thanks a bunch.

Link to comment
Share on other sites

1. First step --> Linux Codec Dump

-It is a must for start patching applehda.kext, my advice use latest linux distro you can find, dump it and save it in a safe place!

*New Since I found some errors in ubuntu dumps I advice you to use mandriva-linux-one-2009-KDE4-int-cdrom-i586 to make the dumps, you will get a clean codecgraph w/o errors b/c mandriva use latest alsa drivers...

 

That's interesting, I've just tried both and Mandriva gives my MSi Wind an ALC1200 codec, where Ubuntu gives it the correct (if I've read the right info on the web) ALC888. I'll compare them further to see who's got it right.

Link to comment
Share on other sites

HDAenabler needs edit to work on 10.5.7

 

actual HDAenabler info.plist says:

		<key>com.apple.kernel.iokit</key>
	<string>6.9.9</string>

 

need to say:

		<key>com.apple.kernel.iokit</key>
	<string>7.9.9</string>

Link to comment
Share on other sites

HDAenabler needs edit to work on 10.5.7

 

actual HDAenabler info.plist says:

		<key>com.apple.kernel.iokit</key>
	<string>6.9.9</string>

 

need to say:

		<key>com.apple.kernel.iokit</key>
	<string>7.9.9</string>

 

Macgirl,

I tried that with no luck?

Link to comment
Share on other sites

Okay guys and gals, I've been trying for months to get a working patched AppleHDA working on my own and I'm having no luck, so I finally decided to ask for help. I have a Gigabyte GA-MA790FX-UD5P which uses the ALC889a chipset. The only patched AppleHDA that I have gotten to work is from the iPC installer and it doesn't work quite right. I get front speakers (Speakers), rear speakers (Line Out), and SPDIF Out (Digital Out), but for some reason, I don't get the Center/Sub output from what I guess is supposed to be Headphones. Anyways, I've been trying to make a proper AppleHDA.kext based on my codec dump.

 

Here are the files that I've got: Files

 

I also have HDEF modded in my DSDT.aml to just add the LayoutID of 0x0c, 0x00, 0x00, 0x00, the codec id of 0x85, 0x08, 0x00, 0x00, and the Device Type. I don't have the pinconfigurations yet, so I didn't add those. When I try to use the Legacy files that I've posted, I get a few sound assertion errors at startup. These are the ones I get with my current DSDT.aml, the Legacy files and a vanilla 10.5.7 AppleHDA.kext.

 

Sound assertion "0 == requireMaxBusStallArray" failed in "/SourceCache/AppleHDA/AppleHDA-168.1.3/AppleHDAController/AppleHDAController.cpp" at line 1206 goto Exit
May 15 01:21:42 Underground kernel[0]: Sound assertion "0 != setupHostInterface()" failed in "/SourceCache/AppleHDA/AppleHDA-168.1.3/AppleHDAController/AppleHDAController.cpp" at line 255 goto Exit1
May 15 01:21:42: --- last message repeated 1 time ---
May 15 01:21:42 Underground kernel[0]: display: match category IOFramebuffer exists
May 15 01:21:42 Underground kernel[0]: Sound assertion "0 == requireMaxBusStallArray" failed in "/SourceCache/AppleHDA/AppleHDA-168.1.3/AppleHDAController/AppleHDAController.cpp" at line 1206 goto Exit
May 15 01:21:42 Underground kernel[0]: Sound assertion "0 != setupHostInterface()" failed in "/SourceCache/AppleHDA/AppleHDA-168.1.3/AppleHDAController/AppleHDAController.cpp" at line 255 goto Exit1
May 15 01:21:42: --- last message repeated 1 time ---

 

This is on a desktop system with 6 1/8" ports on the back and full 7.1 outputs. I'd really like to get 7.1 out if I can. I don't really care about inputs at all, nor do I have any front ports hooked up. Please help.

 

Thanks.

Link to comment
Share on other sites

add

<key>CommonPeripheralDSP</key>

to

<key>HDA Platform Resource</key>

in

AppleHDAPlatformDriver

 

 

My assumption is this is to AppleHDAPlatformDriver? is there a string to go with the key? or just add a key...

Link to comment
Share on other sites

Okay guys and gals, I've been trying for months to get a working patched AppleHDA working on my own and I'm having no luck, so I finally decided to ask for help. I have a Gigabyte GA-MA790FX-UD5P which uses the ALC889a chipset. The only patched AppleHDA that I have gotten to work is from the iPC installer and it doesn't work quite right. I get front speakers (Speakers), rear speakers (Line Out), and SPDIF Out (Digital Out), but for some reason, I don't get the Center/Sub output from what I guess is supposed to be Headphones. Anyways, I've been trying to make a proper AppleHDA.kext based on my codec dump.

 

Here are the files that I've got: Files

 

I also have HDEF modded in my DSDT.aml to just add the LayoutID of 0x0c, 0x00, 0x00, 0x00, the codec id of 0x85, 0x08, 0x00, 0x00, and the Device Type. I don't have the pinconfigurations yet, so I didn't add those. When I try to use the Legacy files that I've posted, I get a few sound assertion errors at startup. These are the ones I get with my current DSDT.aml, the Legacy files and a vanilla 10.5.7 AppleHDA.kext.

 

Sound assertion "0 == requireMaxBusStallArray" failed in "/SourceCache/AppleHDA/AppleHDA-168.1.3/AppleHDAController/AppleHDAController.cpp" at line 1206 goto Exit
May 15 01:21:42 Underground kernel[0]: Sound assertion "0 != setupHostInterface()" failed in "/SourceCache/AppleHDA/AppleHDA-168.1.3/AppleHDAController/AppleHDAController.cpp" at line 255 goto Exit1
May 15 01:21:42: --- last message repeated 1 time ---
May 15 01:21:42 Underground kernel[0]: display: match category IOFramebuffer exists
May 15 01:21:42 Underground kernel[0]: Sound assertion "0 == requireMaxBusStallArray" failed in "/SourceCache/AppleHDA/AppleHDA-168.1.3/AppleHDAController/AppleHDAController.cpp" at line 1206 goto Exit
May 15 01:21:42 Underground kernel[0]: Sound assertion "0 != setupHostInterface()" failed in "/SourceCache/AppleHDA/AppleHDA-168.1.3/AppleHDAController/AppleHDAController.cpp" at line 255 goto Exit1
May 15 01:21:42: --- last message repeated 1 time ---

 

This is on a desktop system with 6 1/8" ports on the back and full 7.1 outputs. I'd really like to get 7.1 out if I can. I don't really care about inputs at all, nor do I have any front ports hooked up. Please help.

 

Thanks.

 

Is there no one willing to help me with this?

Link to comment
Share on other sites

Is there no one willing to help me with this?

Sequence need to be 0, all of it. Set Location to 0 for internal & 1 for external. Also set Misc to 0 if it have jack detect override & 1 if it stated NO_PRESENCE in the codec dump.

 

I will change any Misc value that > 3 to 0 or 1 according to what stated in the codec dump.

 

Hope it helps. At the time I wrote this, I only examine your verbs. I will try to look to your kexts later.

 

kizwan

Link to comment
Share on other sites

Hi,guys!

After 10.5.7 update, has new AppleHDA killed your External microphone?

I lost internal & external mic. I don't have time yet to troubleshoot it. It probably because the legacy kext is not compatible with 10.5.7.

Link to comment
Share on other sites

kernel Sound assertion "0 == requireMaxBusStallArray" failed in "/SourceCache/AppleHDA/AppleHDA-168.1.3/AppleHDAController/AppleHDAController.cpp" at line 1206 goto Exit

 

after 10.5.7 i think

tommorow i will test the inputs if they still work

Link to comment
Share on other sites

Sequence need to be 0, all of it. Set Location to 0 for internal & 1 for external. Also set Misc to 0 if it have jack detect override & 1 if it stated NO_PRESENCE in the codec dump.

 

I will change any Misc value that > 3 to 0 or 1 according to what stated in the codec dump.

 

Hope it helps. At the time I wrote this, I only examine your verbs. I will try to look to your kexts later.

 

kizwan

 

Ok, so I changed the values you mentioned and I still don't get any sound. I am now using vanilla AppleHDA.kext from 10.5.7 and DSDT.aml with the correct codec verbs loaded. Here is a copy of my codec verbs in dsdt:

 

							 "ConfigData",
						 Buffer (0xA0)
						 {
							 /* 0000 */	0x01, 0x87, 0x1c, 0x40, 0x01, 0x87, 0x1d, 0x9c,
							 /* 0008 */	0x01, 0x87, 0x1e, 0xa1, 0x01, 0x87, 0x1f, 0x01,
							 /* 0010 */	0x01, 0x97, 0x1c, 0x50, 0x01, 0x97, 0x1d, 0x9c,
							 /* 0018 */	0x01, 0x97, 0x1e, 0xa1, 0x01, 0x97, 0x1f, 0x02,
							 /* 0020 */	0x01, 0xa7, 0x1c, 0x40, 0x01, 0xa7, 0x1d, 0x34,
							 /* 0028 */	0x01, 0xa7, 0x1e, 0x81, 0x01, 0xa7, 0x1f, 0x01,
							 /* 0030 */	0x01, 0xb7, 0x1c, 0x20, 0x01, 0xb7, 0x1d, 0x4c,
							 /* 0038 */	0x01, 0xb7, 0x1e, 0x21, 0x01, 0xb7, 0x1f, 0x02,
							 /* 0040 */	0x01, 0xc7, 0x1c, 0xf0, 0x01, 0xc7, 0x1d, 0x01,
							 /* 0048 */	0x01, 0xc7, 0x1e, 0x33, 0x01, 0xc7, 0x1f, 0x59,
							 /* 0050 */	0x01, 0xd7, 0x1c, 0x00, 0x01, 0xd7, 0x1d, 0xe6,
							 /* 0058 */	0x01, 0xd7, 0x1e, 0x05, 0x01, 0xd7, 0x1f, 0x40,
							 /* 0060 */	0x01, 0x47, 0x1c, 0x10, 0x01, 0x47, 0x1d, 0x40,
							 /* 0068 */	0x01, 0x47, 0x1e, 0x01, 0x01, 0x47, 0x1f, 0x01,
							 /* 0070 */	0x01, 0x57, 0x1c, 0x10, 0x01, 0x57, 0x1d, 0x10,
							 /* 0078 */	0x01, 0x57, 0x1e, 0x01, 0x01, 0x57, 0x1f, 0x01,
							 /* 0080 */	0x01, 0x67, 0x1c, 0x10, 0x01, 0x67, 0x1d, 0x60,
							 /* 0088 */	0x01, 0x67, 0x1e, 0x01, 0x01, 0x67, 0x1f, 0x01,
							 /* 0090 */	0x01, 0x77, 0x1c, 0x10, 0x01, 0x77, 0x1d, 0x20,
							 /* 0098 */	0x01, 0x77, 0x1e, 0x01, 0x01, 0x77, 0x1f, 0x01,
							 /* 0100 */	0x01, 0xe7, 0x1c, 0x30, 0x01, 0xe7, 0x1d, 0x61,
							 /* 0108 */	0x01, 0xe7, 0x1e, 0x4b, 0x01, 0xe7, 0x1f, 0x01,
							 /* 0110 */	0x01, 0xf7, 0x1c, 0x60, 0x01, 0xf7, 0x1d, 0x71,
							 /* 0118 */	0x01, 0xf7, 0x1e, 0xcb, 0x01, 0xf7, 0x1f, 0x01
						 },

 

My SoundAssertion error is:

 

Sound assertion "0 != setupHostInterface()" failed in "/SourceCache/AppleHDA/AppleHDA-168.1.3/AppleHDAController/AppleHDAController.cpp" at line 255 goto Exit1

 

Thanks for your help so far kizwan.

Link to comment
Share on other sites

@Black Night,

I'm not familiar with that error. Did you installed ACPIFIX (patched ACPI kexts)? There is almost similar error that caused by ACPIFIX, please refer to post #344.

 

kizwan

 

I'm using a fully vanilla 10.5.7 except for ATIRadeonX2000.kext, AppleSMBIOS.kext, AppleDecrypt, AppleATIATA, AppleOnboardPCATA, IONetworking, Natit, OpenHaltRestart, and RealtekR1000.kext.

 

I didn't install the ACPIFIX at all.

 

Black Knight

Link to comment
Share on other sites

you just have to look into the 10.5.7 applehda controller and you'll find a new entry called like your sound assertion, copy it into your patched kext and you'll solve it

and where should that be plzZzz?

entry you mean in the info.plist?

give directions cause :P:)

 

p.s. : did anybody with AD1998B try the new voodoohda.kext?

http://code.google.com/p/voodoohda/

i did not have luck with loading it

a lot of errors at boot and after boot it added like 5,6 outputs+inputs in the mixer with digits and ## 001 mic .. .

but in the hardware info there was no audio, and also their pref.panel wouldn't work

comes with an error: "cannot map memory"

then i tried to load it with hdaenabler together and other combination but again with no luck

how should i load it?

 

right now my method is :

vanilla 10.5.7 applehda.kext in S/L/E

and in Extra/extensions : AD1988b.HDA.FIX.kext , hdaenabler.kext

 

so?

Link to comment
Share on other sites

 Share

×
×
  • Create New...