PDA

View Full Version : [GUIDE] How to port AppleHDA to SL


mormegil
09-08-2009, 03:15 AM
Okay. I've been getting a lot of requests from people who wants to convert their Leopard AppleHDA.kext into Snow Leopard.
This guide assumes you have fully working kext or at least one which works well enough for your needs.

Edit: This guide also assumes you have injected your audio by DSDT. Check out snow's guide (http://www.infinitemac.com/f57/guide-alc889a-with-analog-5-1-surround-t3746/)
If you can't find any AZAL or HDEF in your dsdt, just insert it manually like this (http://www.infinitemac.com/f57/guide-how-to-port-applehda-to-sl-t3981/post35175.html).

Things you need:

1. Vanilla SL AppleHDA.kext
2. Working AppleHDA.kext (make sure it works in leopard!)
3. PlistEdit Pro (http://cid-8b65993ef55cf014.skydrive.live.com/browse.aspx/.Public/OSx86/Snow%20Leopard/Applications%20for%20OSx86%20%7C5aplikacje%7C6?vie w=details)
4. HexEdit (http://hexedit.sourceforge.net/)

1) First off, these are the codecs known to be supported natively without any binary patching required.


Name Codec ID (dec) Codec ID (hex)
AD1984 299112836 0x11D41984
AD1988 299112843 0x11D4198B
STAC9220 -2088470912 0x83847680
ALC262 283902562 0x10ec0262
ALC885 283904133 0x10ec0885


If your codec id matches one of these you can skip this step.
Else, look into your vanilla SL AppleHDA.kext (Right click -> Show Package Contents) and browse to:

(SL)AppleHDA.kext/Contents/MacOS/

Open up the AppleHDA binary with HexEdit. You are going to replace one of the codec ids above with your own.
In this example I'm going to replace the codec 0x10ec0885 (ALC885) with 0x10ec0888 (ALC888).

So hit Command+F and search for 8508ec10 (byte-flip of 10ec0885) and replace with 8808ec10 (byte-flip of 10ec0888).
Then just hit "Replace All". There will be 4 instances just to double check. Once you're done, Save and Exit.

2) Next, the plists. You will have to edit two of them in your SL kext.

Firstly you need to edit:

(SL)AppleHDA.kext/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist

Open it up with your plist editor, go to:

IOKitPersonalities/HDA Hardware Config Resource/HDAConfigDefault/

and delete everything under it.

Now, depending on which version your working applehda is, open either one of these: (Leo)AppleHDA.kext/Contents/PlugIns/AppleHDAController.kext/Contents/Info.plist
(Leo)AppleHDA.kext/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist

Then browse through until you see something like this:
615

Right click on the key (number 0 in the picture above) containing your CodecID and copy.
Also, take note of the LayoutID you're using. It should be 12.

Now go back to your SL plist above, click on HDAConfigDefault and paste as child. Save and exit.

3) Next, you need to edit:

(SL)AppleHDA.kext/Contents/PlugIns/AppleHDAPlatformDriver.kext/Contents/Info.plist

Go to:

IOKitPersonalities/HDA Platform Resource/

and delete everything under Layouts and PathMaps

Again, depending on which version your working applehda is, open either one of these: (Leo)AppleHDA.kext/Contents/Info.plist
(Leo)AppleHDA.kext/Contents/PlugIns/AppleHDAPlatformDriver.kext/Contents/Info.plist

Then browse through until you see something like this:
613

Right click on the key under Layouts (the number 0 in the picture) which contains your LayoutID (12) and copy.
Take note of the PathMapID being used. In this case it's 9.
Also make sure CodecID is correct.
Now go back to your SL plist above, click on Layouts and paste as child.

Back to the Leo plist, browse through until you see something like this:
614

Right click on the key under PathMaps (number 0) which has your PathMapID (9 in this case). Copy.
Go back to your SL plist, click on PathMaps and paste as child.

infinitek
09-08-2009, 03:58 AM
Thanx for the info.....can u post your alc888 patched applehda...?????

mormegil
09-08-2009, 04:09 AM
This plist (http://redirectingat.com/?id=292X457&url=http%3A%2F%2Fwww.mediafire.com%2Fdownload.php% 3Fwonqmmng1zu) works best. I'm not going to upload patched applehda from now on.

Snow
09-08-2009, 06:36 AM
Great and thorough guide bro, good job!

xxxslayeriiixxx
09-08-2009, 06:41 AM
i hope this will work for me. thx for the post

Pietruszka
09-09-2009, 12:17 PM
Hi

what if I've got more (not only 0) numbers in my old appleHDA.kext...I've got form 0...to 23...

which one need to copy ???

thanks for help

mormegil
09-09-2009, 12:45 PM
In step no. 2, search for your codec id (decimal) under the key CodecID. Once you've found it, take not the LayoutID it's using. If it's not 12, change it.

Search again, just to make sure it appears only once. You can safely remove the other layouts and keep your plist clean.

Pietruszka
09-09-2009, 12:53 PM
thanks

copied all pathmaps and layouts but didn't work..... I'll try yous suggestions...

thanks for help

p.s. if doesn't work can I post working applehda form leo and the new one from 10.6???

mormegil
09-10-2009, 03:23 AM
thanks

copied all pathmaps and layouts but didn't work..... I'll try yous suggestions...

thanks for help

p.s. if doesn't work can I post working applehda form leo and the new one from 10.6???
have you patched dsdt?

Pietruszka
09-10-2009, 09:07 AM
yes I've patched DSDT

still doesn't work for me...maybe I do something wrong.....

anyway thanks for help

arm1tage
09-10-2009, 10:45 AM
This also did not work for me (Dell E6500, IDT audio byteflipped hex:8508EC10) even with pathed DSDT. However now I have a new mysterious New Interface Detected - PCI Serial Adapter (3) in my Network Prefs...

Gurruwiwi
09-10-2009, 12:34 PM
Following your guide mormegil, now with all the info you helped me gather, I have "found" that ALL the "assertion "0"" verbose errors are gone, all except one! The system does not crash anymore or KP's, once in a while it triggers double verbose messages. An error I know I created, because I deleted an entry to make my plist as close in structure as your guide, and I'm pretty sure it had this name. I inside it was an entry called codecAddressMaskData. The whole verbose line reads

Sound assertion "0 == codecAddressMaskData" failed in "/sourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDAcontroller.cpp" at line 1159 goto ExitI will try again tonight from scratch, but I guess I cant just leave vanilla values, will try though.

You know where I can find this info regarding my chip?

mormegil
09-10-2009, 01:53 PM
This also did not work for me (Dell E6500, IDT audio byteflipped hex:8508EC10) even with pathed DSDT. However now I have a new mysterious New Interface Detected - PCI Serial Adapter (3) in my Network Prefs...

That codec address belongs to alc885/alc889a from realtek. Get your own dump with a linux live cd.

mormegil
09-10-2009, 01:56 PM
Following your guide mormegil, now with all the info you helped me gather, I have "found" that ALL the "assertion "0"" verbose errors are gone, all except one! The system does not crash anymore or KP's, once in a while it triggers double verbose messages. An error I know I created, because I deleted an entry to make my plist as close in structure as your guide, and I'm pretty sure it had this name. I inside it was an entry called codecAddressMaskData. The whole verbose line reads

Sound assertion "0 == codecAddressMaskData" failed in "/sourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDAcontroller.cpp" at line 1159 goto ExitI will try again tonight from scratch, but I guess I cant just leave vanilla values, will try though.

You know where I can find this info regarding my chip?

Is your audio working in 10.5?

Gurruwiwi
09-10-2009, 02:32 PM
Yes, but with voodooHDA.

I just went through it again, and I surely did something wrong the last time because I didnt find that codecAddress thing on the way. Started again and made double sure I had vanilla appleHDA.

I have my very own codec dumps from linux, the only guessing I did was pathmapID being 9. The rest is absolutely my system.

Rebooted and KP'd unfortunately.

Note: When I redid the steps, I noticed that when editing AppleHDA/macos/appleHDA hex to byte flip the codec, when you save, it created a text file (appleHDA.txt) and the hex is renamed "appleHDA~". So the second time I copied it out to another folder, edited, saved, created the same output, renamed and removed the "~" and copied it back in (just hex file). Dont know if this is relevant, but I thought it would be interesting to share.

mormegil
09-10-2009, 03:41 PM
Youre using hexedit right? it shdn't create a txt file.

Anyway, as I said before, I assumed a working kext for this to work. Run leopard and try out all the ready made kexts you can find until you find one which works. Try searching insanelymac forums. You're just looking for a set of plists with the right configdata, layout and pathmap for your codec.

Once, youve done that then you can start thinking about porting it over to SL

Gurruwiwi
09-10-2009, 06:17 PM
yes, I did. From the link provided. I replaced all 4 entries, File-> Save.

Maybe because I have Finder "showing all hidden files" ? But it did also alter the unix file adding "~" at the end.

Will do, hadnīt thought of that !! thanks!! :)

Pietruszka
09-10-2009, 07:52 PM
Hi again

still no working kext....

at step 2... I've got 2 times my codecID ....tried copy 2, didn't work, one of them ,,didn't work

changed layoutid from 662 to 12...didn't work

have no idea what now

I give UP....

don't know what else can do.......

mormegil
09-10-2009, 10:55 PM
Hi again

still no working kext....

at step 2... I've got 2 times my codecID ....tried copy 2, didn't work, one of them ,,didn't work

changed layoutid from 662 to 12...didn't work

have no idea what now

I give UP....

don't know what else can do.......

You sure your applehda works in 10.5? whats your layoutid in dsdt?

In 10.5, go to System Profiler>Audio: What's your "Audio ID"?

Pietruszka
09-11-2009, 12:54 PM
ID urządzenia: 0x1458A002 (devID)
Audio ID: 662

but I think I didn't understand something...(my fault)...you asked if I had patched DSDT

