Jump to content

[HOW TO] Patch AppleHDA - Knowledge Base


THe KiNG
 Share

392 posts in this topic

Recommended Posts

hy the king!

i'm writing after a while!

then.. now i've a boot clean and right

it's vanilla.. with efi (in the pen) and mbr in hdd.

both boots fine

with the second kext you gave us.. me and others are happy to tell you that with

efi string in boot.plist

2f0100000100000001000000230100000700000002010c00d041030a0000000001010600001b7fff
4001c0000007200650076006900730069006f006e002d00690064000000080000000100000028000
00500069006e0043006f006e00660069006700750072006100740069006f006e0073000000040000
018000000760065006e0064006f0072002d0069006400000008000000868000002c0000007300750
6200730079007300740065006d002d00760065006e0064006f0072002d0069006400000008000000
81400001e000000730075006200730079007300740065006d002d006900640000000800000002a00
00180000006c00610079006f00750074002d00690064000000080000000c00000016000000620075
069006c0074002d0069006e0000000500000000

 

and your kext we've external frontal audio out.. and frontal mic in working!

the strangness is that the lateral purple mic in is not working.. and hp out didn't switch automatically if you plug in the jack

other little thing (i think i can do myself the modify) is that the gain of the mic is very low.

 

thanks.

I'm writing you to thanks for your precious work!!!

 

'night

ugo

Link to comment
Share on other sites

Hi, The King. I`ve got my audio card fully working using the Legacy method. But unfortuNately I got sound assertions at boot up. I wanna do it using the inject DSDT way, but I`m not sure how to get the DSDT.aml(donno from Linux or DSDT Patcher). I also donno where the DSDT.aml located in the Leopard. Sorry I`m totally a noob. I did search about the DSDT stuff but I don`t wanna flash my BIOS `cause it works well with 10.5.6 update. I just wanna get the sound working in a flawless way. B.T.W I did a retail install, I find the sleep doesn`t work. Any idea to hack? Seems you are a hero now helping pepole solve their sound problem. :(

Link to comment
Share on other sites

hy the king!

i'm writing after a while!

then.. now i've a boot clean and right

it's vanilla.. with efi (in the pen) and mbr in hdd.

both boots fine

with the second kext you gave us.. me and others are happy to tell you that with

efi string in boot.plist

--------

Glad to hear that! ;)

Now that you finally have a retail install I think we can fix that acer codec 100%

AFAIK I don't have much time atm to play with it and this will last at least 1 month, so try to fix it and if you can't I will help you when I get some free time.

One tip dont use efi strings or dsdt injection until codec is 100% fixed b/c you may get into the situation that u have something injected on efi/dsdt and something else in the kext and that for sure can lead to problems...

 

Hi, The King. I`ve got my audio card fully working using the Legacy method. But unfortuNately I got sound assertions at boot up.

That mean is not fixed 100%

DSDT injection will not fix your sound assertions errors...

Fix your codec proper!

And you are in a forum that have plenty of guides about DSDT, search and learn.

Link to comment
Share on other sites

Hi, the King. Thanks forur reply. I got the sound assertion solved. But I have a q

 

Hi, the King. Thanks forur reply. I got the sound assertion solved. But I have a question. Do I have to install Ubuntu to get my Dsdt and get patched with the DSDT Patcher? I`m not sure about it and dunno how to get my DSDT and patched since the DSDT Patch guide in the forum is very brief. Can u give some detailed instruction about it, it`ll be very helpful.

B.T.W my laptop`s brightness function key in the Ubuntu is not working and it gets dim when starts up. So I don`t think the DSDT get from it will solve the broblem. I just wanna patch the sleep and sound now.

Here is my sleep problem.

in my case the machine perfectly tries to go to sleep, but it wakes up immediately, so no sleep. maybe its just a delay problem. i cannot change in bios powermanagement a delay ( some configs offer that).

 

Here comes my system log about sound assertions.

 

Apr  6 18:02:10 localhost kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-162.1.37/AppleHDA/AppleHDAPath.cpp" at line 1175 goto Exit
Apr  6 18:02:10 localhost kernel[0]: Sound assertion "0 != pathSet->getWidgetAmplifierGainRange ( &zeroValue, &minValue, &maxValue, &minDB, &maxDB, kPATH_CONTROL_SPATIAL_CHANNELID_Master )" failed in "/SourceCache/AppleHDA/AppleHDA-162.1.37/AppleHDA/AppleHDAEngine.cpp" at line 266 goto handler
Apr  6 18:02:10 localhost kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-162.1.37/AppleHDA/AppleHDAPath.cpp" at line 1175 goto Exit
Apr  6 18:02:10 localhost kernel[0]: Sound assertion "0 != pathSet->getWidgetAmplifierGainRange ( &zeroValue, &minValue, &maxValue, &minDB, &maxDB, kPATH_CONTROL_SPATIAL_CHANNELID_Master )" failed in "/SourceCache/AppleHDA/AppleHDA-162.1.37/AppleHDA/AppleHDAEngine.cpp" at line 266 goto handler

 

I`ve delete the string of DspGainStage but the error still shows up. Any idea,man?