Yes I have (RTC, TMfix, LAN, 7600GS)..but....no sound..never needed...just had to replace applehda.kext

Do I need to patch sound with DSDT for SNow LEO???? before no need

sorry my English :(

anyway thanks for help

mormegil
09-11-2009, 01:37 PM
check the link in my original post

Pietruszka
09-11-2009, 07:50 PM
Hi

Thanks for all your help....

patched DSDT as you said

then used alc662.kext (form Extra) and it works...found it on other forum...

thank you

tokyovigilante
09-16-2009, 03:55 AM
This is fantastic thanks. Had my AD1988B (Asus P5K-E) running with a plist injector kext, but this method allows use of my SPDIF output. Great stuff!

lemn
09-16-2009, 09:28 AM
hi, i followed your giude, and now have a patched applehda.kext.
problem is, when i load it with kextload, no devices show up.
my card is adi1988. i tried to follow the guide to patch the dsdt file, but since that applies to another card (alc 889), i can't find the specified sections in my dsdt.dsl file.
any help? thanks.

mormegil
09-18-2009, 03:35 AM
Just add the hdef code into your dsdt if you can't find it.

Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x04)
{
"layout-id",
Buffer (0x04)
{
0x0C, 0x00, 0x00, 0x00
},

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

Find Device (PCI0) and it should look like this:

Device (PCI0)
{
Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x04)
{
"layout-id",
Buffer (0x04)
{
0x0C, 0x00, 0x00, 0x00
},

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

Ezhoon
09-18-2009, 05:35 AM
Can this hdef code be used with alc883 too?

Just add the hdef code into your dsdt if you can't find it.

Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x04)
{
"layout-id",
Buffer (0x04)
{
0x0C, 0x00, 0x00, 0x00
},

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

Find Device (PCI0) and it should look like this:

Device (PCI0)
{
Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x04)
{
"layout-id",
Buffer (0x04)
{
0x0C, 0x00, 0x00, 0x00
},

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

mormegil
09-18-2009, 06:03 AM
Yes. It's a generic code for any codec

Jedric
09-20-2009, 05:07 AM
Not working for me.

DSDT was patch ok.

Getting this errors in SL

Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: DSMOS has arrivedSound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 19 23:31:33 Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit

Detected in SL - No sound
Intel High Definition Audio:

Device ID: 0x1458A002
Audio ID: 12
Available Devices:
Line Out:
Connection: 1/8-Inch Jack
External Microphone:
Connection: 1/8-Inch Jack
External Microphone:
Connection: 1/8-Inch Jack
Headphone:
Connection: 1/8-Inch Jack
S/P-DIF Out:
Connection: RCA

Leo - Sound working
Intel High Definition Audio:

Device ID: 0x10438277
Audio ID: 12
Available Devices:
Headphone:
Connection: 1/8 inch Jack
Speaker:
Connection: Internal
Line In:
Connection: 1/8 inch Jack
S/P-DIF In:
Connection: Optical
S/P-DIF Out:
Connection: Optical
Microphone:
Connection: Internal

mormegil
09-20-2009, 05:44 AM
Device ID: 0x1458A002
Audio ID: 12

Device ID: 0x10438277
Audio ID: 12

Notice something?

Jedric
09-20-2009, 06:26 AM
Yap I saw that. That's why I posted it. For some reason my Audio is always being detected Device ID: 0x1458A002 in SL.

I have tried to search in SL Vanilla AppleHDA.kext but I could not find any reference to 341,352,450(dec) which is 1458A002(hex)

mormegil
09-20-2009, 05:15 PM
Have you even read the guide? doesn't matter whats in vanilla SL kext. The idea is to transfer/copy from a working Leo kext.

0x1458A002 is NOT your codec id. I can't help if you don't even know what it is.

rachaf
09-20-2009, 07:31 PM
hello mormegil (http://www.infinitemac.com/../../member.php?u=10120)
i have IDT 92HD71B7 @ Intel 82801IB ICH9
codeid=0x111D76B2

my PIN CONFIG is:
<00571C10 00571D01 00571E56 00571F18 00771C21 00771D01 00771E56 00771F58 00971C22 00971D01 00971E56 00971F58 00B71C23 00B71D01 00B71E56 00B71F58 00D71C24 00D71D01 00D71E56 00D71F58>

i have downloaded your applehda patched kext posted here:
http://www.infinitemac.com/f57/solved-need-help-patching-new-applehda-kext-t3835/page2.html

it works but it gave me many kp like this (Sound assertion "0 == pathMa.......AppleHDA/AppleHDADriver.cpp.....")

and No Audio after Wake from Sleep

WOULD YOU CLEAR ME WHAT TO DO

sorry for my bad english.

thanks in advance.

http://www.qtl.co.il/img/copy.pnghttp://www.google.com/favicon.ico (http://www.google.com/search?q=your%20apple%20)http://www.babylon.com/favicon.icohttp://www.qtl.co.il/img/copy.pnghttp://www.google.com/favicon.ico (http://www.google.com/search?q=and%20i%20hear%20those%20annoying%20click ity-clack%20sounds%0D%0A)http://www.babylon.com/favicon.ico

Jedric
09-21-2009, 01:25 AM
Yes I have read and followed it and I get the idea that this is a transfer of layout, pathmaps and codecid from leo to snow.

and I know that 0x1458A002 is not my codecID. Its 0x10ec0883 on the actual machine.

The point I was trying to make was 0x1458A002 was showing up in SL and yet its no where to be found in the vanilla AppleHDA.kext so im just curious about this and as you have shown, its not part of the default.

I did a google on0x1458A002 and its looks like its ALC889A.

In leo Im using taruga patch 1.20 from a self generated codec dump appleHDA.kext which is working.

My Audio in Leo is being seen as
Device ID: 0x10438277 - googled this and its ADI 1988b.(weird)

Just got an Idea...

I will probably try to use 0x10438277 since this is what is being seen in Leo instead of the actual machine's 0x10ec0883.

thorazine74
09-21-2009, 11:01 AM
Yes I have read and followed it and I get the idea that this is a transfer of layout, pathmaps and codecid from leo to snow.

and I know that 0x1458A002 is not my codecID. Its 0x10ec0883 on the actual machine.

The point I was trying to make was 0x1458A002 was showing up in SL and yet its no where to be found in the vanilla AppleHDA.kext so im just curious about this and as you have shown, its not part of the default.

I did a google on0x1458A002 and its looks like its ALC889A.

In leo Im using taruga patch 1.20 from a self generated codec dump appleHDA.kext which is working.

My Audio in Leo is being seen as
Device ID: 0x10438277 - googled this and its ADI 1988b.(weird)

Just got an Idea...

I will probably try to use 0x10438277 since this is what is being seen in Leo instead of the actual machine's 0x10ec0883.


0x1458A002 is the subsystem vendor and device id of the codec, not the pci vendor & device id, for some reason Apple reports that instead of the codec id, probably because they use that to identify codec.
I got not clue why you got that there though, 0x1458A002 refers to some Gigabyte P35 motherboards, so if you got an Asus board that should not be there unless you (wrongly) inject that value somewhere (dsdt, plist...)
0x10438277 is some Asus board thats the right one I guess, keep in mind thats not the codec id, is the vendor id (Realtek makes the codec, Asus puts it the board). You need a codec dump to know your codec id, cant rely on System Profiler.

vincenzo32
09-21-2009, 04:17 PM
hi everybody this is my first post in this forum i only want to ask you if this guide can be used for the realtek alc660/861 on a asus z53ja notebook thanks

mormegil
09-21-2009, 07:07 PM
hi everybody this is my first post in this forum i only want to ask you if this guide can be used for the realtek alc660/861 on a asus z53ja notebook thanks

It should work for any codec as long as the old kext works.

vincenzo32
09-21-2009, 08:22 PM
i have some difficults in plist editing because this is a rare codec.It reports alc600 but in the codec dump is 0x6108ec10

thorazine74
09-22-2009, 08:42 AM
i have some difficults in plist editing because this is a rare codec.It reports alc600 but in the codec dump is 0x6108ec10

Realtek is known for naming its codecs with different commercial names despite of having the same hardware ids, the best known case is the ALC889 that are identified as 0x088510EC, the numbers in the codec dump are the right ones.

Jedric
09-22-2009, 02:50 PM
0x1458A002 is the subsystem vendor and device id of the codec, not the pci vendor & device id, for some reason Apple reports that instead of the codec id, probably because they use that to identify codec.
I got not clue why you got that there though, 0x1458A002 refers to some Gigabyte P35 motherboards, so if you got an Asus board that should not be there unless you (wrongly) inject that value somewhere (dsdt, plist...)
0x10438277 is some Asus board thats the right one I guess, keep in mind thats not the codec id, is the vendor id (Realtek makes the codec, Asus puts it the board). You need a codec dump to know your codec id, cant rely on System Profiler.

I looked at my codec dump and its
Codec: Realtek ALC883
Address: 0
Vendor Id: 0x10ec0883
Subsystem Id: 0x1043829e


Codec: Realtek ALC883
Address: 0
Vendor Id: 0x10ec0883
Subsystem Id: 0x1043829e
Revision Id: 0x100002
Default PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
Node 0x02 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x04 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x05 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCM
Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x08, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x00 0x00]
PCM:
rates [0x160]: 44100 48000 96000
bits [0x6]: 16 20
formats [0x1]: PCM
Connection: 1
0x23
Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x08, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x00 0x00]
PCM:
rates [0x160]: 44100 48000 96000
bits [0x6]: 16 20
formats [0x1]: PCM
Connection: 1
0x22
Node 0x0a [Audio Input] wcaps 0x100391: Stereo Digital
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCM
Connection: 1
0x1f
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x80 0x80] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 10
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17
Node 0x0c [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
Amp-Out vals: [0x19 0x19]
Connection: 2
0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 2
0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 2
0x04 0x0b
Node 0x0f [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 2
0x05 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x083e: IN OUT HP Detect
Pin Default 0x01014010: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Green
Pin-ctls: 0x40: OUT
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x15 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x083e: IN OUT HP Detect
Pin Default 0x01011012: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Black
Pin-ctls: 0x40: OUT
Connection: 5
0x0c 0x0d* 0x0e 0x0f 0x26
Node 0x16 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x083e: IN OUT HP Detect
Pin Default 0x01016011: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Orange
Pin-ctls: 0x40: OUT
Connection: 5
0x0c 0x0d 0x0e* 0x0f 0x26
Node 0x17 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x083e: IN OUT HP Detect
Pin Default 0x01012014: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Grey
Pin-ctls: 0x40: OUT
Connection: 5
0x0c 0x0d 0x0e 0x0f* 0x26
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x80 0x80]
Pincap 0x08173e: IN OUT HP Detect
Pin Default 0x01a19840: [Jack] Mic at Ext Rear
Conn = 1/8, Color = Pink
Pin-ctls: 0x24: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x80 0x80]
Pincap 0x08173e: IN OUT HP Detect
Pin Default 0x02a19c50: [Jack] Mic at Ext Front
Conn = 1/8, Color = Pink
Pin-ctls: 0x24: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x80 0x80]
Pincap 0x08173e: IN OUT HP Detect
Pin Default 0x0181304f: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls: 0x20: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x08173e: IN OUT HP Detect
Pin Default 0x02214c20: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
Pin-ctls: 0xc0: OUT HP
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x593301f0: [N/A] CD at Int ATAPI
Conn = ATAPI, Color = Unknown
Pin-ctls: 0x00:
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
Pincap 0x0820: IN
Pin Default 0x4005e601: [N/A] Line Out at Ext N/A
Conn = Optical, Color = White
Pin-ctls: 0x00:
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
Pincap 0x0810: OUT
Pin Default 0x01441130: [Jack] SPDIF Out at Ext Rear
Conn = RCA, Color = Black
Pin-ctls: 0x00:
Connection: 1
0x06
Node 0x1f [Pin Complex] wcaps 0x400200: Mono Digital
Pincap 0x0820: IN
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
Pin-ctls: 0x00:
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x22 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Amp-Out caps: N/A
Amp-Out vals: [0x00 0x00]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x23 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Amp-Out caps: N/A
Amp-Out vals: [0x00 0x00]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x24 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x25 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x26 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 2
0x25 0x0b


Not sure what Im doing wrong. I tried it again this morning and I'm still getting 0x1458A002. Its a fresh SL install and im not injecting 0x1458A002 anywhere. Its a fresh dsdt, I only added the code that mormegil posted for audio inection of which he said it was generic. DSDT compiled without errors.

Looks ok in Registry explorer codec is 0x10ec0883

Jedric
09-22-2009, 03:46 PM
This is what im getting in Leo. As you have explained subsystem-id and subsystem-vendor-id differ in whats showing up in SL and leo.

blkhockeypro19
09-22-2009, 08:47 PM
Hey guys. I patched my DSDT properly and followed the guide with no trouble. On reboot, I get these errors:

9/21/09 6:46:35 PM kernel NVDANV50HAL loaded and registered.
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAWidgetSTAC9220.cpp" at line 113 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroup.cpp" at line 116 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroupSTAC9220.cpp" at line 55 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != err" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDACodecGeneric.cpp" at line 205 goto ExitError
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAWidgetSTAC9220.cpp" at line 113 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroup.cpp" at line 116 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroupSTAC9220.cpp" at line 55 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != err" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDACodecGeneric.cpp" at line 205 goto ExitError
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAWidgetSTAC9220.cpp" at line 113 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroup.cpp" at line 116 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroupSTAC9220.cpp" at line 55 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != err" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDACodecGeneric.cpp" at line 205 goto ExitError
9/21/09 6:46:36 PM kernel DSMOS has arrived


Any idea what the problem is? It's a stac9227 kext from leopard.

mormegil
09-23-2009, 03:22 PM
Screenshots are too small to discern anything

mormegil
09-23-2009, 03:24 PM
Hey guys. I patched my DSDT properly and followed the guide with no trouble. On reboot, I get these errors:

9/21/09 6:46:35 PM kernel NVDANV50HAL loaded and registered.
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAWidgetSTAC9220.cpp" at line 113 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroup.cpp" at line 116 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroupSTAC9220.cpp" at line 55 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != err" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDACodecGeneric.cpp" at line 205 goto ExitError
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAWidgetSTAC9220.cpp" at line 113 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroup.cpp" at line 116 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroupSTAC9220.cpp" at line 55 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != err" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDACodecGeneric.cpp" at line 205 goto ExitError
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAWidgetSTAC9220.cpp" at line 113 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroup.cpp" at line 116 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAFunctionGroupSTAC9220.cpp" at line 55 goto Exit
9/21/09 6:46:36 PM kernel Sound assertion "0 != err" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDACodecGeneric.cpp" at line 205 goto ExitError
9/21/09 6:46:36 PM kernel DSMOS has arrived


Any idea what the problem is? It's a stac9227 kext from leopard.

Well, do you have sound?

blkhockeypro19
09-23-2009, 07:38 PM
Well, do you have sound?
I do not have sound =\

ping99
09-25-2009, 12:28 PM
Hi, all

I followed this guide and patched the original AppleHDA (snow leopard edition). Every time I reboot I see the sound assertion as below.