Link to comment
Share on other sites

That mean is not fixed 100%

DSDT injection will not fix your sound assertions errors...

Fix your codec proper!

And you are in a forum that have plenty of guides about DSDT, search and learn.

 

ok mister! well .. mee too. next week i'll do little easter vacations..

 

good

 

i'll erase efi string.. now i have retail s/l/e and e/e with last beautiful chemeleon..

except for some errors in sound assertion..

 

the Archivio.zip

in our italian topic contain your last kext corrected by nobb1x that

-has 3 out/2 input

 

out is frontal/hp/digital

frontal ok

hp ok but don't switch automatically

digital don't know

 

in has mic int (frontal) and line in

i think (i'm not sure) that mic in frontal is parallel with mic on jack purple..

 

 

then.. did you think that we can wake up our bottom speakers and subwooker?

 

consider that for us it important to have frontal mic working (now it is but low gain)

min 1 spkeaker working (and it is but a little minibump every time you opena a sound loke system events!)

 

maybe a lot of sound assertion error on boot can damage the listening and decetcion of the real hw ?

 

thanks

bye

Link to comment
Share on other sites

ok mister! well .. mee too. next week i'll do little easter vacations..

----

out is frontal/hp/digital

frontal ok

hp ok but don't switch automatically

digital don't know

 

in has mic int (frontal) and line in

i think (i'm not sure) that mic in frontal is parallel with mic on jack purple..

then.. did you think that we can wake up our bottom speakers and subwooker?

 

----

Uploaded a new test for u based on that archive(is same sh*t I did but splitted in 2 plugins, if you like it like that no problem for me)

Test it and report if the switch works on intmic/extmic and intspk/hp

Will see about the sub and back spk later.

ArchivioEdited.zip

Link to comment
Share on other sites

Hi All

I'm at first steps to get my terrible (cmi9800) old sound work.

seems, that I followed all steps, but when reboot got

4/8/09 3:33:36 PM kernel HDA.kext failed to load: unable to locate 'layout-id' property.

message.

So, does someone let me know, where should I digg to?

P.S. I'm pretty sure, thay I place layout id = 12 (0c) in all places, where it suppose to be placed

Link to comment
Share on other sites

hello the king

i notify you that for me and ido82 the last attachment doesn't work. it say at -v boot that applehdacontroller can't be loaded.

 

then

we remain that we use the prevoius.. and.. good easter eggs!!!

Link to comment
Share on other sites

4/8/09 3:33:36 PM kernel HDA.kext failed to load: unable to locate 'layout-id' property.

---

Post the kext to see what you did.

 

hello the king

i notify you that for me and ido82 the last attachment doesn't work. it say at -v boot that applehdacontroller can't be loaded.

 

then

we remain that we use the prevoius.. and.. good easter eggs!!!

Weird...

Thanks for you too! :wacko:

Link to comment
Share on other sites

here it is

codec_dump.txt

cmi9880.txt.svg

AppleHDA.kext

That kext is damn OLD! And is a mess on it!

Read the guide, clean up the mess and do it proper, I don't have time to navigate from *n entry...

Link to comment
Share on other sites

Here's attached my ( Asus P5Q ) ALC1200 codec dump.

 

I'm trying to create a working a driver...

 

Is there an agreement on what to do with 71d Misc values that are >1 ?

 

I've come across a couple of codec dumps that have alternate values such as 6, 8, and c in that field.

 

I can guess what to do but I'm trying to help automate the verb conversion process with a script.

 

Sample:

--------------------------------------------------------------------------------------------------------
Verbs from Linux Codec Dump
--------------------------------------------------------------------------------------------------------
Codec: Realtek ALC1200
Address: 0
Vendor Id: 0x10ec0888
Subsystem Id: 0x104382fe
Revision Id: 0x100101

Jack   Color  Description				  Node	 PinDefault				 Verbs
--------------------------------------------------------------------------------------------------------
  ATAPI Unknown  SPDIF Out at Int ATAPI	  17 0x11   0x99430140   01171c40 01171d01 01171e43 01171f99
 1/8   Green  Line Out at Ext Rear		20 0x14   0x01014010   01471c10 01471d40 01471e01 01471f01
 1/8   Black  Line Out at Ext Rear		21 0x15   0x01011012   01571c10 01571d10 01571e01 01571f01
 1/8  Orange  Line Out at Ext Rear		22 0x16   0x01016011   01671c10 01671d60 01671e01 01671f01
 1/8	Grey  Line Out at Ext Rear		23 0x17   0x01012014   01771c10 01771d20 01771e01 01771f01
 1/8	Pink  Mic at Ext Rear			 24 0x18   0x01a19850   01871c50 01871d98 01871ea1 01871f01
 1/8	Pink  Mic at Ext Front			25 0x19   0x02a19c60   01971c60 01971d9c 01971ea1 01971f02
 1/8	Blue  Line In at Ext Rear		 26 0x1a   0x0181305f   01a71c50 01a71d30 01a71e81 01a71f01
 1/8   Green  HP Out at Ext Front		 27 0x1b   0x02214c20   01b71c20 01b71d4c 01b71e21 01b71f02
  ATAPI Unknown  CD at Int ATAPI			 28 0x1c   0x593301f0   01c71cf0 01c71d01 01c71e33 01c71f59
Optical   White  Speaker at Ext N/A		  29 0x1d   0x4015e601   01d71c00 01d71de6 01d71e15 01d71f40
Optical  Orange  SPDIF Out at Ext Rear	   30 0x1e   0x01456130   01e71c30 01e71d61 01e71e45 01e71f01
 1/8   Black  Speaker at Ext Rear		 31 0x1f   0x411111f0   01f71cf0 01f71d11 01f71e11 01f71f41
--------------------------------------------------------------------------------------------------------

 

I'm forcing Sequence to 0 and have the idea on what to do for port/location.

Just wanted to find out about these "high" values for Misc as they do cause assertion errors.

 

<01171c40 01171d01 01171e43 01171f99 01471c10 01471d40 01471e01 01471f01 01571c10 01571d10 01571e01 01571f01 01671c10 01671d60 01671e01 01671f01 01771c10 01771d20 01771e01 01771f01 01871c50 01871d98 01871ea1 01871f01 01971c60 01971d9c 01971ea1 01971f02 01a71c50 01a71d30 01a71e81 01a71f01 01b71c20 01b71d4c 01b71e21 01b71f02 01c71cf0 01c71d01 01c71e33 01c71f59 01d71c00 01d71de6 01d71e15 01d71f40 01e71c30 01e71d61 01e71e45 01e71f01 01f71cf0 01f71d11 01f71e11 01f71f41>

 

0x3a3e8086

Did you get a driver??

ALC1200dump.txt

Link to comment
Share on other sites

Hi, the KING. I still don`t know how to fix these sound assertion. And I found using the Leagcy kexts make the sound reaction slower while I change the volume. Can u give me a guide of how to zap the assertions, man? I saw u post the similar problem in the StickPin`s guide. So u`ve figured out by the help of the French guy, can u share the trick with me? :D

Link to comment
Share on other sites

Here's attached my ( Asus P5Q ) ALC1200 codec dump.

 

I'm trying to create a working a driver...

<01171c40 01171d01 01171e43 01171f99 01471c10 01471d40 01471e01 01471f01 01571c10 01571d10 01571e01 01571f01 01671c10 01671d60 01671e01 01671f01 01771c10 01771d20 01771e01 01771f01 01871c50 01871d98 01871ea1 01871f01 01971c60 01971d9c 01971ea1 01971f02 01a71c50 01a71d30 01a71e81 01a71f01 01b71c20 01b71d4c 01b71e21 01b71f02 01c71cf0 01c71d01 01c71e33 01c71f59 01d71c00 01d71de6 01d71e15 01d71f40 01e71c30 01e71d61 01e71e45 01e71f01 01f71cf0 01f71d11 01f71e11 01f71f41>

 

0x3a3e8086

Did you get a driver??

For Misc: if is iinternal connection then is 1(no jack detection also) if is a jack/externla then is allway 0(jack detect also)

 

Hi, the KING. I still don`t know how to fix these sound assertion. And I found using the Leagcy kexts make the sound reaction slower while I change the volume. Can u give me a guide of how to zap the assertions, man? I saw u post the similar problem in the StickPin`s guide. So u`ve figured out by the help of the French guy, can u share the trick with me? :P

Dunno what you say about the french guy...

Anyway I have some personal stuff to take care atm.

After one month or more I will rewrite the guide, it will be more detailed and explicit(n00b proof)

Try to figure out by yourself or wait for the new guide...

Link to comment
Share on other sites

Sure, no problem. I've also attached my Hex linux dump for the CX20549

thanks a million for sharing this awesome file!

i've been looking for it for a really loooooooooooong time, i will test it soon and reply the result.

again thx so much!

Link to comment
Share on other sites

Hi THe KiNG,

 

Do you have any idea what this error mean?

kernel[0]: Sound assertion "0 != setupHostInterrupt ()" failed in "/SourceCache/AppleHDA/AppleHDA-162.1.37/AppleHDAController/AppleHDAController.cpp" at line 253 goto Exit

 

Thank you.

 

EDIT: Never mind, this error occurs if ACPIFIX installed.

 

kizwan

Link to comment
Share on other sites

Great work sofar!

 

AD 1988b new plist only kext + hdaenabler.kext

on asus p5ke wifi ap

 

10.5.6 was needed, thats the first thing I noticed. The following stuff is working.

 

GOOD

builtin speaker: green

line out:orange

line out: black

 

BROKEN

front panel headphone "switch" is working Internal > Headphone, but no sound is coming out of the headphones.

removing the headphone will give audio back to built-in speakers

 

not able to test:

microphone or line in, no devices for that around

 

When 10.5.7 is released I will go for DSDT solution.

Link to comment
Share on other sites

Great work sofar!

 

AD 1988b new plist only kext + hdaenabler.kext

on asus p5ke wifi ap

 

10.5.6 was needed, thats the first thing I noticed. The following stuff is working.

 

GOOD

builtin speaker: green

line out:orange

line out: black

 

BROKEN

front panel headphone "switch" is working Internal > Headphone, but no sound is coming out of the headphones.

removing the headphone will give audio back to built-in speakers

 

not able to test:

microphone or line in, no devices for that around

 

When 10.5.7 is released I will go for DSDT solution.

I have no front panel to test, ordered 2 and both was AC97(chinese sh*t) ;)

I need to change my case or to buy a dedicated fp hd audio, afaik is not avail here...w/o the case so...cant test sorry

For sure front mic works since I was able to test it, w/o the proper cable and jacks(tried to modd those i have w/o luck) i cant fix headphones.

You have 2 choices wait for me to save some money for a new case with hd audio front panel or fix it by yourself... :)

Link to comment
Share on other sites

I have tried out the experimental VoodooHDA.kext on my Asus P5N32-E SLI Plus MOBO with Asus SupremeFX Audio Card (with AD1988b audio codec).....see here or here.....with Sound Preferences and Audio MIDI Setup screen-shots.....

 

No Built-in Audio shows up in System Profiler......

 

Rear sound-out ports working on Analog PCM #0: and Front sound-out ports working on Analog PCM #1:.......volume adjusted via Master or PCM.......autoswitching between ports is not working....

 

Sound Input ports and Digital PCM #2: have not been tested.......

Link to comment
Share on other sites

Thanks for the quick reply, I will not be for a while again at this pc, so fixing it myself will not hapen in a month or three...

 

dmesg:

14-04-09 17:40:41 kernel Sound assertion "0 != setupHostInterface()" failed in "/SourceCache/AppleHDA/AppleHDA-162.1.37/AppleHDAController/AppleHDAController.cpp" at line 238 goto Exit1

A/AppleHDA-162.1.37/AppleHDA/AppleHDAPath.cpp" at line 697 goto Exit

 

activity monitor:

update-Removed the multibridge driver and coreaudio seems responding again...

""and I have CoreAudio notrespondig but the music keeps playing, think that its the BMD multibridge driver... I will ditch it.""

 