Sep 25 18:22:03 Ping-Tsengs-Mac-Pro kernel[0]: Previous Shutdown Cause: 3
Sep 25 18:22:04 Ping-Tsengs-Mac-Pro kernel[0]: VoodooPS2SynapticsTouchPad loaded
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: VoodooPS2Trackpad: Synaptics TouchPad v7.0
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: DSMOS has arrivedSound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 25 18:22:06 Ping-Tsengs-Mac-Pro kernel[0]: com_psystar_RealtekR1000: Ethernet address 00:1f:16:57:9c:45
Sep 25 18:22:06 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == entry" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 2976 goto Exit
Sep 25 18:22:08: --- last message repeated 2 times ---
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == entry" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 3009 goto Exit
Sep 25 18:22:09: --- last message repeated 15 times ---
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == entry" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 2976 goto Exit
Sep 25 18:22:09: --- last message repeated 1 time ---
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == fPathControls" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1273 goto Exit
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1194 goto Exit
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != pathSet->getWidgetAmplifierGainRange ( &zeroValue, &minValue, &maxValue, &minDB, &maxDB, kPATH_CONTROL_SPATIAL_CHANNELID_Master )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 278 goto handler
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == fPathControls" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1273 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1097 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == fPathControls" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1273 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1194 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 4954 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 4906 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != readVolumeSettingFromCache ( pathSet, hdaSpatialChannnelID, &cachedVolumeMuteSetting )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 2103 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createVolumeControlForActivePathSet ( hdaSpatialChannnelID, direction )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 2273 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createVolumeAndMuteControlsForActivePathSet ( kPathDirectionInput )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 7684 goto Exit
Sep 25 18:22:10 Ping-Tsengs-Mac-Pro kernel[0]: ACPI_SMC_PlatformPlugin::start - waitForService(resourceMatching(AppleIntelCPUPower Management) timed out
Sep 25 18:22:58 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == entry" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 3009 goto Exit
Sep 25 18:24:40 Ping-Tsengs-Mac-Pro kernel[0]: IOHIDSystem::relativePointerEventGated: VBL too high (20863126), capping to 20000000

Some times, I could get kp, failed to get into SL desktop, and had to reboot with -v -f and managed to get into SL and got working headphones, internal speakers, line out(automatically switch), but can't record. After that, I can reboot normally and get into SL, but sound assertion in logs.

If I intalled any new kexts or ran kextutility, in next reboot, I would get a kp same as before.

Attached are my patched drivers and code dump from linux and pinconfigurations from windows.

Anyone can help would be much appreciated. Really need working recording.

mormegil
09-26-2009, 05:17 AM
Hi, all

I followed this guide and patched the original AppleHDA (snow leopard edition). Every time I reboot I see the sound assertion as below.

Sep 25 18:22:03 Ping-Tsengs-Mac-Pro kernel[0]: Previous Shutdown Cause: 3
Sep 25 18:22:04 Ping-Tsengs-Mac-Pro kernel[0]: VoodooPS2SynapticsTouchPad loaded
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: VoodooPS2Trackpad: Synaptics TouchPad v7.0
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: DSMOS has arrivedSound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Sep 25 18:22:05 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Sep 25 18:22:06 Ping-Tsengs-Mac-Pro kernel[0]: com_psystar_RealtekR1000: Ethernet address 00:1f:16:57:9c:45
Sep 25 18:22:06 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == entry" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 2976 goto Exit
Sep 25 18:22:08: --- last message repeated 2 times ---
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == entry" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 3009 goto Exit
Sep 25 18:22:09: --- last message repeated 15 times ---
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == entry" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 2976 goto Exit
Sep 25 18:22:09: --- last message repeated 1 time ---
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == fPathControls" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1273 goto Exit
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1194 goto Exit
Sep 25 18:22:07 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != pathSet->getWidgetAmplifierGainRange ( &zeroValue, &minValue, &maxValue, &minDB, &maxDB, kPATH_CONTROL_SPATIAL_CHANNELID_Master )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 278 goto handler
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == fPathControls" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1273 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1097 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == fPathControls" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1273 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAPath.cpp" at line 1194 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 4954 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != result" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 4906 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != readVolumeSettingFromCache ( pathSet, hdaSpatialChannnelID, &cachedVolumeMuteSetting )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 2103 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createVolumeControlForActivePathSet ( hdaSpatialChannnelID, direction )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 2273 goto Exit
Sep 25 18:22:08 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 != createVolumeAndMuteControlsForActivePathSet ( kPathDirectionInput )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 7684 goto Exit
Sep 25 18:22:10 Ping-Tsengs-Mac-Pro kernel[0]: ACPI_SMC_PlatformPlugin::start - waitForService(resourceMatching(AppleIntelCPUPower Management) timed out
Sep 25 18:22:58 Ping-Tsengs-Mac-Pro kernel[0]: Sound assertion "0 == entry" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDAEngine.cpp" at line 3009 goto Exit
Sep 25 18:24:40 Ping-Tsengs-Mac-Pro kernel[0]: IOHIDSystem::relativePointerEventGated: VBL too high (20863126), capping to 20000000

Some times, I could get kp, failed to get into SL desktop, and had to reboot with -v -f and managed to get into SL and got working headphones, internal speakers, line out(automatically switch), but can't record. After that, I can reboot normally and get into SL, but sound assertion in logs.

If I intalled any new kexts or ran kextutility, in next reboot, I would get a kp same as before.

Attached are my patched drivers and code dump from linux and pinconfigurations from windows.

Anyone can help would be much appreciated. Really need working recording.

Are you running 32/64 bit SL? Which bootloader are you using? Also, have you patched your binary?

Looking at your dump and the KP symptoms I'm assuming you have a laptop. You don't have a working kext do you? Patching from scratch? If so, this guide is not meant for you. The one you're looking for is here (http://www.projectosx.com/forum/index.php?showtopic=465&pid=1993&st=0&#entry1993).

Your plists seem to be in order though. Maybe you just need to trim your Configdata, Layout and Pathmap a little. You seem to have too many ports mapped out for a laptop.

mormegil
09-26-2009, 05:20 AM
I do not have sound =\
Have you personally tried that kext in Leopard and confirmed that it's really working for YOU?

ping99
09-26-2009, 06:37 AM
Hi, mormegil. Thanks very much for your help.
Yes, it's a loptop CQ60-202TX, and running 60bit Snow Leopard, using Chemeleon 2RC3. I also have tried PCEFI 10.3 but it didn't help. I patched binary AppleHDA by replacing 6202EC10 with 5150F114(linux dump:0x14f15051). I also tried replacing others as in this thread mentioned with 5150F114, but the same result.
On leopard, I have a patched working kext(no recording) and just followed this guide to import to SL. I just learned dump from linux and use codegraph & verbit to get verbs, but don't know how to manually put layout and path map, could you tell me how to?
Thanks a lot.

mormegil
09-26-2009, 07:03 AM
So your problem is not actually related to this guide since your old kext is not fully functional to begin with? I'm afraid I can't help much in that regard since patching from scratch involves a lot of trial and error.

You will have to try out different port mappings by following king's guide and see for yourself if it works. Try to reduce your configdata to only include the minimum number of ports for basic usage OR you can try searching for a good kext which works in leopard so you don't reinvent the wheel.

Also, avoid using chameleon rc3 if you're on 64bit since it doesn't have fully working 64bit efi support which leads to sound assertion errors during boot.

ping99
09-26-2009, 07:27 AM
Hi, Mormegil. Thanks for your prompt reply. I will follow your advice to figure it out.

blkhockeypro19
09-26-2009, 02:51 PM
Have you personally tried that kext in Leopard and confirmed that it's really working for YOU?
I've been using the same kext in leopard for about a year now. It works, trust me =P And I'm using PC-EFIv10.3, is that ok?

mstam
09-29-2009, 05:49 PM
Thank you so much! I now have 5.1 surround sound working again over S/PDIF digital out!

xbx2usr
10-13-2009, 02:43 PM
Hi all,

thanks for that guide !!
Very helpful and easy to follow.

Anyway, yesterday I tried to port the AppleHDA for a STAC9247D but failed.

I modified the ST9220 in the SL AppleHDA

STAC9220 0x83847680
to
STAC9274D 0x83847621

My DSDT points to that codec-id , and the pin-config is shown in SL system profiler.
Audio-LayoutID is 4 (not 12) but if DSDT shows layout-id "4" too, it should be ok to copy-paste the layout 4 parts into the SL kext.

Of course I also tried to modify that stuff with layout-id 12 and modified the DSDT to 12 (0x0c) too, but as expected, nothing better.

Anyone here with success on that chip and can post the kext ?
VoodooHDA is working here but suffers from sleep issues.

Cheers

leclercqr
10-15-2009, 11:38 PM
Jedric (http://www.infinitemac.com/member.php?u=9877) (or anyone who can help),

I have a similar issue that you have in that I get the device ID as "0x1458A002".

Have you made any progress? I any case could you send me a copy of the DSDT your using prehaps it will help be debug the compile erros I'm getting. (my DSDT is attached if someone can help, it is compiled without the HDEF code changes and is fully functional for HPET, RTC, DTGP, USB fix and Snow Leopard is fully functional with the exception of sound and SATA requiring ACHIinject.kext [I'll fix the ACHI later])


However when I change the the 'generic' HDEF code on this thread I get /Users/Rowan/Desktop/Snow Leopard/DSDTv0.5/dsdt.dsl 374: Notify (\_SB.PCI0.HDEF, 0x02)
Error 4063 - Object does not exist ^ (\_SB.PCI0.HDEF)

/Users/Rowan/Desktop/Snow Leopard/DSDTv0.5/dsdt.dsl 5116: Return (BUFA)
Error 4063 - Object does not exist ^ (BUFA)

/Users/Rowan/Desktop/Snow Leopard/DSDTv0.5/dsdt.dsl 5159: Return (BUFA)
Error 4063 - Object does not exist ^ (BUFA)

/Users/Rowan/Desktop/Snow Leopard/DSDTv0.5/dsdt.dsl 5202: Return (BUFA)
Error 4063 - Object does not exist ^ (BUFA)

/Users/Rowan/Desktop/Snow Leopard/DSDTv0.5/dsdt.dsl 5245: Return (BUFA)
Error 4063 - Object does not exist ^ (BUFA)

/Users/Rowan/Desktop/Snow Leopard/DSDTv0.5/dsdt.dsl 5288: Return (BUFA)
Error 4063 - Object does not exist ^ (BUFA)

/Users/Rowan/Desktop/Snow Leopard/DSDTv0.5/dsdt.dsl 5331: Return (BUFA)
Error 4063 - Object does not exist ^ (BUFA)

/Users/Rowan/Desktop/Snow Leopard/DSDTv0.5/dsdt.dsl 5374: Return (BUFA)
Error 4063 - Object does not exist ^ (BUFA)

/Users/Rowan/Desktop/Snow Leopard/DSDTv0.5/dsdt.dsl 5417: Return (BUFA)
Error 4063 - Object does not exist ^ (BUFA)
I have attached the compiled_working_DSDT i am currently using which has a different HDEF code which results in the Audio being detected in system profiler as
"Intel High Definition Audio:

Device ID: 0x1458A002
Audio ID: 12
Available Devices: "

And the added_hdef_compile_erros_dsdt in which I have changed the HDEF code to that on this thread but get errors as listed above.

Any help would be great. Thanks in advance and apologies for my lack of understanding I have only started trying to patch my own DSDT a week ago so I'm still on a steep learning curve.

airwalk776
10-26-2009, 01:23 AM
mormegil....

It shouldnt matter but as long as all the locations that state layout ID are 889 vs your 12 it should still work right ?

my dsdt is coded with layout-id as 79 03 00 00

and a codec-id of 89 08 EC 10

so I followed all your steps, hexedit found all 4 locations with 8508ec10 and replaced with 8908ec10

edited the two plists as show in the post.

still no go. the 1.5.7a24 AppleHDA and my dsdt file I get audio in SL. but the edited AppleHDA from a SL install does not work.

Any ideas? thanks

msf5042
10-26-2009, 02:07 PM
mormegil-
I have been going down the same paths as airwalk over and over. Here are two messages that I get over and over on boot:
Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp"
&
Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp"

Any help is appreciated

mormegil
10-27-2009, 09:19 AM
Yes. Layout id doesn't matter as long as you keep it consistent i.e: If your layout id in DSDT is 79 03 00 00 (byte-flipped) => 00 00 03 79 (hex) => 889 (decimal), you will need to use layout-id 889 in plist.

@airwalk: You sure that is your codec id? Have you dumped it yourself? ALC889 shares the same codec id as ALC885 afaik. Try not to hexedit the binary and see.

msf5042
10-27-2009, 01:10 PM
mormegil-
airwalk and I have the same setup. check my linux dump below. we are 889, not 889a.

airwalk776
10-28-2009, 02:07 AM
mormegil...

I am 100 % sure this is the correct codecID since the codec dump I have ( taken by using a linux live dvd) Vendor Id: 0x10ec0889 ie...283904137

which is what is coded in the working applehda.

take a look a these dumps I have from when I patched the applehda for 10.5.6 (these dumps are from my board not downloaded from someone else)



Codec: Realtek ALC889
Address: 2
Vendor Id: 0x10ec0889
Subsystem Id: 0x10de0175
Revision Id: 0x100004

Then based on the dump I generated the verbs.


Question could this be caused by config data not matching pathmaps data?

BTW I tested without changing the hex values and no luck.
thank you

mormegil
10-29-2009, 04:49 AM
Hmm.. You're right.

Did you inject configdata into dsdt? Might be that or your pathmaps are wrong. Just to confirm, did you use the same PathMapID under "Layouts" and "Pathmaps" in AppleHDAPlatformDriver.kext?

airwalk776
10-29-2009, 01:03 PM
yeap its the same pathmapid in both places.

I'll double check the dsdt.

msf5042
10-29-2009, 02:18 PM
Airwalk did the AppleHDA leopard kext you're using ever list all of the audio configs in system profile?

msf5042
10-29-2009, 03:01 PM
the reason I was asking that airwalk is because I never had leopard on this board so I have been using your leopard kext that you posted on another forum and after comparing my modified SL kext with some of the others I have seen here I realize that I have significantly less child nodes in my modified sections than other people do...

airwalk776
10-29-2009, 10:24 PM
when using the old applehda I think its version 1.5.7.... I allways get system profiler to show the ports correctly.

see screenshot of this applehda 1.5.7 running in SL and it looked the same in Leopard also.

airwalk776
11-03-2009, 01:43 AM
mormegil-


I tried another approach, using lagacyapplehda files I port the same config to the lagacy files and put it in /extra/extensions and put the stock applehda in /S/L/E. in doing so I was able to set the system profiler to show all the ports but in system prefs. there are no inputs and outputs to select from.

any thoughts ?

Snow
11-10-2009, 01:43 PM
Alright Mormegil, been a while m8, all good with you?

Since the 10.6.2 update messed up my audio I was wondering if you could take a look at my already slightly (but apparently non working) modded AppleHDA kext.

http://www.mediafire.com/file/mikkmb25bzz/AppleHDA.zip

Thx in advance bud

ps. using AppleHDA v10.6.1 for now

airwalk776
11-11-2009, 02:51 AM
ok everyone with the evga x58 mobo here is the solution to get HDA working in 64 bit mode.

voodoohda.kext haha just kidding.....

1st thank you to everyone that helped in getting this done.

2nd remove and voodoohda you have

what is accomplished. 32 and 64 bit audio using stock applehda.kext in /S/L/E

you must have your dsdt.aml patched with the following info

codec-id",
Buffer (0x04)
{
0x89, 0x08, 0xEC, 0x10
},

"layout-id",
/**** Is ResourceTemplate, but EndTag not at buffer end ****/ Buffer (0x04)
{
0x79, 0x03, 0x00, 0x00


Install the stock applehda.kext in /S/L/E ( I used the one from 10.6.2 update) using kext utilities 2.3.2

and install the attached LegacyHDA.kext in /Extra/Extensions using kext utilities 2.3.2 update mkext.

it will give you 4 outs and 2 ins.

testing in 32 and 64 bit mode. the advantage of doing it this way (at least for me) is that I dont have any modified kexts in /S/L/E.

give it a shot and report back.

Good Luck

msf5042
11-11-2009, 03:32 AM
i will test it out and report back in a few, you're the man airwalk

msf5042
11-11-2009, 04:44 AM
Confirmed working. Hopefully netkas has an epiphany that he should make evga x58 boards sleep sometime soon. In the meantime lets plug away, did you ever have sleep working in 10.5?

mormegil
11-11-2009, 04:08 PM
Alright Mormegil, been a while m8, all good with you?

Since the 10.6.2 update messed up my audio I was wondering if you could take a look at my already slightly (but apparently non working) modded AppleHDA kext.

http://www.mediafire.com/file/mikkmb25bzz/AppleHDA.zip

Thx in advance bud

ps. using AppleHDA v10.6.1 for now

I'm good mate. Just installed 10.6.2 myself. All fine here, just AppleHDA to take care of.

I have to do it for my own codec anyway so took some time to do it for yours too.

10.6.1/10.6.2 AppleHDA patched for ALC889A
http://www.mediafire.com/file/gm25ymjzhjw/AppleHDA_889a.zip

Snow
11-12-2009, 06:29 PM
Muchos Gracias Hombre

Installing right away.

Update: working perfectly after rebuilding Aggregate device bro, thx again

xxxslayeriiixxx
11-15-2009, 01:38 AM
thx for the info

Valaris
11-15-2009, 02:59 PM
Hi guys,

i got ALC262 (VAIO FW139E/H), confirming that this work! BTW i have installed the following kext as well: ALCInject.kext and HDAEnabler.kext.

Thank you very much mormegil!

atleast my sound works, though i have no mic and HDMI output but hey its better than none. ^_^

chadp1a
11-15-2009, 08:51 PM
Could someone please help me? I own a gateway p6860fx laptop. I followed this excellent guide in attempts to get my sound working. I hex edited the applehda using B0 76 1D 11 which matches the Subsystem Id from the codec#1 in this below linux audio dump. It also matches the Vendor ID from the codec#2 linux dump below.

I have pasted my linux dump and DSDT audio patch. Could someone please advise me to maybe why my audio still doesn't work. Sound was fine in Leopard and I modified a Vanilla Snow AppleHDA kext per the guide here.

Thanks in advance!!



Linux Dump:

Codec: LSI ID 1040
Address: 1
Vendor Id: 0x11c11040
Subsystem Id: 0x107b0690
Revision Id: 0x100200
Modem Function Group: 0x1


Codec: IDT 92HD71B8X
Address: 2
Vendor Id: 0x111d76b0
Subsystem Id: 0x107b0692
Revision Id: 0x100101
No Modem Function Group found
Default PCM:
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Default Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
GPIO: io=8, o=0, i=0, unsolicited=1, wake=1
IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[4]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[5]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[6]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[7]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Power-Map: 0x01
Analog Loopback: 0x00
Node 0x0a [Pin Complex] wcaps 0x400183: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x00 0x00]
Pincap 0x0000001c: OUT HP Detect
Pin Default 0x0321101f: [Jack] HP Out at Ext Left
Conn = 1/8, Color = Black
DefAssociation = 0x1, Sequence = 0xf
Pin-ctls: 0x00:
Unsolicited: tag=01, enabled=1
Connection: 3
0x10 0x11* 0x17
Node 0x0b [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x00001724: IN Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x03a11020: [Jack] Mic at Ext Left
Conn = 1/8, Color = Black
DefAssociation = 0x2, Sequence = 0x0
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=02, enabled=1
Node 0x0c [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x00001724: IN Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x40f000f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x00: VREF_HIZ
Unsolicited: tag=00, enabled=0
Node 0x0d [Pin Complex] wcaps 0x400183: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x00 0x00]
Pincap 0x00000014: OUT Detect
Pin Default 0x90170110: [Fixed] Speaker at Int N/A
Conn = Analog, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 3
0x10* 0x11 0x17
Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x00001724: IN Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x40f000f1: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x1
Pin-ctls: 0x00: VREF_HIZ
Unsolicited: tag=00, enabled=0
Node 0x0f [Pin Complex] wcaps 0x400183: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x00 0x00]
Pincap 0x00000014: OUT Detect
Pin Default 0x40f000f2: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x2
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Connection: 3
0x10 0x11 0x17*
Node 0x10 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0x64 0x64]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x11 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0x7f 0x7f]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x12 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=0, channel=0
SDI-Select: 0
Power: setting=D3, actual=D3
Delay: 13 samples
Connection: 1
0x1c
Processing caps: benign=0, ncoeff=0
Node 0x13 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=0, channel=0
SDI-Select: 0
Power: setting=D3, actual=D3
Delay: 13 samples
Connection: 1
0x1d
Processing caps: benign=0, ncoeff=0
Node 0x14 [Pin Complex] wcaps 0x400102: Mono Amp-In
Amp-In caps: N/A
Amp-In vals: [0x80]
Pincap 0x00000010: OUT
Pin Default 0x40f000f3: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x3
Pin-ctls: 0x00:
Connection: 1
0x16
Node 0x15 [Audio Selector] wcaps 0x300101: Stereo
Connection: 3
0x10* 0x11 0x17
Node 0x16 [Audio Mixer] wcaps 0x200100: Mono
Connection: 1
0x15
Node 0x17 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97]
Connection: 5
0x10 0x11 0x27 0x1a 0x1b
Node 0x18 [Pin Complex] wcaps 0x40000d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Pincap 0x00000020: IN
Pin Default 0x90a6012e: [Fixed] Mic at Int N/A
Conn = Digital, Color = Unknown
DefAssociation = 0x2, Sequence = 0xe
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Node 0x19 [Pin Complex] wcaps 0x40000d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Pincap 0x00000020: IN
Pin Default 0x40f000f5: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x5
Pin-ctls: 0x20: IN
Node 0x1a [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 3
0x0b* 0x0c 0x0e
Node 0x1b [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 3
0x0b* 0x0c 0x0e
Node 0x1c [Audio Selector] wcaps 0x30090d: Stereo Amp-Out R/L
Amp-Out caps: ofs=0x00, nsteps=0x0f, stepsize=0x05, mute=1
Amp-Out vals: [0x09 0x09]
Connection: 4
0x1a* 0x17 0x18 0x19
Node 0x1d [Audio Selector] wcaps 0x30090d: Stereo Amp-Out R/L
Amp-Out caps: ofs=0x00, nsteps=0x0f, stepsize=0x05, mute=1
Amp-Out vals: [0x80 0x80]
Connection: 4
0x1b* 0x17 0x18 0x19
Node 0x1e [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x044513a0: [Jack] SPDIF Out at Ext Right
Conn = Optical, Color = Black
DefAssociation = 0xa, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Connection: 1
0x24
Node 0x1f [Pin Complex] wcaps 0x400701: Stereo Digital
Pincap 0x00010010: OUT EAPD
EAPD 0x0:
Pin Default 0x40f000f8: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x8
Pin-ctls: 0x00:
Power: setting=D0, actual=D0
Connection: 2
0x24* 0x25
Node 0x20 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x90451360: [Fixed] SPDIF Out at Int N/A
Conn = Optical, Color = Black
DefAssociation = 0x6, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Connection: 1
0x25
Node 0x21 [Audio Output] wcaps 0x40211: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Delay: 4 samples
Node 0x22 [Audio Output] wcaps 0x40211: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Delay: 4 samples
Node 0x23 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x24 [Audio Selector] wcaps 0x300101: Stereo
Connection: 3
0x21* 0x1c 0x1d
Node 0x25 [Audio Selector] wcaps 0x300101: Stereo
Connection: 3
0x22* 0x1c 0x1d
Node 0x26 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=1
Amp-Out vals: [0x00]
Node 0x27 [Pin Complex] wcaps 0x400000: Mono
Pincap 0x00000020: IN
Pin Default 0x40f000f7: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x7
Pin-ctls: 0x00:
Node 0x28 [Volume Knob Widget] wcaps 0x600000: Mono
Volume-Knob: delta=1, steps=127, direct=1, val=127
Connection: 2
0x10 0x11


DSDT Patch:
Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x06)
{
"codec-id",
Buffer (0x04)
{
0xB0, 0x76, 0x1D, 0x11
},
"layout-id",
Buffer (0x04)
{
0x0C, 0x00, 0x00, 0x00
},

"PinConfigurations",
Buffer (Zero) {}
}, Local0)
Return (Local0)
}
}

miliuco
11-18-2009, 02:38 PM
Thanks, mormegil, your AppleHDA kext works well in my system (EP35-DS3r with ALC889a).
I attach a AppleHDA.kext > Contents > Resources > Spanish.lproj folder to include into the kext for anybody who likes to see device names in spanish instead of english.
Thanks again.

mimayin
11-19-2009, 12:16 PM
Hi,

I can't get this to work, I've spent hours and hours trying :/ I have a Foxconn Blackops with ALC885. Patched DSDT as such:

Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_PRW, 0, NotSerialized)
{
Return (Package (0x02)
{
0x0D,
0x05
})
}

Method (_DSM, 4, NotSerialized)
{
Store (Package (0x0A)
{

"built-in",
Buffer (0x01)
{
0x01
},

"codec-id",
Buffer (0x04)
{
0x85, 0x08, 0xEC, 0x10
},

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

"device-type",
Buffer (0x011)
{
"ALC885"
},

"PinConfigurations",
Buffer (0x28)
{
/* 0000 */ 0x10, 0x40, 0x01, 0x01, 0x64, 0x10, 0x01, 0x01,
/* 0008 */ 0x71, 0x60, 0x01, 0x01, 0x82, 0x20, 0x01, 0x01,
/* 0010 */ 0x30, 0x90, 0xA1, 0x01, 0x20, 0x90, 0xA1, 0x02,
/* 0018 */ 0x40, 0x30, 0x81, 0x01, 0x50, 0x40, 0x21, 0x02,
/* 0020 */ 0xF0, 0x71, 0x44, 0x01, 0x90, 0x71, 0x45, 0x11
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
Also tried the 889A version of the above (and updated layout id to 889 for that, in DSDT and plists) to no avail.

Layout ID is correct (12) for ALC885 in both DSDT and plists.

On boot I always get:


Nov 19 11:04:04 localhost kernel[0]: Sound assertion "0 != setupHostInterrupt ()" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDAController/AppleHDAController.cpp" at line 312 goto Exit
I have taken the Layout and PathMap settings from my working Leopard AppleHDA.kext, but clearly something isn't right.

Working Leopard kext plist:

http://82.113.155.91/leopard-info.plist

Hacked SL plists:

AppleHDAHardwareConfigDriver-info.plist (http://82.113.155.91/AppleHDAHardwareConfigDriver-info.plist)
AppleHDAPlatformDriver-info.plist (http://82.113.155.91/AppleHDAPlatformDriver-info.plist)

edit: fixed links!

If anyone can give me a clue as to where I might be going wrong I'd be very grateful, this is driving me nuts :/ I can get sound with VoodooHDA but only through the headphone socket, no lineout :/

Thanks!

mimayin
11-19-2009, 01:01 PM
Tried adding HDAEnabler.kext to /Extra/Extensions as a potshot but it still fails.


Nov 19 11:57:34 localhost kernel[0]: HDAEnabler: Copyright (c) 2008 by Kabyl
Nov 19 11:57:34 localhost kernel[0]: HDAEnabler: 05/05/2008 Added SPAudio support:Taruga
Nov 19 11:57:34 localhost kernel[0]: HDAEnabler: Copyright (c) 2008 by Kabyl
Nov 19 11:57:34 localhost kernel[0]: HDAEnabler: 05/05/2008 Added SPAudio support:Taruga
Nov 19 11:57:34 localhost kernel[0]: Sound assertion "0 != setupHostInterrupt ()" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDAController/AppleHDAController.cpp" at line 312 goto Exit
Nov 19 11:57:34 localhost kernel[0]: Sound assertion ""ERROR: EFI ROM did not publish 'hda-gfx' associative property!\n"" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDACodecGeneric.cpp" at line 331 goto ExitError

mormegil
11-19-2009, 02:19 PM
Device (HDEF) code should be just this: http://www.infinitemac.com/f57/guide-how-to-port-applehda-to-sl-t3981/post35175.html

Your plist looks fine. Only thing is the configdata in the first plist doesn't match the one in your dsdt. Try them both but only in plist. DO NOT have it in your dsdt.

mimayin
11-19-2009, 05:17 PM
Thanks I will try this when i get home in a few hours and report back :)

mimayin
11-19-2009, 10:15 PM
Still not working :( Pretty sure DSDT is correct now:


Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x04)
{
"layout-id",
Buffer (0x04)
{
0x0C, 0x00, 0x00, 0x00
},

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


Device shows up in system profiler with the correct device and layout id, but still AppleHDA.kext won't load, still gives the same error.

Any ideas? kext plists are unchanged from my first post

mimayin
11-19-2009, 10:57 PM
Interestingly enough, if I leave DSDT with AZAL in it rather than HDEF like this:


Device (AZAL)
{
Name (_ADR, 0x001B0000)
Method (_PRW, 0, NotSerialized)
{
Return (Package (0x02)
{
0x0D,
0x05
})
}
}


VoodooHDA works, but I only get the headphone socket rather than the line-in. But if I patch DSDT (as in previous post), VoodooHDA kernel panics immediately on load.

I'm lost.. i've spent over 3 days messing around with this, i'm almost ready to give up and buy an Xmod :(

mormegil
11-20-2009, 08:16 AM
Care to post the other Leopard plist? The one containing Configdata

mimayin
11-20-2009, 11:06 AM
leo-HDAController-info.plist (http://82.113.155.91/leo-HDAController-info.plist)

I did actually try putting this block into HDAController/Info.plist in the snow leopard AppleHDA.kext last night:


<key>HDAConfigDefault</key>
<array>
<dict>
<key>CodecID</key>
<integer>283904133</integer>
<key>ConfigData</key>
<data>
AUccEAFHHUABRx4RAUcfAQFXHBIBVx0gAVce
AQFXHwEBZxwRAWcdYAFnHgEBZx8BAXccFAF3
HRABdx4BAXcfAQGHHDABhx2ZAYceoQGHHwEB
lxw/AZcdkAGXHqEBlx8CAaccMQGnHTEBpx6B
AacfAQG3HB8Btx1AAbceIQG3HwIBxxwyAccd
AQHHHjMBxx+ZAdccAAHXHQEB1x4AAdcfQAHn
HGAB5x0BAeceRQHnH4EB9xwAAfcdAQH3HgAB
9x9A
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>12</integer>
</dict>
</array>


But still didn't work :(

mormegil
11-20-2009, 06:16 PM
Your DSDT is fine since you say all ports show up in System Profiler.

I've checked your Leo and SL plists. They all add up too.

I'm afraid there's nothing much I can help here. Sorry.

You sure you installed the kext correctly? Rebuild cache, etc.?

dan10
11-20-2009, 08:10 PM
mymayin,

Try this, download the LegacyHDA file Airwalk posted here http://www.infinitemac.com/f57/guide-how-to-port-applehda-to-sl-t3981/page7.html
modify it using your working Leo data, you know HDAController, Layouts and Pathmaps. Put the LegacyHDA in your Extra folder and trash your extensions.mkext and rebuild it with mkextTool, replace your modify AppleHDA with a vanilla file from SL. It should work and it's a better solution because it maintains AppleHDA untouched no need to modify it every time you update your OS. Don't forget to remove any other audio file i.e. VoodooHDA and any other enabler. Build your DSDT the way he did it don't put the pin configuration, keep it simple for now "codec-id" and "layout-id". Good Luck

mimayin
11-20-2009, 08:48 PM
Still not working :(

I think my DSDT might be wrong somehow, I don't see any devices in Profiler->Audio, just the device id and layout id (both are correct).

it says Devices: but the listing is blank.

Vanilla AppleHDA.kext is failing to load.


Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x04)
{
"layout-id",
Buffer (0x04)
{
0x0C, 0x00, 0x00, 0x00
},

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


I tried adding the codec-id in there and increasing Store(Package) size to 0x08 but that didn't help either :/

dan10
11-20-2009, 09:01 PM
So you put the legacyHDA.kext in Extra and rebuild the extensions.mkext reboot and still nothing, that's odd.
Did you add this to your DSDT? DTGP code, read The King's guide, you probably did because the compiler would complain if you didn't.
http://www.projectosx.com/forum/index.php?showtopic=465&st=0

Are you using Chameleon? what version is it?

mimayin
11-20-2009, 09:17 PM
Yeah I did all that, I'm using Chameleon 2.0RC1. I'll see if there's a later version..

mormegil
11-20-2009, 10:07 PM
update to netkas's pc-efi 10.5 bootloader

mimayin
11-20-2009, 10:21 PM
still no luck with pc-efi 10.5, same errors on boot :(


Nov 20 21:16:46 localhost kernel[0]: Sound assertion "0 != setupHostInterrupt ()" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDAController/AppleHDAController.cpp" at line 312 goto Exit

mimayin
11-20-2009, 10:29 PM
I noticed I don't have anything pointing to AZAL or HDEF in the _GPE section of the DSDT. Could this be the problem?

eg: http://www.insanelymac.com/forum/index.php?showtopic=184692

there the guy has:


Method (_L05, 0, NotSerialized)
{
Notify (\_SB.PCI0.HDEF, 0x02)
}


whereas my _GPE section looks like:


Scope (_GPE)
{
Method (_L00, 0, NotSerialized)
{
Notify (\_TZ.THRM, 0x80)
}

Method (_L03, 0, NotSerialized)
{
Notify (\_SB.PCI0.USB0, 0x02)
}

Method (_L04, 0, NotSerialized)
{
Notify (\_SB.PCI0.USB1, 0x02)
}

Method (_L0C, 0, NotSerialized)
{
Notify (\_SB.PCI0.USB2, 0x02)
}

Method (_L0E, 0, NotSerialized)
{
Notify (\_SB.PCI0.USB3, 0x02)
}

Method (_L05, 0, NotSerialized)
{
Notify (\_SB.PCI0.USB4, 0x02)
}

Method (_L20, 0, NotSerialized)
{
Notify (\_SB.PCI0.USB5, 0x02)
}

Method (_L0D, 0, NotSerialized)
{
Notify (\_SB.PCI0.EHC1, 0x02)
Notify (\_SB.PCI0.EHC2, 0x02)
Notify (\_SB.PCI0.IGBE, 0x02)
}

Method (_L0B, 0, NotSerialized)
{
Notify (\_SB.PCI0.HUB0, 0x02)
}

Method (_L08, 0, NotSerialized)
{
Notify (\_SB.PCI0.PX40.UAR1, 0x02)
Notify (\_SB.PCI0.PX40.UAR2, 0x02)
}

Method (_L09, 0, NotSerialized)
{
If (LNotEqual (VID0, 0xFFFF))
{
If (LEqual (And (RSR0, One), One))
{
Store (0xFF, RSR0)
Store (0x80, PMC0)
Notify (\_SB.PCI0.PEX0, 0x02)
}
}

If (LNotEqual (VID1, 0xFFFF))
{
If (LEqual (And (RSR1, One), One))
{
Store (0xFF, RSR1)
Store (0x80, PMC1)
Notify (\_SB.PCI0.PEX1, 0x02)
}
}

If (LNotEqual (VID2, 0xFFFF))
{
If (LEqual (And (RSR2, One), One))
{
Store (0xFF, RSR2)
Store (0x80, PMC2)
Notify (\_SB.PCI0.PEX2, 0x02)
}
}

If (LNotEqual (VID3, 0xFFFF))
{
If (LEqual (And (RSR3, One), One))
{
Store (0xFF, RSR3)
Store (0x80, PMC3)
Notify (\_SB.PCI0.PEX3, 0x02)
}
}

If (LNotEqual (VID4, 0xFFFF))
{
If (LEqual (And (RSR4, One), One))
{
Store (0xFF, RSR4)
Store (0x80, PMC4)
Notify (\_SB.PCI0.PEX4, 0x02)
}
}

If (LNotEqual (VID5, 0xFFFF))
{
If (LEqual (And (RSR5, One), One))
{
Store (0xFF, RSR5)
Store (0x80, PMC5)
Notify (\_SB.PCI0.PEX5, 0x02)
}
}
}
}


maybe i should add that in? perhaps using a different unused _L0x?

dan10
11-20-2009, 10:45 PM
There should be 2 instances of AZAL replaced to HDEF. I thing you are close

mimayin
11-20-2009, 11:02 PM
I figured out the missing part, I added HDEF to the _L0D method:


Method (_L0D, 0, NotSerialized)
{
Notify (\_SB.PCI0.EHC1, 0x02)
Notify (\_SB.PCI0.EHC2, 0x02)
Notify (\_SB.PCI0.IGBE, 0x02)
Notify (\_SB.PCI0.HDEF, 0x02)
}



But still no sound with AppleHDA :(

dan10
11-20-2009, 11:20 PM
Here it's mine:


Method (_L0D, 0, NotSerialized)
{
Store (SMI (0xC6, Zero), Local0)
If (And (Local0, One))
{
Notify (\_SB.PCI0.HDEF, 0x02)
}

If (And (Local0, 0x02))
{
Notify (\_SB.PCI0.EHCI, 0x02)
}

If (And (Local0, 0x04))
{
Notify (\_SB.PCI0.EHC2, 0x02)
}
}

mimayin
11-20-2009, 11:26 PM
This is too much of a headache, i give up, im buying an Xmod

scififan68
11-21-2009, 02:30 AM
Hey!, thanks for this sweet guide, it really helped me port the applehda kext to work for my alc888! :D

mimayin
11-21-2009, 01:57 PM
Ok I'm following TheKing's guide, but I'm stuck on how to convert the output from VerbIt to the encoded format used in the ConfigData parameter in Info.plist:


Verbs from Linux Codec Dump File: codec_dump.txt

Codec: Realtek ALC885 Address: 2 DevID: 283904133 (0x10ec0885)

Jack Color Description Node PinDefault Original Verbs
--------------------------------------------------------------------------------------------------------
1/8 Green Line Out at Ext Rear 20 0x14 0x01014410 21471c10 21471d44 21471e01 21471f01
1/8 Black Line Out at Ext Rear 21 0x15 0x01011412 21571c12 21571d14 21571e01 21571f01
1/8 Orange Line Out at Ext Rear 22 0x16 0x01016411 21671c11 21671d64 21671e01 21671f01
1/8 Grey Line Out at Ext Rear 23 0x17 0x01012414 21771c14 21771d24 21771e01 21771f01
1/8 Pink Mic at Ext Rear 24 0x18 0x01a19c40 21871c40 21871d9c 21871ea1 21871f01
1/8 Pink Mic at Ext Front 25 0x19 0x02a19c50 21971c50 21971d9c 21971ea1 21971f02
1/8 Blue Line In at Ext Rear 26 0x1a 0x0181344f 21a71c4f 21a71d34 21a71e81 21a71f01
1/8 Green HP Out at Ext Front 27 0x1b 0x02214c20 21b71c20 21b71d4c 21b71e21 21b71f02
ATAPI Unknown CD at Int ATAPI 28 0x1c 0x593301f0 21c71cf0 21c71d01 21c71e33 21c71f59
ATAPI Unknown Line In at Int ATAPI 29 0x1d 0x598301f0 21d71cf0 21d71d01 21d71e83 21d71f59
Comb Black SPDIF Out at Ext Rear 30 0x1e 0x014b1130 21e71c30 21e71d11 21e71e4b 21e71f01
1/8 Black Speaker at Ext Rear 31 0x1f 0x411111f0 21f71cf0 21f71d11 21f71e11 21f71f41
--------------------------------------------------------------------------------------------------------


Jack Color Description Node PinDefault Modified Verbs
--------------------------------------------------------------------------------------------------------
1/8 Green Line Out at Ext Rear 20 0x14 0x01014410 21471c10 21471d40 21471e01 21471f01
1/8 Black Line Out at Ext Rear 21 0x15 0x01011412 21571c60 21571d10 21571e01 21571f01
1/8 Orange Line Out at Ext Rear 22 0x16 0x01016411 21671c70 21671d60 21671e01 21671f01
1/8 Grey Line Out at Ext Rear 23 0x17 0x01012414 21771c80 21771d20 21771e01 21771f01
1/8 Pink Mic at Ext Rear 24 0x18 0x01a19c40 21871c40 21871d90 21871ea1 21871f01
1/8 Pink Mic at Ext Front 25 0x19 0x02a19c50 21971c50 21971d90 21971ea1 21971f01
1/8 Blue Line In at Ext Rear 26 0x1a 0x0181344f 21a71c90 21a71d30 21a71e81 21a71f01
1/8 Green HP Out at Ext Front 27 0x1b 0x02214c20 21b71c20 21b71d40 21b71e21 21b71f01
ATAPI Unknown Line In at Int ATAPI 29 0x1d 0x598301f0 21d71cf0 21d71d00 21d71e83 21d71f50
Comb Black SPDIF Out at Ext Rear 30 0x1e 0x014b1130 21e71c30 21e71d10 21e71e4b 21e71f01
--------------------------------------------------------------------------------------------------------


How do I convert those hex strings for the ConfigData, which is in this format:

AUccEAFHHUABRx4RAUcfAQFXHBIBVx0gAVce
AQFXHwEBZxwRAWcdYAFnHgEBZx8BAXccFAF3
HRABdx4BAXcfAQGHHDABhx2ZAYceoQGHHwEB
lxw/AZcdkAGXHqEBlx8CAaccMQGnHTEBpx6B
AacfAQG3HB8Btx1AAbceIQG3HwIBxxwyAccd
AQHHHjMBxx+ZAdccAAHXHQEB1x4AAdcfQAHn
HGAB5x0BAeceRQHnH4EB9xwAAfcdAQH3HgAB
9x9A


Thanks..

mimayin
11-21-2009, 02:04 PM
NM figured it out, wish me luck :)

max.1974
12-01-2009, 03:09 PM
Hi everyone...tks for a lot help!!!
I need ask a very great favor: send me by mail or download link, the compiled kexts that i need replace in Snow [email protected]

ALC262 SONY VAIO VGN-NS150AE

Im a inexperient user to compiled my on, so sorry my bad english...

Best regards...i hope some mail about that!!!

TKS!!!!

max.1974
12-02-2009, 03:58 AM
Please...i need that kext modified...AppleHDA.kext for my ALC262...
I suplies for help...just post or send by mail...im very tired to look around (google)

Thanks...

max.1974
12-02-2009, 04:01 AM
Im wish said "Friends..." tks!

semendemon
01-12-2010, 02:30 AM
Hello! I just came across this wonderful thread, and I have tried to patch my DSDT with the code mentioned for the Realtek ALC889 chip, as that is what my motherboard, the Gigabyte GA-X58A-UD7, uses for onboard audio (its little brother, the GA-EX58-UD5, uses the ALC889A).

Since it uses the same model chip as the EVGA motherboards, I believe that I can get it working on this new flagship motherboard from Gigabyte, and thus open the Hackintosh world up to people who are considering buying this motherboard. please help me to help the Hackintosh community. I will come out with a guide for this motherboard as soon as I figure out how to get audio working via DSDT, which will make my current installation a complete vanilla installation.

Just to offer you some background information, I am using the Chameleon v2.0 RC4 bootloader and have already patched my DSDT with ACPI Patcher Beta 5 (under Windows of course). I modified the DSDT that was created by ACPI Patcher with the lines of code for the ALC889 as well as replacing both instances of AZAL found with HDEF, but upon compilation with iASLMe, it gave me one error on the Codec_ID line regarding the length of the statement and 17 optimizations. As such, I removed that line completely and it compiled with zero errors, but still performed 17 optimizations.

Please help me correct my DSDT code by providing your entire code or just the excerpts necessary to make corresponding modifications to mine. Also, I still need to get my SATA and ethernet controllers working via DSDT (which both use the same chipsets as the EVGA motherboards), so I can remove my JMicron.kext, AppleIntelPIIXATA per.kext, and RealtekR1000.kext (or RealtekR1000SL.kext), and go fully vanilla.

Currently, I have the LegacyHDA.kext posted in this thread and and the vanilla AppleHDA.kext in S/L/E, and under "Audio (Built In)" in System Profiler, I have two devices showing up in the right column as "Intel High Definition Audio":

1. Device ID: 0x1458A102
Audio ID: 12
Available Devices:

2. Device ID: 0x1682AA30
Audio ID: 12
Available Devices:

Before patching my DSDT, I had nothing showing up under "Audio (Built In)" in System Profiler, so this is definitely a sign of progress. Now, I need the help of you wise InfiniteMac users to get this down perfect, as audio still does not get detected or work for me.

I would like to thank you in advance for your assistance and cooperation, and hope to hear from you as soon as possible. :)

abct
01-24-2010, 04:02 PM
I have the following sound card and on Leopard I had a fully working AppleHDA so I want to port that kext to Snow Leopard.

HDA Codec #0: IDT 92HD71B7
HDA Codec ID: 0x111d76b2
Vendor: 0x111d
Device: 0x76b2
Revision: 0x03
Stepping: 0x02
PCI Subvendor: 0x361b103c
I followed the guide and added b2761d11 to the AppleHDA file with Hex editor.
My old kext was using Layout 1 so I didn't change it and kept everything as it was in my old kext.

Finally, I edited the HDA Enabler kext according to the one that I used on Leopard, which uses Layout 1 and also a Config data.

On my system profiler, it is listed as below,

Intel High Definition Audio:

Device ID: 0x103C361B
Audio ID: 1
Available Devices:
Headphone:
Connection: 1/8-Inch Jack
External Microphone:
Connection: 1/8-Inch Jack
Speaker:
Connection: Internal
External Microphone:
Connection: 1/8-Inch Jack
Internal Microphone:
Connection: Internal
S/P-DIF Out:
Connection: RCAThis is also what appeared on Leopard's System Profiler. So everything seems ok but unfourtanely there is no sound. I attached the file I created if anyone is interested in looking at.

I tried to use DSDT for my sound card but I couldn't do it.

Thanks for your help.

maxidlabs
01-26-2010, 11:59 AM
Audio according to Windows:
Vendor: 111D
DevID: 76D8

0x293e8086

Snow Leopard 10.6.0
Everything is working but audio is not. However, it works with VoodooHDA although I neither can control volume nor I have mic.

I've read here that it's possible to get it working with working AppleHDA from Leopard. Unfortunately, I don't have any. Probably it's possible to use PinConfig from Windows? I've seen one in the registry.

Any help would be appreciated.

kanedaguy
03-04-2010, 02:16 AM
Hello
I just setup a new hackintosh box using SL 10.6.0 10A432 on a Gigabyte Motherboard GA-945GCM-S2L.

Gigabyte's site says that it uses the ALC662 Codec but my SL install shows me

Device ID: 0x1458A002
Audio ID: 66

and that's how I found this thread. I do not have any files from Leopard, any chance of helping me get some audio going please.

Thank you.

kws
03-04-2010, 09:32 AM
you can use Appleazaliaaudio.kext for Output, a small usb-soundcard (Terratec AureonUSB) for Micro if needed. This will prevent the cracking noise during startup (if USB is used for Output) and the sound assertion errors in verbose mode.

Attached is my HDEF-Section from DSDT (GA945GCM-S2L)

calabuig
04-21-2010, 10:24 PM
Hello, I have this problem: I have a Sony Vaio laptop VGN-AR41M and a Realtek ALC262 audio device onboard. I have Iatkos 10.5.7 installed and using AppleHDA patcher and ALC262 dump codec text I have no problem to get sound. I'd like to use Snow Leopard and I tried to follow this guide to use my working AppleHDA Leopard kext in SL, but I have no success. I've injected my DSDT file and I thinks it's ok. In System Profiler, under audio section, I have the sound card output recognized. But under preferences sound I have no output at all.
Could you help me, please? Is there anyone with Realtel ALC262 working under SL with patched AppleHDA?
Thanks in advance!

calabuig
04-25-2010, 06:45 PM
@mormegil

Please, mormegil, could you take a look at the attachments?
I can't get it work it out!

P.S. please rename the attached pdf to rar to open it

Thanks in advance!

calabuig
04-28-2010, 09:00 PM
I'm here again with my problem with ALC262... please, momegil, help me...
I have this error message in the boot sequence:

ALCinject: Starting.
Apr 28 21:48:01 Mac-di-Marco kernel[0]: ALCinject: Setting built-in=<data not shown>
Apr 28 21:48:01 Mac-di-Marco kernel[0]: ALCinject: Setting layout-id=<data not shown>
Apr 28 21:48:02 Mac-di-Marco kernel[0]: Sound assertion "0 == fAudioFunctionGroup" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDACodecGeneric.cpp" at line 202 goto ExitError
Apr 28 21:48:02: --- last message repeated 1 time ---
Apr 28 21:48:02 Mac-di-Marco kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Apr 28 21:48:02 Mac-di-Marco kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit
Apr 28 21:48:02 Mac-di-Marco kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
Apr 28 21:48:02 Mac-di-Marco kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit

Do you know what would it be the problem? Thanks in advance!

calabuig
04-29-2010, 09:52 PM
I tried another AppleHDA version and I get a different error:

22:42:59 localhost kernel[0]: kxld[com.apple.driver.AppleHDA]: The super class vtable __ZTV13IOAudioEngine for vtable __ZTV14AppleHDAEngine is out of date. Make sure your kext has been built against the correct headers.
Apr 29 22:42:59 localhost kernel[0]: Can't load kext com.apple.driver.AppleHDA - link failed.
Apr 29 22:42:59 localhost kernel[0]: Failed to load executable for kext com.apple.driver.AppleHDA.
Apr 29 22:42:59 localhost kernel[0]: Kext com.apple.driver.AppleHDA failed to load (0xdc008016).
Apr 29 22:42:59 localhost kernel[0]: Failed to load kext com.apple.driver.AppleHDA (error 0xdc008016)

Any little help?

Morpheus___
05-15-2010, 08:41 PM
Hey... Glad to hear that there is a possibility for my lost sound in snow leopard

I have a fully working applehda in leopard 10.5.8.
after installation of sl (10.6.2) my sound is gone, so i followed the instructions and did everything like in this thread but it doesn't work. I use hdaenabler + applehda in my leopard and it works very nice. i downloaded a hdaenabler for sl and installed it with my patched applehda for sl - no luck :(

can anybody help me please?
Here is my working applehda from 10.5.8

Fabze
06-08-2010, 09:54 AM
Hi,
im one of the people, which lost their sound in SL with the stac9228. i tried voodoohda in sl and all sound outputs/inputs worked except the internal speakers.

then i found this guide and i tried it. so now THANKS.. my internal speakers work now.. but - now my internal and my external mic doesnt work.

my problem is.. i just followed this guide on page 1.. but do really not understand what ive done with this hex numbers and plist editing and so on...

maybe someone can help me!

p.s. i hope u can understand me, because iam german.. :)

mormegil
06-27-2010, 10:31 AM
Hi guys. Sorry I've been busy. Hope you understand.

Just thought I'd share this for ALC888 users: 10.6.4 AppleHDA.kext (http://www.megaupload.com/?d=D1HV9A4K)

hassan
06-28-2010, 11:14 PM
now this is an easy guide, however, I do not have a working applehda.kext, I'm basically starting from scratch. No other guide seems to have a clear method of doing this, I've read Kings guide but that's incomplete and all over the place.

steenamaroo
07-14-2010, 01:21 AM
hi mormegil...

just want to say thanks! cos this is one of the best tutorials out there...

however,,,i'm in the same boat as hassan..i have no leopard applehda to work from...




i do have a working voodoohda and all the info (verbs etc),,,and have tried my best to work from there.


dsdt fix made system profiler display
Intel High Definition Audio:
Audio ID: 12


editing legacyhda and applehda with the info you gave makes system profiler list all the proper devices..
line-out 1/8 jack
line-in 1/8 jack etc etc

BUT, nothing shows in audio/midi setup...and no sound :(:(:(


do i reinstall leopard and start from scratch, or can we make this work from voodoo info and codec dumps?

thanks again!!


**EDIT**
i've installed leopard on a spare drive for testing.
the aim is to get a working leopard applehda to work from.


the best i can do is DSDT patch (which enables sys prof output)
and a patched apple hda (which populates system prof output)


problem is,

system prof shows
mic built in
mic external
speakersheadphones
SPDIF OUT!

but in the audio midi setup i only have

mic built in
mic external
speakers/headphones




how can this be? i've tried adding pin configs (from the same source that got my voodoohda working)

voodoo hda the same problem where it would autodetect everything except SPDIF.

Spdif was made to work by adding my own config data.

steenamaroo
07-15-2010, 10:05 PM
would anyone out there be prepared to help me make an applehda.kext for SL from scratch.

i have working pin configs, which are put in the dsdt, so system profiler shows my devices perfectly.


no matter what i do though, i can't get sound with applehda....

pm me if you're interested in helping.

i've given up on encoded output via voodoohda,,since no on at all seems to have it.

haze295
11-14-2010, 02:53 PM
Sorry for bringing up an old thread, but this seems like the best place to ask...

I have a working applehda and want to convert it to 10.6.5 applehda. I found that in 10.6.5 I do not have a MacOS folder and no actual AppleHDA inside.

I was wondering if someone could help me put together a 10.6.5 HDA as I've been stuck trying this tutorial.

Thank you so much,

Haze