btw I also have HD2600Xt from ati, which has hdmi audio capability, can they conflict?

Link to comment
Share on other sites

I have tried out the experimental VoodooHDA.kext on my Asus P5N32-E SLI Plus MOBO with Asus SupremeFX Audio Card (with AD1988b audio codec).....see here or here.....with Sound Preferences and Audio MIDI Setup screen-shots.....

 

No Built-in Audio shows up in System Profiler......

 

Rear sound-out ports working on Analog PCM #0: and Front sound-out ports working on Analog PCM #1:.......volume adjusted via Master or PCM.......autoswitching between ports is not working....

 

Sound Input ports and Digital PCM #2: have not been tested.......

 

Sorry I'm not supporting voodoohda, is not my work and you have dedicated place for it...

Thanks for the quick reply, I will not be for a while again at this pc, so fixing it myself will not hapen in a month or three...

 

dmesg:

14-04-09 17:40:41 kernel Sound assertion "0 != setupHostInterface()" failed in "/SourceCache/AppleHDA/AppleHDA-162.1.37/AppleHDAController/AppleHDAController.cpp" at line 238 goto Exit1

A/AppleHDA-162.1.37/AppleHDA/AppleHDAPath.cpp" at line 697 goto Exit

 

activity monitor:

update-Removed the multibridge driver and coreaudio seems responding again...

""and I have CoreAudio notrespondig but the music keeps playing, think that its the BMD multibridge driver... I will ditch it.""

 

btw I also have HD2600Xt from ati, which has hdmi audio capability, can they conflict?

No problem with ATI is ignored...

Always test on a clean install...

Link to comment
Share on other sites

 Share

×
×
  • Create New...