PDA

View Full Version : [GUIDE] ALC889a (with analog 5.1 surround)


Pages : [1] 2

Snow
08-23-2009, 09:46 PM
Hi guys,

Just wondering if anyone has 5.1 sound working in Snow (or Leo for that matter)
Not digital out but normal surround via the 3 analog ports.
If so could you share the method please (DSDT, kext)

Thx in advance

UPDATE: Solved thx to all for your input, especially Mormegil, thx a lot bro for the guidance and files!

- Update on Sep 14 2009: I'm providing my modded AppleHDA kext for comparison or it might even work for some people without re-modding to their own hardware.

http://www.mediafire.com/?f0mmm25zrja

- Update on Sept 8 2009: Mormegil has created a guide to mod your Leopard AppleHDA kext to Snow Leopard: http://www.infinitemac.com/f57/guide-how-to-port-applehda-to-sl-t3981/

- Update on Sept 4 2009: Alright, since a lot of fello ALC889a users have issues I thought it would be only fair to post my steps to get audio fully working. This is based on my rig of course.


START


First grab these files which are:

iaslme to unpack your dsdt.aml file: http://www.mediafire.com/?jnjrdtmfm3k
kextutility in case you haven't got it yet: http://www.mediafire.com/?njgtzhzwm0j

For comparison:

my dsdt.aml without the audio mod: http://www.mediafire.com/?xm2yn2xguyo
my dsdt.aml with the audio mod: http://www.mediafire.com/?zzgmmgmhdbo

Credit goes to Mormegil for patience and support, respect bro!


PART I: Patching DSDT


- Slide your dsdt.aml file over the iaslme icon to decompile it to a dsdt.dsl file.
- Open the dsl file with texteditor
- Apple + F to open the search tab and fill in AZAL
- Change AZAL into HDEF

In my case:

From

Notify (\_SB.PCI0.AZAL, 0x02)

To

Notify (\_SB.PCI0.HDEF, 0x02)

- Search again for AZAL and this time the item “Device” should show up (at least in my case)

Change this:

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

Name (BUFA, ResourceTemplate ()
{
IRQ (Level, ActiveLow, Shared, )
{3,4,5,6,7,9,10,11,12,14,15}
})
Name (BUFB, ResourceTemplate ()
{
IRQ (Level, ActiveLow, Shared, )
{}
})
CreateWordField (BUFB, One, IRQV)
Device (LNKA)
{
Name (_HID, EisaId ("PNP0C0F"))
Name (_UID, One)
Method (_STA, 0, NotSerialized)
{
And (PIRA, 0x80, Local0)
If (LEqual (Local0, 0x80))
{
Return (0x09)
}
Else
{
Return (0x0B)
}
}

Method (_PRS, 0, NotSerialized)
{
Return (BUFA)
}

Method (_DIS, 0, NotSerialized)
{
Or (PIRA, 0x80, PIRA)
}

Method (_CRS, 0, NotSerialized)
{
And (PIRA, 0x0F, Local0)
ShiftLeft (One, Local0, IRQV)
Return (BUFB)
}

Method (_SRS, 1, NotSerialized)
{
CreateWordField (Arg0, One, IRQ1)
FindSetRightBit (IRQ1, Local0)
Decrement (Local0)
Store (Local0, PIRA)
}
}

Into this:

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)
}
}

Name (BUFA, ResourceTemplate ()
{
IRQ (Level, ActiveLow, Shared, )
{3,4,5,6,7,9,10,11,12,14,15}
})
Name (BUFB, ResourceTemplate ()
{
IRQ (Level, ActiveLow, Shared, )
{}
})
CreateWordField (BUFB, One, IRQV)
Device (LNKA)
{
Name (_HID, EisaId ("PNP0C0F"))
Name (_UID, One)
Method (_STA, 0, NotSerialized)
{
And (PIRA, 0x80, Local0)
If (LEqual (Local0, 0x80))
{
Return (0x09)
}
Else
{
Return (0x0B)
}
}

Method (_PRS, 0, NotSerialized)
{
Return (BUFA)
}

Method (_DIS, 0, NotSerialized)
{
Or (PIRA, 0x80, PIRA)
}

Method (_CRS, 0, NotSerialized)
{
And (PIRA, 0x0F, Local0)
ShiftLeft (One, Local0, IRQV)
Return (BUFB)
}

Method (_SRS, 1, NotSerialized)
{
CreateWordField (Arg0, One, IRQ1)
FindSetRightBit (IRQ1, Local0)
Decrement (Local0)
Store (Local0, PIRA)
}
}


PART II: Patching AppleHDA


- Copy your AppleHDA.kext from System/Library/Extensions to your desktop
- Right click the kext and select ShowPackage, then browse to Content/Contents/Plugins
- Right click AppleHDAHardwareConfigDriver.kext and again Show Package Contents
- Browse to Contents and replace info.plist with this one (just slide it in and confirm replace)

http://www.mediafire.com/?rttltqjqxn4

Go back to the Plugins folder and this time Show Package Content of AppleHDAPlatformDriver.kext
Browse to Contents and replace info.plist with this one

http://www.mediafire.com/?zhnmdm0izzy

- Close all windows and then slide the modded AppleHDA.kext on the Kextutility icon.
- Reboot and repair permissions again with Kextulility, Terminal or Disk Utility just to make sure.
- If SL starts to behave badly and post a kernel panic you might want to boot into 32bit safe mode (-x -x32) and then run kextutility

Audio should be working now


PART III: Configuring 5.1


- Spotlight "AUDIO/MIDI-configuration" prefs
- Click + left bottom
- Double click name and rename it to ALC889a
- In the right panel select the 3 built-in line streams
- To adjust or correct volume expand ALC889a and use the sliders in the right tab for all 3 line-outs:

http://a.imagehost.org/0055/Volume.png (http://a.imagehost.org/view/0055/Volume)

In my case they were minus 12db if I remember correctly.

- Click speaker configuration bottom right
- Select Multichannel tab and next to it select 5.1 surround from the menu
- Check All streams at top and then start configuring the streams (in my case I had to switch 5 & 6 to left and right rear and 3 & 4 to center and sub respectively)
- Confirm with bottom buttons and go check a 5.1 movie in quicktimeX
- You might want to install Perian (http://perian.org/) and set Audio Output to: Mutli-Channel Output

I think that's about it, everything should be working, if not, it's probably because you have a completely different system then mine or your dsdt isn't properly patched or you just messed up on the way.

Good luck!


THE END

vista00
08-24-2009, 12:11 AM
Hi Snow
Here an interested guide to modify your dsdt and add audio. Take a look:
http://www.mediafire.com/?sharekey=dd89f674cb6ef1d6d6baebe61b361f7c8fd90959 baf93af1c95965eaa7bc68bc

DocShadow
08-24-2009, 01:14 AM
Hmmmm ... very detailed.

I tried the HDEF patch in the dsdt but had no luck. I think I'll try this one out and see if I have more luck.

Thanks for the heads up.

Snow
08-24-2009, 06:54 AM
Thx for the guide m8 but all I really want to know is if 5.1 is possible with ALC889a via analog.
I wont enable the onboard unless it's possible.
If not, I will wait for KX driver to go 64bit and use my Presonus 1394 for now (stereo)

mormegil
08-25-2009, 07:34 PM
I don't think real macs support analog 5.1 audio. So I think the only way to go is digital.

Got my onboard ALC888 running using this guide: http://www.projectosx.com/forum/index.php?showtopic=465&pid=1993&st=0&#entry1993

Front analog, Digital out, Mic and Line In working so far. I've a Z5500 system so it's all good. Been watching HD movies with AC3/DTS no problem.

Snow
08-25-2009, 08:05 PM
Argh ok, bad news then. KX drivers for my Audigy 2 ZS support 5.1 and with superior quality compared to ALC889a. I think it'll take a long time though for 64bit support, hence I'm hunting for ALC889a 5.1.

mormegil
08-25-2009, 08:21 PM
Yeah too bad no kx support for my X-fi :( I wouldn't have bothered with tweaking my onboard otherwise. I've never ever enabled it in bios since I got this motherboard and tbh I was quite surprised by the quality of the digital output.

mormegil
08-27-2009, 11:52 AM
I take back my word. Got full analog 5.1 to work on my onboard alc888!

1. Tweak AppleHDA.kext to detect 3 Line Outputs: Green, Black, Orange.
2. Run Audio Midi Setup
3. Add new Aggregate Device
4. Click on the 3 check boxes corresponding to the 3 Line outs
5. Click on Configure Speakers
6. Select all 3 streams
7. Select Multichannel 5.1
8. Make sure all channels are properly mapped
9. Select Aggregate Device as output under System Preferences>Sound
10. Done



Here's my modified AppleHDA.kext as reference

Snow
08-27-2009, 12:05 PM
Thats great news m8!

You think I can use this one for my ALC889a?

Only kext is needed? no dsdt patching or other kexts?

This is 64bit compatible yeah?

Thx

mormegil
08-27-2009, 02:40 PM
ALC889a might have different pin configuration so I'm not sure about that. However, it looks like your codec is a variant of the ALC885 which has native OSX support so I think you don't need to do any binary patching.

You don't need HDAenabler or any audio injector. Just patch dsdt for audio injection. Then edit the two plist files:

AppleHDA.kext/Contents/Plugins/AppleHDAHardwareConfigDriver.kext/Contents/Info. plist
AppleHDA.kext/Contents/Plugins/AppleHDAPlatformDriver.kext/Contents/Info.plist

Check out the guide by THe KiNG I linked earlier. Should be able to do it yourself. I've made a quick edit for your codec (ALC885 address 3). Just rename them to Info.plist and copy to their respective kexts.

And yes, it's based on the original AppleHDA.kext which came with SL build 10a432 so it's 64bit compatible.

Snow
08-27-2009, 07:19 PM
Ah thx bro, I'm affraid I'l lhave to look into dsdt patching since Pista (the guy who made SLeepenabler) compiled it for me.

Thx a lot for the files and info! I'll check the guide now

mangohead
08-27-2009, 08:24 PM
I've fixed the audio on my P35-DS3L (2.0)

I used the drivers here (find the proper one for your ID)

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

Also stumbled across this, but never bothered to try it:

http://www.insanelymac.com/forum/index.php?showtopic=181098&pid=1237530&mode=threaded&start=0#entry1237530

Snow
08-27-2009, 08:29 PM
Alright, thx m8, will try this tomorrow.

I'll post back with update. The only issue for me is the dsdt because iasl cannot seem to compile it properly (doesnt even output aml file)

I'll get to it tomorrow lads, thx again!

wwbsox
08-27-2009, 09:46 PM
@snow... What errors are you getting from iaslme? If they are WAK, Local0, or DTGP errors, they can be fixed by adding those methods to your dsdt somewhere. It was easier for me to use ACPI patcher in windows and just check those options when I patched my dsdt.

Anyways, I am going to try different pin configurations in my dsdt this weekend to see if 5.1 using dsdt is possible.

mormegil
08-27-2009, 11:04 PM
I was having problems getting it to work at first while inserting my pinconfig to dsdt. After reading the guide, I've learnt that it's not really necessary. Pinconfig from plist will override them anyway. Here's the HDEF code in dsdt.dsl

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)
}
}

Snow
08-28-2009, 07:58 AM
Always errors out on this when I try to compile

/Users/Snow/Desktop/dsdt/dsdt.dsl 5021: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4063 - Object does not exist ^ (DTGP)

Any ideas?

Snow
08-28-2009, 09:04 AM
Ok I added the DTGP part to dsdt and it compiled properly.

Rebooted, had a few panics and non boots but after repairing permissions & mkext I booted into x64.
Now, I have the 3 line-outs, made a device for the outputs but I get no sound whatsoever.

Could you please check and recompile my dsdt.aml for me?

Thx in advance

Update: Hmm no, I can achieve a thing or two on osx86 but this stuff is beyond me. It'll never happen if I'm doing the coding lol so hopefully someone can compile a proper dsdt or AppleHDA for me.
I have added the dumps for ALC889a (downloaded from somewhere so not built on my system) just in case its needed.

mormegil
08-28-2009, 10:11 AM
What do you see in your System Profiler and SysPref/Sound? Can you get sound out of the individual outputs before doing the aggregate device?

Snow
08-28-2009, 10:15 AM
Christ sake, I just tried again and thought I heard some noise in the background, turned volume up a bit (My presonus FW interface seems to output louder) and now I do get sound. Thats a proper noob act man.

Alright so stereo seems to be working, I'll get back to ya with update on 5.1 sound.

http://img41.imageshack.us/img41/9269/schermafbeelding2009082.png (http://img41.imageshack.us/i/schermafbeelding2009082.png/)

Snow
08-28-2009, 10:23 AM
Alright 5.1 works, thx a lot for files n guidance bro!!!

This seems to be the proper setting for streams in my case. I bet with a slight change in pinconfiguration the default setting would already work but this configuration actually makes more sense.

http://a.imagehost.org/0091/Schermafbeelding_2009-08-28_om_11_20_53.png (http://a.imagehost.org/view/0091/Schermafbeelding_2009-08-28_om_11_20_53)

mormegil
08-28-2009, 10:26 AM
Glad it worked for you. What do you mean by default settings?

Snow
08-28-2009, 10:31 AM
Well the streams you get at default setting. I had to switch rears for center/sub.

But the 3/4 back and 5/6 center/sub makes more sense anyway.

I'll have to change my audio in windows back to onboard or its silent gaming. When KX 64bit support is released I "might' try the Audigy 2 ZS again. On the other hand I might just get rid of it and clear some space in my case hehe.

Do I just replace the dsdt.aml and plist files (AppleHDA) in for this to also work Leopard?

Also, is there a way to get 5.1 with QuicktimeX or do we still have to use VLC Player?

Thx again bro, respect!

Snow
08-28-2009, 10:57 AM
Small observation, the sound indeed is far too low and I have to turn the volume way up, so much I start to hear noise (normal with analog setup I guess)

Any ideas?

Update: and that my friend seems to be fixed by setting db to 0 for the line-outs in audio/midi config panel. Maybe I should seek a solution first and then post if its unsolved. I'm a bit excited I got 5.1 working guess.

mormegil
08-28-2009, 11:07 AM
Ah yes. I got that too. Somehow the channels are not mapped properly by default.

Yes, dsdt.aml you can just reuse for Leo but AppleHDA you can't since 10.5.8 uses an older version. AppleHDA.kext:Contents:PlugIns:AppleHDAHardwareCon figDriver.kext:Contents:Info.plist
Copy and paste ConfigData with LayoutID 12

AppleHDA.kext:Contents:PlugIns:AppleHDAPlatformDri ver.kext:Contents:Info.plist
Copy and paste the blocks with LayoutID 12 under Layout and PathMapID 9 under PathMaps

Snow
08-28-2009, 11:15 AM
Alright bro, I'll try that after lunch.

Also, 5.1 in quicktime seems to be fixed with Perian audio options set to Multi-channel output.
Positional sound is quiet good too I might add.

And another question, would adding my 8800GT to the dsdt make any difference compared to EFI string in boot.plist? if yes how would I do this?

Later bud

Update: Is it ok I share the Leo AppleHDA with you so you can modify because there's a lot of code innit and I don't want to mess things up. I think I've done some of the work, can't remember.

Thx!

mormegil
08-28-2009, 02:46 PM
1.7.1a2 patched for alc889a. Try it.

Snow
08-28-2009, 03:44 PM
Will do, brb!

Gurruwiwi
09-01-2009, 07:56 PM
Hi guys,

I've followed your thread and am in dire need of your help!

I too ha

Gurruwiwi
09-01-2009, 08:00 PM
Hi guys,

I've followed your thread and am in dire need of your help!

I too have alc889a

I am audio and SD card away from a perfect install of SL 432, using Cham2rc1.

Let me just give you some info I think is relevant.

Last week I bough a new HDD for my laptop, installed SL fresh over 8-10 times, successfullly becoming more KP. On Sunday I realized the drive was bad. It wouln't even format right. But during the weekend I managed to get alot of things done, like testing video string working, AHCI etc etc.. on my first few tries I managed to get audio working perfect, spdif etc, no internal mic, but external mic working fine! I would be more than happy with that!.
Plus, the woofer was present as music had lot more low end. I did not go into Audio Midi as I only now found this out (I thought it was only for midi connections!).Sound was cristal clear, loud and healthy, zero click or pops.

Then the system broke and I had to restart yet again, but the drive didnt last long. Since I was having so many problems, when something worked, I copied a backup for the future. I didnt have time though, "warmd" KP crashed. And you know how the download folder can get really confusing really fast, because I knew I had very little time before a permanent KP, and so basically I cannot remember for sure which kext I used, but I have a very warm feeling it was AppleAzalia kext from electro's Live website hosting loads of drivers. On Sunday I realized the drive was bad. It wouln't even format right anymore.

http://cid-8b65993ef55cf014.skydrive.live.com/browse.aspx/.Public/OSx86/Snow%20Leopard/Drivers%20kext%20|5Sterowniki|6/==%20%20Sound%20|5d%C5%BAwi%C4%99k|6%20==?view=det ails

It's the first one, title ALC883 (Azalia). Either that or one of the latest VoodooHDA woke up the card, it was late and I was dead tired.

So, brand new drive, fresh SL with gfx, ethernet, webcam, bluetooth, ICH9m working, smbios.plist edited to match a macbook pro 5,1... and is rock rolid !

This is with or without dsdt.aml in neither root nor Extras.

I spent 5 hours yesterday just doing this...

Install (X) kext in E/E - repair perms, reboot with -v, keep my eyes peeled for info,
Install (X) kext in S/L/E - repair perms, reboot with -v, keep my eyes peeled for info,

Where (X) - is any and every audio kext compiled to 64bit SL I could find !

Nothing - in System profiler I get (from vanilla AppleHDA.kext)

Device ID: 0x10250146
Audio ID: 0

Note that this Device ID differes from all others!

Now, up to now I wasnt using my 10.5.7 dsdt.aml file in root or Extras... so I decided to copy them to both locations. Basically repeated the install, repair, reboot procedure for all kexts.

All other kexts read:

DEVICE ID: 0x1458A002

with no Audio ID, just that line

Then I kind of lost heart and decided to move onto ethernet, woke that up and shows fine, then I try another voodooHDA and I get sound! After 20 million kexts. Out of the blue! No mic in, not external mic (but this time "Mic" is present is preferences) I installed it to S/L/E and I think vanilla AppleHDA was there too. In system profile is read just like the above, but sound works!

So I go, YEY!, I'll try moving that one to Extras/Exten so I have a vanilla system, and back it up straight away!

Reboot, no audio. Move the same kext back into S/L/E... no audio !! wtf !?

Most kexts dont give sign of working during verbose boot. Some, that I tried in E/E come back complaining about dependancies, but when in S/L/E show no lifesigns during verbose boot.

what is going on? a kext works one minutes, not the next? Yes, repaired permissions etc.

Should I remove AppleHDA vanilla as principle? (tried)

Should I use dsdt.aml or not? (I havent tried patching as it seems damn complicated!!)

Also, and this gets to me more than anything... if I boot up SL USB Installer, and go in system Profiler, this is what I get

Device ID: 0x1458A022
Audio ID: 12

Available Devices:
Internal Microphone:
Connection: Internal
Speaker:
Connection Internal
External Microphone:
Connection: 1/8-inch Jack


This is my lspci info;

(ICH9 Family) HD Audio Controller [8086:293e] (rev 03) 00:1c.0 PCI bridge [0604]: Intel Corporation 82801I



I guess I could go the dsdt patching route.. but I've gotten audio before and I dont get it why SL is being so picky. Never tried dsdt patching and it intimidates just by looking at it.
When booting with vanilla AppleHDA, I get the following verbose messages;

http://i310.photobucket.com/albums/kk407/Siraudio/IMG_0049.jpg

And if you look, it says "sound assertion "0" - is that related to Audio ID: ?

Why should I need dsdt patching if I've gotten sound before :mad:


Thank you for the long read, I wanted to give as much info as possible

Gurruwiwi
09-01-2009, 08:38 PM
Just went through King's tutorial...

First step, problem, graphviz does not install in SL

mormegil
09-02-2009, 12:34 AM
Simple.

Either use the 2 plist's I made for Snow and insert them into your SL AppleHDA (rename them first)

or

go here (http://www.insanelymac.com/forum/index.php?showtopic=140941). tmonkol's unified plist or so called LegacyHDA.kext should be the easier way out. Look for the latest package dated 6-8-2009. Don't really have to go through King's tutorial since your audio chipset has already been excellently documented.

Next step is DSDT. Don't really think it's that complicated. Again, tmongkol has a link to DSDT Patcher by fassl. Just a matter of running it once to generate your dsdt.aml.

Decompile it: iasl -d dsdt.aml
Insert HDEF code into dsdt.dsl
Recompile it: iasl -ta dsdt.dsl

CyCLoBoT
09-02-2009, 11:45 PM
I finally got sound to work on my EP45-DQ6 motherboard but I am noticing that more sound is coming out of one of the speakers than the other. I only have 2.1 speakers. Anyone noticed something similar?

Gurruwiwi
09-03-2009, 02:33 AM
Mormegil,

Thanks for the help!

I've tried everything, nothing works. I finally manage to get a stable fully operational SL, but no audio :( Irritating as hell because just two days ago while starting to experiment with kexts, it worked nice.

I generated a new dsdt.aml with DSDT Patcher GUI 1.02, forcing compile and new HPET.

From that, the dsdt.dsl file.

I tried following a couple of guides, for example "search for AZAL and substitute with HDEF" - but I have no AZAL entries. Or "copy this over that" but I dont get how long is "over that" without knocking out necessary code.

I also have another issue, from one guide I managed to substitute a code entry, and wanted to test that. Saved dsdt.dsl, then with iaslME.app I couldnt generate the .aml file because I cant find it. Says everything worked fine, got 1 error (is that ok?), but it didnt output any dsdt.aml file back. I used this app to generate the dsl file and it worked ok.

Mind taking a look please?

Snow
09-03-2009, 06:47 AM
Error isn't ok since it doesn't output an aml file m8.

Is it DTGP related? (check log) because if so go back a few pages for a fix.

mormegil
09-03-2009, 12:02 PM
You have to insert the code if it's not present. Was the same as me. Just copy and paste the whole "Device (HDEF)" block of code so that it appears under "Device (PCI0)" (i.e. subset of it). Read the guide by King again.

Gurruwiwi
09-03-2009, 01:02 PM
Guys,

Some progress, but not that much.

I've substituted everything under HDEF to be exactly as Kings tutorial PDF.

Checked three or four times, line by line. I save dsdt.dsl, drag to iasl me, and it says

Copyright (C) 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a

/Users/bigbang/Desktop/DSDT dsl to aml/dsdt.dsl 9592: [*** iASL: Read error on source code temp file /Users/bigbang/Desktop/DSDT dsl to aml/Sessions/2009-09-03-125900/dsdt.src ***]
Error 4095 - syntax error, unexpected $end ^

ASL Input: /Users/bigbang/Desktop/DSDT dsl to aml/dsdt.dsl - 9593 lines, 326239 bytes, 4052 keywords
Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

All done.
Enjoy ...



but the only file present in the "sessions" directory is log.txt that reads

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20080926 [Oct 4 2008]
Copyright (C) 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a

/Users/bigbang/Desktop/DSDT dsl to aml/dsdt.dsl 9592: [*** iASL: Read error on source code temp file /Users/bigbang/Desktop/DSDT dsl to aml/Sessions/2009-09-03-125900/dsdt.src ***]
Error 4095 - syntax error, unexpected $end ^

ASL Input: /Users/bigbang/Desktop/DSDT dsl to aml/dsdt.dsl - 9593 lines, 326239 bytes, 4052 keywords
Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 0 Optimizations


So what am I doing wrong?

attached is the dsdt.dsl with the copied code...

Snow
09-03-2009, 01:34 PM
I've tried to mod your dsl file but it even gives me more errors (6) so I'm afraid I cannot help you with this m8.

mormegil
09-03-2009, 04:49 PM
I just force compiled and ignored the warnings. All errors I've corrected.

Gurruwiwi
09-03-2009, 08:11 PM
Thanks Snow and momergil! but it broke the system.

Copied dsdt.aml to root. Rebooted and AppleHDA panic'ed. during boot (just -v)

Reboot again in verbose, no KP, but AppleHDA gave back "assertion 0" error codes, went to desktop, and in desktop, "warm" KP. Just before, I managed to see that device ID is Device ID: 0x10250146, Audio ID: 12 and all ports show up.

In Leo and SL Install stage, it reads

DEVICE ID: 0x1458A002
Audio ID: 12


So, that may be a clue.

Anyway, tried rebooting again, and when the screen goes black to wake up again and show desktop... it flashes black and blues in 5 second intervals, and stays like that, same symptom as my previous attempts with SL.
I go in Leo and put SL in an enclosure, delete dsdt.aml from root and verify disk just in case one of my "power shutdowns" went bad, but drive seems ok.
Tried rebooting with SL in -x and -x32 and -x -x32... same symptom.
So basically, my install broke. Thank God I have a base image of it !
The first and second dsl file I uploaded here, I already tried editing a bit, only below the HDEF entry, just as per first King's tutorial, the rest I didn't dare do.

I will upload in this post an un-edited file from my recently patched aml file that was forced compiled and newHPET using GUI patcher 1.02

Why would this file break my install? and What did it do, that removing it still screws with SL?
I'll try cloning it again and try fresh with this dsdt.aml again...
I have gfx string in com.apple.Boot.plist, but we did nothing in dsdt for gfxs, this symptom happened before and I dont know how to recoup from it.

Ideas?

mormegil
09-03-2009, 10:00 PM
Nothing to do with dsdt I think. Perhaps your gfx string that's the issue. I've heard EFI string which works in Leopard might not always work with SL. You're using the plists I posted in this thread correct? Rename to Info.plist and replace the original ones? Repair permissions etc.?

Gurruwiwi
09-03-2009, 10:13 PM
I write to you from newly restored SL.

My gfx string worked fine in SL without any extra kexts, every single time. Only after applying the new DSDT it freaked out.

I am not that confident I used the right AppleHDA with the info.plists you provided. I thought best to boot first to see changes, then try with correct AppleHDA. But when I simply copied the DSDT I didnt repair perms.

So, back to SL, will mod the vanilla AppleHDA, replace dsdt.aml you compiled and test.

I would really appreciate it if you were to fix my untouched dsdt.dsl and recompile it. I'm fear of having made a wrong entry that makes errors or something, and would feel more confident about it

But in the meantime I will try this one to check compatibility with a fresh vanilla boot.

thanksssssss :)

UPDATE:

Yay! I survived the reboot! :) - No audio, but at least Audio ID shows up as 12 and not zero. During verbose boot there is no indication of audio kext. I did mod applehda with your plists, will now try your 1.7.1a2 patched for alc889a from page 3

UPDATE 2: Nope, exactly the same. Still no audio devices in system preferences, no warning in verbose. Legacy kexts only contain plist inside right? Off to try vanilla HDA with legacy...

mormegil
09-03-2009, 10:52 PM
If you use tmongkol's legacy kexts, make sure to edit the plist and replace all occurrences of "LayoutID" to 12. You don't need the HDAenabler.

Gurruwiwi
09-03-2009, 11:27 PM
Sorry to be annoying... Back to Leo, tried another combo, but it KP'ed, and always panics if I try to repair - "repair package" thread. So I'm screwed. Tried with Kext Utilities, third boot round managed to finish without KP. But Snow is gone.

Back to format and restore. I did get all devices mapped! It seems when I manage to show mapped devices, snow kp's and dies.

I'm going to start again, I must be close, just to be sure, I should try your dsdt, legacy kext, no HDA Enabler, and vanilla AppleHDA. Is this right?

vladrxpx
09-03-2009, 11:28 PM
hi !
I also have GA-P35-DS3R

I've installed SL and everything works, but I have no sound. no audio input or output device :(

Could you please point me to the right direction to work this one out?

Gurruwiwi
09-03-2009, 11:38 PM
Sure, post number one of this very thread. Did you try the steps?

Gurruwiwi
09-04-2009, 12:51 AM
moremegil,

Re-installed fresh with your dsdt, vanillaHDA and legacyHDA kext. I can now see all devices

Intel High Definition Audio:

Device ID: 0x10250146
Audio ID: 12
Available Devices:
Internal Microphone:
Connection: Internal
Speaker:
Connection: Internal
External Microphone:
Connection: 1/8-Inch Jack

but still no audio. have same result without editing LayoutID.

Some of the LayoutID's were 889, do I change these to 12 too? I did do it.

Snow
09-04-2009, 01:14 PM
Gurru, I've added a small guide so try again and post back with result. Go step by step and let me know if I need to adjust a thing or two.

Good luck lad!

Gurruwiwi
09-04-2009, 01:59 PM
Great stuff man!

Question: So you dont need Legacy kexts?

Off to review my dsdt again!

mormegil
09-04-2009, 01:59 PM
So you downloaded tmongkol's legacy kext. There should be a few in the package. Only choose one. Then, edit all LayoutID's from 889 or 885 to 12.

Gurruwiwi
09-04-2009, 02:17 PM
Yes, I have, I only tried the 3out2in HDA and analog for 889 and 885.

And yeah, one at the time, since they are all named the same

Once I tried all layouID's ( "0", "65647 something", and "889"'s)

In Snow's dsl he has two HDEF entires, I only have one.

Where he reads

Method (_L0D, 0, NotSerialized)
{
Notify (\_SB.PCI0.USBE, 0x02)
Notify (\_SB.PCI0.USE2, 0x02)
Notify (\_SB.PWRB, 0x02)
Notify (\_SB.PCI0.HDEF, 0x02)I have;

Method (_L0D, 0, NotSerialized)
{
}The other entry is exactly the same

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)
}
}
So should I copy this in and recomplie?

And should I try with or without legacy?

(In the donwloaded tutorial folder containing the legacy kext archives, there is an HDAenabler there...)

mormegil
09-04-2009, 02:17 PM
Your dsdt is fine. Don't touch it anymore. Make sure to change ALL LayoutIDs! Or just use the plists I made and you don't have to change anything.

Edit: I meant all LayoutID so long as they're 889 or 885. This confusion can be totally avoided to be honest if tmongkol hadn't messed up with layoutid's to make it look "good". It only changes the number in Sys Profile. Thats the number 12 you see btw.

Gurruwiwi
09-04-2009, 02:21 PM
I tried that!

I just found out something.

In Snow's file he has

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)
}
}

Name (BUFA, ResourceTemplate ()
{
IRQ (Level, ActiveLow, Shared, )
{3,4,5,6,7,9,10,11,12,14,15}
})
Name (BUFB, ResourceTemplate ()
{
IRQ (Level, ActiveLow, Shared, )
{}
})
CreateWordField (BUFB, One, IRQV)
Device (LNKA)
{
Name (_HID, EisaId ("PNP0C0F"))
Name (_UID, One)
Method (_STA, 0, NotSerialized)
{
And (PIRA, 0x80, Local0)
If (LEqual (Local0, 0x80))
{
Return (0x09)
}
Else
{
Return (0x0B)
}
}

Method (_PRS, 0, NotSerialized)
{
Return (BUFA)
}

Method (_DIS, 0, NotSerialized)
{
Or (PIRA, 0x80, PIRA)
}

Method (_CRS, 0, NotSerialized)
{
And (PIRA, 0x0F, Local0)
ShiftLeft (One, Local0, IRQV)
Return (BUFB)
}

Method (_SRS, 1, NotSerialized)
{
CreateWordField (Arg0, One, IRQ1)
FindSetRightBit (IRQ1, Local0)
Decrement (Local0)
Store (Local0, PIRA)
}
}
While I only have

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 seem to be missing alot of code! And what about the first entry I seem to be missing too?

Are you sure mormegil?

mormegil
09-04-2009, 02:33 PM
That's because those code were there originally in his stock dsdt while yours didn't. Just like mine.

Gurruwiwi
09-04-2009, 02:35 PM
Ok, great thanks for the reply!

I'll give it another try. Without legacy again

Snow
09-04-2009, 02:35 PM
I'm just letting Mormegil do his thang haha, he knows a lot more then me about this.

Question though Mormy, is my guide any help to others, since you mention my prepatched already has a lot of code. They just have to replace that section right? or does it differ from system to system?

@Gurru, replace the whole section m8. I don't know about the first missing section though. It might not work because there is no device ID.

Later bud

mormegil
09-04-2009, 02:42 PM
If you can see the ports in SysProf and still no sound, then your configdata is correct but your pathmaps are not right. You might have a different variant of the same codec. Are you on a laptop? You sure your codec is 889a (885 address 3)?

mormegil
09-04-2009, 02:47 PM
It's fine since you're showing before and after injecting the code. It just shows the important fact that dsdt is system specific and just blindly adding code into it will result in compilation errors etc.

Gurruwiwi
09-04-2009, 02:48 PM
Yup, check it out.

First I'll try mormegil's compile with patched AppleHDA.

For learning sake, I tried to copy Snow's entry code, but I cant recompile no matter what

I am sure its a .dsl file, it outputs one error, says done, but no aml to be found. Lust be missing something... back to testing

off to try plist into vanilla HDA

Gurruwiwi
09-04-2009, 03:05 PM
Yep, laptop here,

I did follow Snow's tutorial in the first page, if I patch vanilla AppleHDA, I loose system profiler devices.

Just tripled checked with google, and linux folk normally take no prisoners...

http://www.lapspecs.com/wiki/acer+aspire+6935g#sound

Sound

Sound Controller Realtek ALC889A High Definition Audio
Speakers 2 plus Subwoofer
Internal Microphone Yes
Headphone Port Yes
Microphone Port Yes
Line In Port Yes
S/PDIF In Port No
S/PDIF Out Port Yes, shared with headphone out


I wished there were karma point in this forum, you guys certainly deserve it!

mormegil
09-04-2009, 03:23 PM
Think I know what's wrong. Just checked the plists I made for Snow and the legacy kexts. Turns out they are for different codecs! Both are 889a but the former is address 3 and the latter is address 2. You need to be certain first which of the two is yours. I've made 2 sets now.

SL 889a 1.7.4 AppleHDA plists:

Gurruwiwi
09-04-2009, 03:52 PM
Dudes!

Just found out more relevant info.

Check this out...

patched with address 3, no verbose message, system profiler looses ports.

patched with address 2, assertion "0" errors in boot, sys profiler shows 1 digital port

Then I saw that the plist mormegil provided had different icons. One is plain white, the other has image. I open the ones that have image with text edit, select save as, name in info.plist and UNCHECK the box that says "If no extension is provided name .txt"

Now this makes a blanc icon plist. I checked, and before it was not .txt, but icon different.

Re-patch address 3 plists, repair, reboot, first boot KP with AppleHDA dependancies, second boot assertion "0", no sound but system profiler does show all ports! This is the first non-vanilla kext that does this! Well done.

Still no sound, but one step closer!!

mormegil
09-04-2009, 04:18 PM
Since you're on a lappy, the only way to properly write your own plists is to create your own codec dump in linux or find one on the internet. Try searching acer laptop forums for example.

The thing is, all the codec dumps we've been using are those for desktop models. Which means 4 analog outs, 2 analog ins at the back and possibly digital ins/outs too. Plus internal ports for connecting to the front connector. Your laptop definitely do not have all these ports and so your layout/pathmaps might be different. So which set is showing all ports correctly in Sys Prof?

Gurruwiwi
09-04-2009, 04:25 PM
What if a port shares 2 connection?

I'll look for my codec dump.

UPDATE: I found this, possible codec dump. The susbsytem is 0x10250146 which maches what my system profiler Device ID number.

its for the same chip, and from a close acer model to mine. Is this the sort of thing you need? never seen a codec dump before. I'll keep searching for my exact dump, it must be around.

Tried posting code, too long. here is the link.

http://74.125.39.104/search?q=cache:VoaIl_R4ekkJ:pastebin.ca/raw/1027475+Vendor+Id:+0x10ec0889+Subsystem+Id:+0x1025 0146&hl=de&ct=clnk&cd=1

Gurruwiwi
09-04-2009, 04:43 PM
Ok, I think this might do it.

A codec dump for acer 6920g -
00:1b.0 0403: 8086:284b (rev 03)

and has the same DeviceID / sybsystem as me.

Mormegil, up for some more of your black magic? :cool:

And if you show me how, I'll be glad to take it from there... but this one HAS to work damn it ! The specs are almost identical to my model !!

mormegil
09-04-2009, 04:53 PM
If you're certain it matches yours, just go through King's guide. He'll guide you step by step. You will understand things more clearly by reading it.

Gurruwiwi
09-04-2009, 05:05 PM
forgot to upload dump...

I'm at work now, so I'll only be able to try later on.

mormegil
09-04-2009, 06:21 PM
Ahh! You have a true 889 codec as opposed to the fake 889 (renamed 885). All the above plists are useless for you then. Also, your pinconfig are different as I expected and you might have to hex edit your binary.

Gurruwiwi
09-04-2009, 08:47 PM
So... what should I attempt next?

mormegil
09-04-2009, 08:56 PM
Try this out

SL 1.7.4 AppleHDA.kext for acer 6920g alc889:

Gurruwiwi
09-04-2009, 09:23 PM
Back to no Audio devices listed.

So far, only vanilla AppleHDA and patched with the first two plist you did for Snow (which I guess are the one he updated the first post with) wake up the ports...

isnt this just frustrating :-/

mormegil
09-04-2009, 09:47 PM
Sorry. Nothing much I can do if I don't have your actual codec dump. Will be much easier if we put the guessing out of the picture.

Gurruwiwi
09-04-2009, 10:54 PM
aaaarggg...

tried dumping with voodoohdahelper..

got "dylib" error, which I know I fixed before, fixed it again, ran the dump again, no dylib errors but still

error: IORegistryEntryGetPath returned 0x10000003

I cant find my wifiway linux distro anywhere, so back to google for now...

Why wont voodoo work for me ?

EDIT: Hey ! I found a cool little app that assists in extracting and patching DSDT, containing LOADS of fixes... check it out

http://www.osx86.es/?p=610

english below spanish section

mormegil
09-04-2009, 11:08 PM
Try this:

AppleHDA.kext/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist/IOKitPersonalities/HDA Hardware Config Resource/HDAConfigDefault/10/ConfigData

Change ALL the first HEX value to 3. For example 21871C40 to 31871C40.

If that doesnt work, try 0. For example 21871C40 to 01871C40.

Gurruwiwi
09-04-2009, 11:26 PM
I certainly will !!

But I just tried that app and copied in the HDEF fix, and for the first time EVER I managed to compile a DSDT.aml, zero errors !! (first mpart exactly like you did, second with the missing code that Snow has and I dont that I "complained" about before")

Look what turned up.

Let me just reboot back with vanilla then Voodoo...

Gurruwiwi
09-04-2009, 11:49 PM
New dsdt with both your address 2 and 3 patch bring back "your dsdt" mappings, except audio ID read 889 not 12.

What do you say, keep trying this new dsdt or the one you made?

going to attempt your latest suggestions on your address 2 patched kext...

Gurruwiwi
09-04-2009, 11:57 PM
Mormegil, sorry, got confused. trying to follow your path... after info.plist, I open with text edit and only find

<key>CFBundleVersion</key>
<string>1.7.4a1</string>
<key>IOKitPersonalities</key>
<dict>
<key>HDA Platform Resource</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.driver.AppleHDAPlatformDriver</string>
<key>CommonPeripheralDSP</key>
<array>
<dict>

Slighty confused, because I cannot find the rest you mention

mormegil
09-05-2009, 12:47 AM
Sorry. I've fixed the path. And use my dsdt pls. The one you created is useless. I know it shows up all nice in Sys Prof but you're basically telling it what to show on the screen. I doubt you really have all that ports on your laptop. Showing up in Sound Preferences is all that matters.

ps. that dsdt app is bloody awesome!

vladrxpx
09-05-2009, 02:50 AM
thnx for the guide !!

one question..
I've made a mistake and installed VoodooHDA kext.. sound wokrs..but, microphone doesn't.. being its a beta version of the kext..

is there a way to delete this kext, and do it all over again? (setting up audio) and how do i remove already installed kext ?

thnx !

Gurruwiwi
09-05-2009, 06:23 AM
Delete the kext from folder, then go to spotlight and write "disk utility", choose system drive and click Repair Permissions.

CyCLoBoT
09-05-2009, 08:30 AM
I followed the steps on Page 1 but I noticed that I have more sound coming out of one speaker than the other. I only have 2 speakers an a subwoofer. Does that sound normal or am I doing something wrong with getting the ALC889a to work?

Gurruwiwi
09-05-2009, 06:59 PM
Morm,

Tried both with 3 and 0... just to double check, mind taking a look if I did it right?

back no audio devices listed is system profiler.

because your path still confuses me (yep, read your PM). You seen, inside the plist, ther is no "/HDAConfigDefault/10/ConfigData"

take a look... I went and changed all hex to start with zero in this one, all the way to the bottom.

I noticed some had minus signs before them, this one doesnt becaus I just did it to show you, I replaced S/L/E with vanilla so I had to do it again quick to show you

This is the "0" one

string>????</string>
<key>CFBundleVersion</key>
<string>1.7.4a1</string>
<key>IOKitPersonalities</key>
<dict>
<key>HDA Hardware Config Resource</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.driver.AppleHDAHardwareConfigDriver</string>
<key>HDAConfigDefault</key>
<array>
<dict>
<key>AFGLowPowerState</key>
<data>
AwAAAA==
</data>
<key>CodecID</key>
<integer>083904133</integer>
<key>ConfigData</key>
<data>
AYccQAGHHXABhx4hAYcfAQGnHDABpx0BAace
EwGnH5ABlxwQAZcdMQGXHoEBlx8BAVccUAFX
HUEBVx4BAVcfAQH3HCAB9x3hAfcexQH3HwEB
5xxgAecd4QHnHkUB5x8BAUcc8AFHHQABRx4A
AUcfQAFnHPABZx0AAWceAAFnH0ABdxzwAXcd
AAF3HgABdx9AAbcc8AG3HQABtx4AAbcfQAHH
HPABxx0AAcceAAHHH0AB1xzwAdcdAAHXHgAB
1x9A
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>0</integer>
</dict>
<dict>
<key>CodecID</key>
<integer>0206496384</integer>
<key>ConfigData</key>
<data>
ALccQAC3HXAAtx4hALcfAQDHHDAAxx0BAMce
EwDHH5AA9xwQAPcdMAD3HoEA9x8BAKccUACn
HUAApx4BAKcfAQEXHCABFx3gARcexQEXHwEB
BxxgAQcd4AEHHkUBBx8BANccDwDXHQAA1x4A
ANcfQADnHA8A5x0AAOceAADnH0ABVxwPAVcd
AAFXHgABVx9AAbccDwG3HQABtx4AAbcfQA==
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>0</integer>
</dict>
<dict>
<key>Codec</key>
<string>Cirrus Logic CS4206</string>
<key>CodecID</key>
<integer>069697542</integer>
<key>ConfigData</key>
<data>
ABcgAAAXIQAAFyJrABcjEACXHFAAlx1wAJce
IQCXHwEApxxBAKcdYQCnHhAApx+QALccQAC3
HWEAtx4QALcfkADHHCAAxx0BAMcegQDHH5EA
1xwQANcdAQDXHqAA1x+QAOcc8ADnHQAA5x4A
AOcfQAD3HDAA9x0BAPcexQD3HwEBBxxgAQcd
AQEHHkUBBx8BAScc8AEnHQABJx4AAScfQAFX
HPABVx0AAVceAAFXH0A=
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>0</integer>
</dict>
<dict>
<key>Codec</key>
<string>Wolfson WM8800</string>
<key>CodecID</key>
<integer>051708928</integer>
<key>ConfigData</key>
<data>
ABcgAAAXIQAAFyIAABcjAAEXHFABFx1AARce
KwEXHwEBJxxAAScdAQEnHhABJx+QATccQQE3
HQEBNx4QATcfkADXHBAA1x0BANceoADXH5AA
xxwgAMcdMADHHosAxx8BAPccYAD3HeAA9x5L
APcfAQEHHDABBx3gAQceywEHHwEA5xzwAOcd
AADnHgAA5x9AAWcc8AFnHQABZx4AAWcfQA==
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>0</integer>
</dict>
<dict>
<key>CodecID</key>
<integer>0088470912</integer>
<key>ConfigData</key>
<data>
AKccUACnHUAApx4rAKcfAQC3HBAAtx0BALce
oAC3H5AAxxxAAMcdAQDHHhAAxx+QANcc8ADX
HQAA1x4AANcfQADnHPAA5x0AAOceAADnH0AA
9xwgAPcdMAD3HosA9x8BAQccYAEHHeABBx5L
AQcfAQEXHDABFx3gARceywEXHwEBVxzwAVcd
AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>2</integer>
</dict>
<dict>
<key>CodecID</key>
<integer>0088470912</integer>
<key>ConfigData</key>
<data>
AKccUACnHUAApx4rAKcfAQC3HBAAtx0BALce
oAC3H5AAxxxAAMcdAQDHHhAAxx+QANccQQDX
HQEA1x4QANcfkADnHPAA5x0AAOceAADnH0AA
9xwgAPcdMAD3HosA9x8BAQccYAEHHeABBx5L
AQcfAQEXHDABFx3gARceywEXHwEBVxzwAVcd
AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>4</integer>
</dict>
<dict>
<key>CodecID</key>
<integer>0088470912</integer>
<key>ConfigData</key>
<data>
AKccQACnHUAApx4rAKcfAQC3HBAAtx0BALce
oAC3H5AAxxwwAMcdAQDHHhAAxx+QANcc8ADX
HQAA1x4AANcfQADnHPAA5x0AAOceAADnH0AA
9xwgAPcdMAD3HosA9x8BAQccUAEHHeABBx5L
AQcfAQEXHPABFx0AARceAAEXH0ABVxzwAVcd
AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>6</integer>
</dict>
<dict>
<key>CodecID</key>
<integer>0088470912</integer>
<key>ConfigData</key>
<data>
AKccQACnHUAApx4rAKcfAQC3HBAAtx0BALce
oAC3H5AAxxwwAMcdAQDHHhAAxx+QANcc8ADX
HQAA1x4AANcfQADnHPAA5x0AAOceAADnH0AA
9xwgAPcdMAD3HosA9x8BAQccUAEHHeABBx5L
AQcfAQEXHPABFx0AARceAAEXH0ABVxzwAVcd
AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>7</integer>
</dict>
<dict>
<key>CodecID</key>
<integer>-0088470912</integer>
<key>ConfigData</key>
<data>
AKccQACnHUAApx4rAKcfAQC3HPAAtx0AALce
AAC3H0AAxxwwAMcdAQDHHhAAxx+QANcc8ADX
HQAA1x4AANcfQADnHPAA5x0AAOceAADnH0AA
9xwQAPcdMAD3HosA9x8BAQccUAEHHeABBx5L
AQcfAQEXHCABFx3gARceywEXHwEBVxzwAVcd
AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>8</integer>
</dict>
<dict>
<key>CodecID</key>
<integer>-0088470912</integer>
<key>ConfigData</key>
<data>
AKccUACnHUAApx4rAKcfAQC3HBAAtx0BALce
oAC3H5AAxxxAAMcdAQDHHhAAxx+QANccQQDX
HQEA1x4QANcfkADnHPAA5x0AAOceAADnH0AA
9xwgAPcdMAD3HosA9x8BAQccYAEHHeABBx5L
AQcfAQEXHDABFx3gARceywEXHwEBVxzwAVcd
AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>10</integer>
</dict>
<dict>
<key>CodecID</key>
<integer>083904133</integer>
<key>ConfigData</key>
<data>
AZcdMAH3HeE=
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>12</integer>
</dict>
<dict>
<key>CodecID</key>
<integer>-0088470912</integer>
<key>ConfigData</key>
<data>
AKccUACnHUAApx4rAKcfAQC3HBAAtx0BALce
oAC3H5AAxxxAAMcdAQDHHhAAxx+QANcc8ADX
HQAA1x4AANcfQADnHPAA5x0AAOceAADnH0AA
9xwgAPcdMAD3HosA9x8BAQccYAEHHeABBx5L
AQcfAQEXHDABFx3gARceywEXHwEBVxzwAVcd
AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>14</integer>
</dict>
<dict>
<key>CodecID</key>
<integer>-0088470912</integer>
<key>ConfigData</key>
<data>
AKccUACnHUAApx4rAKcfAQC3HBAAtx0BALce
oAC3H5AAxxxAAMcdAQDHHhAAxx+QANcc8ADX
HQAA1x4AANcfQADnHPAA5x0AAOceAADnH0AA
9xwgAPcdMAD3HosA9x8BAQccYAEHHeABBx5L
AQcfAQEXHDABFx3gARceywEXHwEBVxzwAVcd
AAFXHgABVx9AAbcc8AG3HQABtx4AAbcfQA==
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>15</integer>
</dict>
<dict>
<key>CodecID</key>
<integer>083904133</integer>
<key>ConfigData</key>
<data>
AUcc8AFHHQABRx4AAUcfQAFXHDABVx1AAVce
AAFXHwEBZxzwAWcdAAFnHgABZx9AAXcc8AF3
HQABdx4AAXcfQAGHHBABhx1AAYceIAGHHwEB
lxwgAZcdMAGXHoABlx8BAaccUAGnHQEBpx4Q
AacfkAG3HPABtx0AAbceAAG3H0ABxxzwAccd
AAHHHgABxx9AAdcc8AHXHQAB1x4AAdcfQAHn
HHAB5x3gAeceRQHnHwEB9xxgAfcd4AH3HsUB
9x8B
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>36</integer>
</dict>
<dict>
<key>CodecID</key>
<integer>083904133</integer>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>63</integer>
<key>MikeyAFGLowPowerState</key>
<data>
AQAAAA==
</data>
</dict>
<dict>
<key>CodecID</key>
<integer>083904133</integer>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>64</integer>
<key>MikeyAFGLowPowerState</key>
<data>
AQAAAA==
</data>
</dict>
<dict>
<key>CodecID</key>
<integer>069697542</integer>
<key>ConfigData</key>
<data>
AMcdMA==
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>77</integer>
</dict>
<dict>
<key>AFGLowPowerState</key>
<data>
AwAAAA==
</data>
<key>CodecID</key>
<integer>069697542</integer>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>06392</integer>
</dict>
</array>
<key>IOClass</key>
<string>AppleHDAHardwareConfigDriver</string>
<key>IOMatchCategory</key>
<string>AppleHDAHardwareConfigDriver</string>
<key>IOProviderClass</key>
<string>AppleHDAHardwareConfigDriverLoader</string>
<key>PostConstructionInitialization</key>
<array>
<dict>
<key>CodecID</key>
<integer>083904133</integer>
<key>Layouts</key>
<array>
<integer>36</integer>
<integer>38</integer>
<integer>52</integer>
<integer>53</integer>
</array>
<key>widgets</key>
<array>
<dict>
<key>MicAttributes</key>
<integer>28</integer>
<key>MicInfo</key>
<string>Sampled on rising edge</string>
<key>NodeID</key>
<integer>39</integer>
<key>PinConfigDefault</key>
<integer>2426405136</integer>
</dict>
</array>
</dict>
<dict>
<key>Codec</key>
<string>Cirrus Logic CS4206</string>
<key>CodecID</key>
<integer>069697542</integer>
<key>Layouts</key>
<array>
<integer>0</integer>
</array>
<key>widgets</key>
<array>
<dict>
<key>NodeID</key>
<integer>22</integer>
<key>PinConfigDefault</key>
<integer>2073742064</integer>
</dict>
</array>
</dict>
<dict>
<key>Codec</key>
<string>Wolfson WM8800</string>
<key>CodecID</key>
<integer>051708928</integer>
<key>Layouts</key>
<array>
<integer>67</integer>
<integer>73</integer>
</array>
<key>widgets</key>
<array>
<dict>
<key>MicInfo</key>
<string>WM8800 External Microphone Virtual Pin Complex</string>
<key>NodeID</key>
<integer>24</integer>
<key>PinConfigDefault</key>
<integer>08020848</integer>
</dict>
</array>
</dict>
</array>
</dict>
</dict>
<key>OSBundleCompatibleVersion</key>
<string>1.0.0d1</string>

megavolkan
09-05-2009, 07:29 PM
Thanks for the guide, i have sound output now but input doesn't work. I can use my mic on leopard on the same input jack (red one) but on snow leo i've tried all ports on the board. None have worked.

My board is GA EP45-DQ6

Is there anyone have a solution for this?

mormegil
09-05-2009, 09:33 PM
<dict>
<key>CodecID</key>
<integer>083904133</integer>
<key>ConfigData</key>
<data>
AZcdMAH3HeE=
</data>
<key>FuncGroup</key>
<integer>1</integer>
<key>LayoutID</key>
<integer>12</integer>
</dict>
You only need to change this part since your layoutid in dsdt is set to 12. All other layouts can be deleted if you want to. Do it to the patched kext I made! Not the vanilla.

And change ConfigData, not CodecID. Use PlistEditPro (http://cid-8b65993ef55cf014.skydrive.live.com/browse.aspx/.Public/OSx86/Snow%20Leopard/Applications%20for%20OSx86%20%7C5aplikacje%7C6?vie w=details) to edit plists. ConfigData should be in the form 21871C40 21871D90 .... Not "AZcdMAH3HeE=" like you see above.

Gurruwiwi
09-05-2009, 10:26 PM
AAAAAH !!

Got it !! Plist editor is a MUST ! thanks for the tip! Rebooting with "0" them "3"... be right back

Gurruwiwi
09-05-2009, 10:48 PM
MORM !! :)

"3" did nothing but...

"0" DID !!! (weird, but...)

During verbose boot it trigger double the errors assertion"0"

I have different port mapping in sys profiler (my system spec precisely!) , but I now have options in system preferences and audio icon displays there is sound!!!

One unknown mapped output

But there isnt any sound looool !! nothing... I'm x32 now, will try 64, then boot into linux to try to get dump.

You ROCK !

Gurruwiwi
09-05-2009, 11:01 PM
:-& F*CK man...

I just rebooted into x64, nothing, back to normal port mapping, no sound.

So I wanted to aggregate device (never done it, wanted to try and see), so I reboot into x32

GONE ! nothing, just like before... nothing in system preferences...

What is going on?

:(

mormegil
09-05-2009, 11:12 PM
Ah finally it worked :) I had to manually do your ConfigData from scratch using the codec dump you linked. Glad I did everything right. All ports properly mapped and all.

Booting into x64 has nothing to do with dsdt or applehda.

and btw, the unknown output might be your HDMI audio :)

Gurruwiwi
09-05-2009, 11:23 PM
Right, but I have NO SOUND !

Plus, I went into a linux live CD, got the dumps, reboot x32 and now the mapping is again different showing only digital out, and again nothing in system prefenrences.

anyways, here is the dump.

used

cat /proc/asound/card0/codec#2 > ~/Desktop/code_dump2.txt

because codec 1 brought back only

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

mormegil
09-05-2009, 11:33 PM
You've got it once. I take it the problem is solved. Just retrace your steps.

That's only the hdmi portion btw. Try codec0.

Gurruwiwi
09-05-2009, 11:41 PM
Man, I did nothing except normal reboot ...

I go get the codecs

ajacocks
09-06-2009, 08:28 AM
Just like others here, I'm trying to fix a silent 10.6 machine. My machine is a Clevo M570RU-U, with an ICH8M, and a Realtek 883 codec. I've been through TheKing's procedure to create a patched AppleHDA.kext, adapted to Snow Leopard with the excellent information in this thread. The machine runs 10.6 32bit, since I need functional VMware Fusion.

I tried the easy solution of VoodooHDA.kext, but that does nothing for me, and 'voodoohelper -dump' returns the 'error: IORegistryEntryGetPath returned 0x10000003' error that indicates that Voodoo HDA found no devices functional.

My issue is that I don't see any audio devices, in System Profiler, and, of course, there are no input or output devices available under System Preferences/Sound. This machine never ran 10.5, so I don't have exiting functional codecs to work from.

I am attaching the source for my dsdt.aml, and all the items that were necessary to follow TheKing's document, and the resultant Info.plist files. I'm also attaching the codec dumps. Last, I'm attaching a screen capture from my System Profiler, Audio section.

If anyone has time, and is willing to take a look, it would be greatly appreciated.

Thanks!

Snow
09-06-2009, 09:39 AM
Hi m8,

As the guide suggests this is for 889a and even then some people have issues with that codec so for the moment I cannot help you with that.
As for VM I use Parallels 5 in Snow Leopard 64bit running Windows 7 64bit without issues (except maybe Aero interface enabling/disabling whenever it feels liek it)
I have encoded 2 vids with ConvertXtoDVD (the reason I need a VM) and the output was perfect.

I'll take a peek at your file but cannot promise anything (noob at this)

Parallels 5 in Snow Leopard 64bit running Windows 7 64bit

http://i27.tinypic.com/90u445.png

mormegil
09-06-2009, 01:21 PM
Man, I did nothing except normal reboot ...

I go get the codecs

The prob might be with codec address (the leading hex that I asked you to change). One time it works with 3 and next it works with 0. Try this:

/* Sample */
"ConfigData",
Buffer (0xA0)
{
/* 0000 */ 0x21, 0x87, 0x1c, 0x40, 0x21, 0x87, 0x1d, 0x90,
/* 0008 */ 0x21, 0x87, 0x1e, 0xA1, 0x21, 0x87, 0x1f, 0x01,
/* 0010 */ 0x21, 0x97, 0x1c, 0x50, 0x21, 0x97, 0x1d, 0x90,
/* 0018 */ 0x21, 0x97, 0x1e, 0xA1, 0x21, 0x97, 0x1f, 0x02,
/* 0020 */ 0x21, 0xa7, 0x1c, 0x60, 0x21, 0xa7, 0x1d, 0x30,
/* 0028 */ 0x21, 0xa7, 0x1e, 0x81, 0x21, 0xa7, 0x1f, 0x01,
/* 0030 */ 0x21, 0xb7, 0x1c, 0x70, 0x21, 0xb7, 0x1d, 0x40,
/* 0038 */ 0x21, 0xb7, 0x1e, 0x21, 0x21, 0xb7, 0x1f, 0x02,
/* 0040 */ 0x21, 0x47, 0x1c, 0x10, 0x21, 0x47, 0x1d, 0x40,
/* 0048 */ 0x21, 0x47, 0x1e, 0x11, 0x21, 0x47, 0x1f, 0x01,
/* 0050 */ 0x21, 0x57, 0x1c, 0x20, 0x21, 0x57, 0x1d, 0x10,
/* 0058 */ 0x21, 0x57, 0x1e, 0x01, 0x21, 0x57, 0x1f, 0x01,
/* 0060 */ 0x21, 0x67, 0x1c, 0x30, 0x21, 0x67, 0x1d, 0x60,
/* 0068 */ 0x21, 0x67, 0x1e, 0x01, 0x21, 0x67, 0x1f, 0x01,
/* 0070 */ 0x21, 0x77, 0x1c, 0x80, 0x21, 0x77, 0x1d, 0x20,
/* 0078 */ 0x21, 0x77, 0x1e, 0x01, 0x21, 0x77, 0x1f, 0x01,
/* 0080 */ 0x21, 0xe7, 0x1c, 0x90, 0x21, 0xe7, 0x1d, 0x61,
/* 0088 */ 0x21, 0xe7, 0x1e, 0x4b, 0x21, 0xe7, 0x1f, 0x01,
/* 0090 */ 0x21, 0xf7, 0x1c, 0xa0, 0x21, 0xf7, 0x1d, 0x01,
/* 0098 */ 0x21, 0xf7, 0x1e, 0xcb, 0x21, 0xf7, 0x1f, 0x01
},

Insert it in your dsdt above "layout-id". It's for my codec (alc888). You'll have to convert your "ConfigData" in plist into it. Just separate them into bytes and add "0x" in front.

Example: 21871c40 -> 0x21, 0x87, 0x1c, 0x40

Also
Buffer (0xA0) needs to be changed. Mine has a total of 160 bytes if you count above. So 160 (decimal) = A0 (hex)

Lastly
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x08)
Increase the size "0x08" if you're getting compile error.

What this does is hopefully set your codec address in dsdt so it stays fixed. Try codec address 0 thru 3 and report back.

mormegil
09-06-2009, 01:39 PM
@: ajacocks

Why are your kexts empty?

Your codec 10ec0883 is not natively supported. You'll have to patch the AppleHDA binary. You want to replace a supported codec such as 10ec0885 (alc885,889a).

So open up the AppleHDA binary in AppleHDA.kext/Contents/MacOS with hex edit.

Search for "8508ec10" (byte-flip of "10ec0885") and replace with "8308ec10" (byte-flip of "10ec0883").
There should be 4 instances in the SL kext.

Gurruwiwi
09-06-2009, 02:31 PM
Holy sh...

Ok, off to work on that right now!

EDIT: LOL.. morm, I just booted into SL to start editing DSDT again, did nothing at all except pop in the SL HDD, no sound, but audio is fully mapped, and present in system preferences, active audio icon in taskbar !!

Tried playing around with agg.devices... no sound. Seems the built in audio's master volume is completely down and greyed out.

Going to try to edit that hex in, hope I do it right...

mormegil
09-06-2009, 03:00 PM
If they are in sound pref then there should be sound! Have you tried plugging a headphone or mic to test? Internal speakers might be too soft to hear.

edit: My master volume in aggregate device is also greyed out for every port. Doesn't really matter.

Gurruwiwi
09-06-2009, 03:07 PM
Quick question. Do I just copy the one you pasted into my dsdt then modify ConfigData to match it, or the other way around?

ajacocks
09-06-2009, 03:08 PM
mormegil,

Ahhh...thanks for filling me in, about the codec. Is there nothing else that needs doing, to patch the codec, other than changing the identifier from 10ec0885 to 10ec0883? That seems very simple. I'll give that a shot, though, and see what happens.

EDIT: No luck with the edited codec, either. I think something's wrong with my DSDT.aml, though, since the System Profiler still shows no device information, as in that picture that I uploaded. Do you see anything that I missed?

My kexts aren't really empty, I just left out everything but the Info.plist files, to save space in the upload. I have uploaded my entire AppleHDA.kext file, attached to this post. How do my changes look? I used layout 12, as the guide suggested.

Thanks!

mormegil
09-06-2009, 03:46 PM
@ Gurruwiwi

Doesn't matter. As long as it appears as above but with your configdata instead.

@ ajacocks

You seem to be doing fine with King's guide. I see all the required files in your attached package.
Once you're done patching the binary, you'll have to fix the plists. Your codec id in decimal should be changed to 283904131.
Your dsdt is fine. All it does is inject your audio. As long as you see an audio device in Sys Profiler it's all good.

Edit: I just saw the pic u uploaded. It's supposed to be that way if you haven't got the working plists.

Gurruwiwi
09-06-2009, 03:56 PM
Morm, while I was waiting I ran a small test. I think it can be useful for others to know, to not judge a KP on its own.

I cyclically rebooted in verbose, changing nothing. There is a sort of a pattern.

First reboot from "mapped - sound- but no audio heard" status


- KP
- 1x set of "Assertion "0"" errors during boot - no mapping
- 1x set of "Assertion "0"" errors during boot - no mapping
- 2x set of "Assertion "0"" errors during boot - mapping - audio shown - no sound
- 1x set of "Assertion "0"" errors during boot - no mapping
- 1x set of "Assertion "0"" errors during boot - no mapping
- KP
- 1x set of "Assertion "0"" errors during boot - no mapping
- 1x set of "Assertion "0"" errors during boot - no mapping
- KP
- 1x set of "Assertion "0"" errors during boot - no mapping
- 2x set of "Assertion "0"" errors during boot - mapping - audio shown - no sound
- KP
- 1x set of "Assertion "0"" errors during boot - no mapping
- 2x set of "Assertion "0"" errors during boot - mapping - audio shown - no sound
- 1x set of "Assertion "0"" errors during boot - no mapping
- 2x set of "Assertion "0"" errors during boot - mapping - audio shown - no sound
- 1x set of "Assertion "0"" errors during boot - no mapping
- 2x set of "Assertion "0"" errors during boot - mapping - audio shown - no sound

Seems something is being re-set... could it be a similar CMOS reset bug?

Going to try the DSDT and ConfigData, just waiting for your input as it looks like a hell of a lot of work...

EDIT: You posted while I was typing. Going to try it now.

Forgot to mention. When audio is mapped, I tried plugging in headphones and microfphone. Mic does nothing, but headphone makes system profiler hang. It does seem to try switching devices, but nothing happens. Beach ball spins round, OS stops responding, have to force quit profiler, but it struggles to do it. Once removed it manages to force quit, and OS response is back

ajacocks
09-06-2009, 04:24 PM
OK, I made all the changes, mormegil, to AppleHDA.kext, including replacing 8508ec10 with 8308ec10. However, I still have no sound.

I noticed something interesting in my system.log, though:

9/6/09 11:11:55 AM com.apple.kextd[10] Can't load /System/Library/Extensions/AppleHDA.kext - no code for running kernel's architecture.
9/6/09 11:11:55 AM com.apple.kextd[10] Failed to load /System/Library/Extensions/AppleHDA.kext - (libkern/kext) requested architecture/executable not found.
9/6/09 11:11:55 AM com.apple.kextd[10] Load com.apple.driver.AppleHDA failed; removing personalities.

That's rather odd. I never changed any executables in the .kext file. Any idea what's going on, here? I'm running 32bit 10.6.

EDIT: I replaced AppleHDA.kext from my 10.6 install DVD, and that error went away. The failed sound assertions are back, of course, since this is a stock kext. I'm going to try putting the Info.plist files back, first, then hex editing the AppleHDA file, to see which broke it.

Thanks!

Thanks!

mormegil
09-06-2009, 04:40 PM
That applehda.kext you posted earlier. Is that patched or not? and why do you have info.plist in root of AppleHDAHardwareConfigDriver.kext/AppleHDAPlatformDriver.kext? It shdn't be there. Should be under Contents.

Gurruwiwi
09-06-2009, 04:47 PM
Ok

got my configdata to text pad, then copied to dsdt format, had to add 4 lines from your quote above, so I just followed the line numbering. Could that imply I need a higher hex "buffer" values, if mine is 4 lines longer its not going to be 160byte. How to calculate this and transform to hex value?

Mind taking a look to see if I did it right? Plus, when you say "above layout-id", you did mean after right?

Tried recompiling, got 27 errors!

Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x08)
{
"layout-id",
Buffer (0xA0)
{
/* 0000 */ 0x01, 0x87, 0x1c, 0x40, 0x01, 0x87, 0x1d, 0x90,
/* 0008 */ 0x01, 0x87, 0x1e, 0xA1, 0x01, 0x87, 0x1f, 0x02,
/* 0010 */ 0x01, 0x97, 0x1c, 0x50, 0x01, 0x97, 0x1d, 0x11,
/* 0018 */ 0x01, 0x97, 0x1e, 0x11, 0x01, 0x97, 0x1f, 0x41,
/* 0020 */ 0x01, 0xa7, 0x1c, 0x60, 0x01, 0xa7, 0x1d, 0x30,
/* 0028 */ 0x01, 0xa7, 0x1e, 0x81, 0x01, 0xa7, 0x1f, 0x02,
/* 0030 */ 0x01, 0xb7, 0x1c, 0x70, 0x01, 0xb7, 0x1d, 0x11,
/* 0038 */ 0x01, 0xb7, 0x1e, 0x11, 0x01, 0xb7, 0x1f, 0x41,
/* 0040 */ 0x01, 0x47, 0x1c, 0x10, 0x01, 0x47, 0x1d, 0x01,
/* 0048 */ 0x01, 0x47, 0x1e, 0x13, 0x01, 0x47, 0x1f, 0x99,
/* 0050 */ 0x01, 0x57, 0x1c, 0x20, 0x01, 0x57, 0x1d, 0x10,
/* 0058 */ 0x01, 0x57, 0x1e, 0x21, 0x01, 0x57, 0x1f, 0x02,
/* 0060 */ 0x01, 0x67, 0x1c, 0x30, 0x01, 0x67, 0x1d, 0x11,
/* 0068 */ 0x01, 0x67, 0x1e, 0x11, 0x01, 0x67, 0x1f, 0x41,
/* 0070 */ 0x01, 0x77, 0x1c, 0x80, 0x01, 0x77, 0x1d, 0x11,
/* 0078 */ 0x01, 0x77, 0x1e, 0x11, 0x01, 0x77, 0x1f, 0x41,
/* 0080 */ 0x01, 0xe7, 0x1c, 0x90, 0x01, 0xe7, 0x1d, 0x11,
/* 0088 */ 0x01, 0xe7, 0x1e, 0x45, 0x01, 0xe7, 0x1f, 0x02,
/* 0090 */ 0x01, 0xf7, 0x1c, 0xa0, 0x01, 0xf7, 0x1d, 0x11,
/* 0098 */ 0x01, 0xf7, 0x1e, 0x11, 0x01, 0xf7, 0x1f, 0x41,
/* 0100 */ 0x01, 0x27, 0x1c, 0xb0, 0x01, 0x27, 0x1d, 0x01,
/* 0108 */ 0x01, 0x27, 0x1e, 0xA3, 0x01, 0x27, 0x1f, 0x99,
/* 0110 */ 0x01, 0x17, 0x1c, 0xc0, 0x01, 0x17, 0x1d, 0x11,
/* 0118 */ 0x01, 0x17, 0x1e, 0x56, 0x01, 0x17, 0x1f, 0x18
},
{
0x0C, 0x00, 0x00, 0x00
},

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

mormegil
09-06-2009, 04:48 PM
Replace the plists to the correct locations

ajacocks
09-06-2009, 04:52 PM
Mormegil,

Thanks for taking so much time to help me.

I went back, and fixed the locations of the Info.plist files, and re-hexedited the AppleHDA file. I now get the AppleHDA.kext to load, but I get the following exceptions in my system.log:

9/6/09 11:42:27 AM kernel Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
9/6/09 11:42:27 AM kernel Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit

I'll update this post, in a second, with the Info.plist files replaced with the ones that you sent me. What did you change?

Attached is the appleHDA.kext that caused those assertions to fail.

Thanks!

mormegil
09-06-2009, 04:54 PM
@ Gurru

Read again what I wrote. What you have done is completely replace your layoutid with your configdata. I said copy the WHOLE code into your dsdt. Not replace stuff. Wheres the "ConfigData" header?

Looks like I have to do everything for you then:
Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x0B)
{
"layout-id",
Buffer (0x04)
{
0x0C, 0x00, 0x00, 0x00
},
"ConfigData",
Buffer (0xC0)
{
/* 0000 */ 0x01, 0x87, 0x1c, 0x40, 0x01, 0x87, 0x1d, 0x90,
/* 0008 */ 0x01, 0x87, 0x1e, 0xA1, 0x01, 0x87, 0x1f, 0x02,
/* 0010 */ 0x01, 0x97, 0x1c, 0x50, 0x01, 0x97, 0x1d, 0x11,
/* 0018 */ 0x01, 0x97, 0x1e, 0x11, 0x01, 0x97, 0x1f, 0x41,
/* 0020 */ 0x01, 0xa7, 0x1c, 0x60, 0x01, 0xa7, 0x1d, 0x30,
/* 0028 */ 0x01, 0xa7, 0x1e, 0x81, 0x01, 0xa7, 0x1f, 0x02,
/* 0030 */ 0x01, 0xb7, 0x1c, 0x70, 0x01, 0xb7, 0x1d, 0x11,
/* 0038 */ 0x01, 0xb7, 0x1e, 0x11, 0x01, 0xb7, 0x1f, 0x41,
/* 0040 */ 0x01, 0x47, 0x1c, 0x10, 0x01, 0x47, 0x1d, 0x01,
/* 0048 */ 0x01, 0x47, 0x1e, 0x13, 0x01, 0x47, 0x1f, 0x99,
/* 0050 */ 0x01, 0x57, 0x1c, 0x20, 0x01, 0x57, 0x1d, 0x10,
/* 0058 */ 0x01, 0x57, 0x1e, 0x21, 0x01, 0x57, 0x1f, 0x02,
/* 0060 */ 0x01, 0x67, 0x1c, 0x30, 0x01, 0x67, 0x1d, 0x11,
/* 0068 */ 0x01, 0x67, 0x1e, 0x11, 0x01, 0x67, 0x1f, 0x41,
/* 0070 */ 0x01, 0x77, 0x1c, 0x80, 0x01, 0x77, 0x1d, 0x11,
/* 0078 */ 0x01, 0x77, 0x1e, 0x11, 0x01, 0x77, 0x1f, 0x41,
/* 0080 */ 0x01, 0xe7, 0x1c, 0x90, 0x01, 0xe7, 0x1d, 0x11,
/* 0088 */ 0x01, 0xe7, 0x1e, 0x45, 0x01, 0xe7, 0x1f, 0x02,
/* 0090 */ 0x01, 0xf7, 0x1c, 0xa0, 0x01, 0xf7, 0x1d, 0x11,
/* 0098 */ 0x01, 0xf7, 0x1e, 0x11, 0x01, 0xf7, 0x1f, 0x41,
/* 0100 */ 0x01, 0x27, 0x1c, 0xb0, 0x01, 0x27, 0x1d, 0x01,
/* 0108 */ 0x01, 0x27, 0x1e, 0xA3, 0x01, 0x27, 0x1f, 0x99,
/* 0110 */ 0x01, 0x17, 0x1c, 0xc0, 0x01, 0x17, 0x1d, 0x11,
/* 0118 */ 0x01, 0x17, 0x1e, 0x56, 0x01, 0x17, 0x1f, 0x18
},

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

ajacocks
09-06-2009, 05:01 PM
Mormegil,

AAH...I see what you mean about the misplaced Info.plist file in AppleHDAPlatform. I must have typoed a replacement, at some point. Anyway, I replaced those Info.plist files with the ones that you sent, and rebooted. I still get those assertion failures.

Attached current AppleHDA.kext file.

Thanks!

Gurruwiwi
09-06-2009, 05:08 PM
@ Gurruwiwi

Doesn't matter. As long as it appears as above but with your configdata instead.


Morm, please bear with me... this is all brand new territory for me.

I did ask you precisely that, and you replied the quote above!

Ok... so I copy exactly what you pasted into my dsdt
Question: Did I place it right like my example above?

Then do what with configdata? Right now it reads like this; its the "0" mod I made. from yesterday that woke up the right port mapping

01871C40 01871D90 01871EA1 01871F02 01971C50 01971D11 01971E11 01971F41 01A71C60 01A71D30 01A71E81 01A71F02 01B71C70 01B71D11 01B71E11 01B71F41 01471C10 01471D01 01471E13 01471F99 01571C20 01571D10 01571E21 01571F02 01671C30 01671D11 01671E11 01671F41 01771C80 01771D11 01771E11 01771F41 01E71C90 01E71D11 01E71E45 01E71F02 01F71CA0 01F71D11 01F71E11 01F71F41 01271CB0 01271D01 01271EA3 01271F99 01171CC0 01171D11 01171E56 01171F18

Today is the day man, it has to be! :mad:

And I am learning like hell with you, I dont want you to do everything for me, I'm loving this experience! I'll surely pass this on to the little league, leaving you big boys to plow away into new territory!

mormegil
09-06-2009, 05:08 PM
@ajacocks
Is your sound working?

@gurru
have you compiled yet? What configdata? in your plist?

Gurruwiwi
09-06-2009, 05:20 PM
Waiting for you input if the example above is correct. You say "place about layout-id" but I think you may have meant "below"

yes, that config data from info.plist inside applehda/AppleHDAHardwareConfigDriver/plist/etc etc

I assume that is the "configdata header" you asked for just now...?

mormegil
09-06-2009, 05:22 PM
it's up there. scroll up.

Gurruwiwi
09-06-2009, 05:24 PM
Man, you last quote (dsdt correctly pasted by you) right now didnt load !! I only just saw it!! Going to compile.

mormegil
09-06-2009, 05:25 PM
Insert it in your dsdt above "layout-id". It's for my codec (alc888). You'll have to convert your "ConfigData" in plist into it. Just separate them into bytes and add "0x" in front.
..........

ajacocks
09-06-2009, 05:26 PM
mormegil,

No, my sound isn't working. I have no input and no output devices listed in the Audio part of System Preferences.

I also get those assertion failures that I pasted in, above, when a sound tries to play.

Thanks so much for continuing to help!

mormegil
09-06-2009, 05:30 PM
Waiting for you input if the example above is correct. You say "place about layout-id" but I think you may have meant "below"

yes, that config data from info.plist inside applehda/AppleHDAHardwareConfigDriver/plist/etc etc

I assume that is the "configdata header" you asked for just now...?
I meant this:

"ConfigData",
Buffer (......

from the code I pasted initially

mormegil
09-06-2009, 05:33 PM
mormegil,

No, my sound isn't working. I have no input and no output devices listed in the Audio part of System Preferences.

I also get those assertion failures that I pasted in, above, when a sound tries to play.

Thanks so much for continuing to help!

Is the codec dump made by yourself or did you download it? You're on a lappy too yeah?

Gurruwiwi
09-06-2009, 05:37 PM
..........

Yes,... and you pasted BELOW layout-id..

Oh please, lets not make a big deal out of this... You know what you are doing, I dont! I'm just following your lead. I am your dsdt bitch right now ;)

repalced the whole hdef section with what you asked. Does not recompile and produces 47 errors. Here is the log and the dsl file I made, and my "clean" dsdt.dsl

Gurruwiwi
09-06-2009, 05:38 PM
You'll be as famous as fassl and netkas man loool... this is a huge deal with many laptop alc889a !! :D

mormegil
09-06-2009, 05:54 PM
Yes,... and you pasted BELOW layout-id..

Oh please, lets not make a big deal out of this... You know what you are doing, I dont! I'm just following your lead. I am your dsdt bitch right now ;)

repalced the whole hdef section with what you asked. Does not recompile and produces 47 errors. Here is the log and the dsl file I made, and my "clean" dsdt.dsl



it's fine. no errors. only warnings which can be ignored.

Gurruwiwi
09-06-2009, 06:05 PM
But I cant compile, no output aml with iaslme app... tried 3 times

What about my codec dump, didnt you need it? Codec 0 was the right one

Gurruwiwi
09-06-2009, 06:15 PM
edit: double post, sorry

ajacocks
09-06-2009, 06:30 PM
Is the codec dump made by yourself or did you download it? You're on a lappy too yeah?

Yep, this is a laptop...a 17" desktop replacement. I made the codec dump myself, using a Ubuntu 9.04 x64 livecd, following TheKing's instructions.

Thanks!

mormegil
09-06-2009, 07:36 PM
Yep, this is a laptop...a 17" desktop replacement. I made the codec dump myself, using a Ubuntu 9.04 x64 livecd, following TheKing's instructions.

Thanks!

try this set

ajacocks
09-06-2009, 08:20 PM
mormegil,

Thanks, but no luck that way, either:

9/6/09 3:09:51 PM kernel Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 1459 goto Exit
9/6/09 3:09:51 PM kernel Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-174.1.1/AppleHDA/AppleHDADriver.cpp" at line 172 goto Exit

I did notice that System Profiler lists the audio device as ID 12. I'm assuming that came from my DSDT, but I hadn't noticed it. (attached picture)

Thanks!

Gurruwiwi
09-06-2009, 08:29 PM
You're having similar issues as me, same "goto" lines etc.

Going to try kings tutorial once more, now that I've got my correct codecs, but I always seem to have issues recompiling dsdt... Why wont iaslme let me recompile?

Gurruwiwi
09-06-2009, 09:31 PM
Morm,

Following Kings guide, I'm already stuck. Downloaded graphviz and codecgraph, followed everything exactly (not really a big deal) - but when I type in the terminal the "/codecgraph codec_dump.txt" it brings back

Codec: Realtek ALC889
Generating codec_dump.txt.svg
Format: "svg" not recognized. Use one of:
Big-Bang-MacBook-Pro:codecgraph bigbang$

Whats wrong ??

ajacocks
09-06-2009, 09:55 PM
Guru,

What version of codecgraph are you using? When I try it, it works fine:

[~/Documents/codec/codecgraph-20090522]
ajacocks@telemachus$ ./codecgraph ~/Documents/codec/CodecDump/card0-codec#0.txt
Codec: Realtek ALC883
Generating card0-codec#0.txt.svg
[~/Documents/codec/codecgraph-20090522]
ajacocks@telemachus$ file card0-codec#0.txt.svg
card0-codec#0.txt.svg: XML 1.0 document text
[~/Documents/codec/codecgraph-20090522]
ajacocks@telemachus$ ls -l card0-codec#0.txt.svg
-rw-r--r-- 1 ajacocks staff 114569 Sep 6 16:51 card0-codec#0.txt.svgThanks!

Gurruwiwi
09-06-2009, 10:05 PM
The one from king's guide, and the only one available in the developer's download page.

Could you do it form me please?

ajacocks
09-06-2009, 10:28 PM
Sure, attached are the results.

- Alex

Gurruwiwi
09-06-2009, 10:42 PM
Oh man, that was super! On to the next part, windows and voodoohelper dumps

Update: Again... I had forgotten about it. voodoohelper can't dump. Says;

error: IORegistryEntryGetPath returned 0x10000003


:mad:

morm ?

:-/

mormegil
09-07-2009, 12:15 AM
Oh man, that was super! On to the next part, windows and voodoohelper dumps

Update: Again... I had forgotten about it. voodoohelper can't dump. Says;

error: IORegistryEntryGetPath returned 0x10000003


:mad:

morm ?

:-/
I've fixed your dsdt. Dunno if it'll work

sangmanh
09-07-2009, 12:34 AM
hello, mormegil (http://www.infinitemac.com/member.php?u=10120)~
sorry to bothering you.

I read the your post about alc888 (this post, #8)
I downloaded attached file, but that file was broken.
It's not extract properly.

so, could you plz re-upload AppleHDA.kext about alc888?

ajacocks
09-07-2009, 03:32 AM
Mormegil,

Does the fact that voodoohelper can't dump, for me either, mean anything? I'm not quite sure where else to go from here.

Thanks!

Gurruwiwi
09-07-2009, 12:35 PM
So i tried the new dsdt Morm... and it broke my install again. Don't understand why, I deleted the new dsdt, then applehda, the put it back in, tried old dsdt... nothing. KP's mid way from "unkown" process, or gets passed that, and blue/black blinking before desktop. Will have to restore yet again and try again fresh with the new dsdt. Whats up with this ?!?

mormegil
09-07-2009, 12:43 PM
hello, mormegil (http://www.infinitemac.com/member.php?u=10120)~
sorry to bothering you.

I read the your post about alc888 (this post, #8)
I downloaded attached file, but that file was broken.
It's not extract properly.

so, could you plz re-upload AppleHDA.kext about alc888?

I tried downloading it and it extracts fine. Try it again.

mormegil
09-07-2009, 12:47 PM
Mormegil,

Does the fact that voodoohelper can't dump, for me either, mean anything? I'm not quite sure where else to go from here.

Thanks!

Do you have voodoohda installed all this time? When you're using patched applehda? same goes to gurru

Gurruwiwi
09-07-2009, 02:12 PM
Can't remember, but will try it. Install voodoo, repair, reboot and run helper right?

I''ve restored install with new dsdt.

With vanilla, either device ID=0 or no device ID.

With the latest appleHDA address 0, the reboot cycle is the same. Kp, device ID 12 with good mappin (mic, heaphone etc, but not my spec) or just only digital port, then KP etc etc - I never saw my spec mapping though

I'll try address 3 although it did nothing last time.

Morm, I've been trying with patched appleHDA using my previous "generic codec dumped" dsdt right?

Dont I have to patch a new one now that the dsdt comes from my correct linux codec dump?

ajacocks
09-07-2009, 02:20 PM
Do you have voodoohda installed all this time? When you're using patched applehda? same goes to gurru

Mormegil,

No, I don't. I just have tried voodoohda, in the past, in the effort to get it to make a dump.

Thanks!

Gurruwiwi
09-07-2009, 02:31 PM
I just tried installing 2 or 3 different voodooHDA, and booted in 32 just to be sure (many arent 64bit ready), and voodoohelper still puts out the same error. On the way my card "woke up" like before, but now sound, so it seems the new dsdt does not seem to be a "step back"

I am still puzzled why after a couple of repairs, if I change dsdt, it breaks my install... any theories? lol

Morm, going back to guessing, is AppleHDA that still needs fine tuning for my system?

mormegil
09-07-2009, 05:29 PM
Mormegil,

No, I don't. I just have tried voodoohda, in the past, in the effort to get it to make a dump.

Thanks!
K.. I thought it was voodoohda that was ----ing around when you have a patched applehda. Never use them together!

Well, I've seriously run out of ideas why it's not working for you guys. Definitely something weird going on when it comes to laptops.

And Gurru, I suggest you put your restore disk away and get to the root of the problem. You're going nowhere by just restoring your install at the first sign of KP.

Gurruwiwi
09-07-2009, 06:53 PM
Morm,

I greatly appreciate your help, I do.

But, though dsdt n00b, I'm certainly not OSX illiterate, on the contrary. Been at this since early Tiger. I know what a KP is and how to handle them, and I am telling you that, possibly exactly because of this weird alc889a behaviour, there is a reset going on that has nothing to do with your dsdt applHDA etc... but it doesnt like dsdt being changed, and when I f*cking need to restore its because I cannot bring the system back up. safe boot too.

What would you do, if suddenly, right after nvdresman blacks out and brings up your desktop, it instead flashed black and blue in 5-10 second interval, having just a little white cursor at the top left, where you can actually type from your keyboard strange characters (that dont match what you type) right into a pitch black screen?

And the reboot cycles, which are far from typical ? either a kext works, or it doesnt, or it KP's... never heard of a kext that did all three !

Even removing all video kexts, removing com.boot.apple.plist strings, removing dsdt, nothing works to bring my system back up.

I have explained this phenomena before, and that is the only reason I have to restore from a CCC image. It takes 7 minutes, fix UUID, and back to action.

And this system is rock solid, except when tampering with audio. I've thrown at it highly intensive tasks (protools fully loaded with plugins with reason rewiring) and it behaves like a charm. HD video, while having Ubuntu and Windows 7 both running, each on their own screen (spaces). I've tested a for 4-5 days periods non-stop and it is rock solid. Oh, and playing Trackmania virtualized in Win 7.

this to my own disbelief, how smooth and stable. 64bit SL is unbelievable!

I have no issues whatsoever to fix, except audio.

The video f*cks up, and nothing brings it back, if there is please tell me.

There is something definitely going on, and I suspect a sort of CMOS rest bug, similar at least.. look at my reboot cycles. My gfx must crash, possibly because of hdmi audio trying to be used or something on one of those resets...?

Plus, I am still using an AppleHDA which you kindly patched, based on generic alc889a info, now that I finally manage to get my very own codec dumps, why cant we make an appleHDA for my system?

We are so close, why would you jump ship now? I mean, this is the place for exactly this, if you dont feel like sharing anymore, that is absolutely fair, this is a time consuming affair, prone to not working until it does. Just say the word, but please dont imply that I am idiot enough to restore at a sign of a simple KP.

Gurruwiwi
09-07-2009, 08:05 PM
I went back to vanilla AppleHDA and "erratic" reboot issues happen no more. No ports are being mapped, audio device 12, no KP's, asserrtion"0" errors, and in 15 reboots between 32 and 64... no issues whatsoever.

I would again, guess, a good appleHDA patch for my system might fix this thing.

terrorgen
09-08-2009, 03:14 AM
I tried downloading it and it extracts fine. Try it again.

hi m8, i tried downloading it and it doesn't download properly...

if you could, can you please PM me the kexts?

Thanks.

mormegil
09-08-2009, 03:33 AM
hi m8, i tried downloading it and it doesn't download properly...

if you could, can you please PM me the kexts?

Thanks.

Use this plist (http://redirectingat.com/?id=292X457&url=http%3A%2F%2Fwww.mediafire.com%2Fdownload.php% 3Fwonqmmng1zu) and follow this guide (http://www.infinitemac.com/f57/guide-how-to-port-applehda-to-sl-t3981/)

terrorgen
09-08-2009, 03:58 AM
referring to the guide, the LayoutID i got from AppleHDAHardwareConfigDriver.kext was 12, but in the plist it was 888. Should I just change it?

mormegil
09-08-2009, 04:04 AM
Yes. You should be using layout 12 in your dsdt.

terrorgen
09-08-2009, 04:06 AM
I finished editing applehda.kext, put into /E/E of my boot thumb drive, reboot with -x32.

Doesn't work... :(

mormegil
09-08-2009, 04:12 AM
have you injected hdef into dsdt?

terrorgen
09-08-2009, 04:19 AM
yes i did...
anyways, I got sound working by installing it into /S/L/E of the SL drive (I use a flash drive to boot SL)
now it's time to make 5.1 working :)

THANKS for all your hard work!

Snow
09-08-2009, 06:34 AM
ok I think it's best to remove the guide since it doesn't seem to work for anyone. It's that or the one who do get helped don't post back.

What you think Morm? It's like since I've posted the guide you got another full time job solving this stuff ;)

mormegil
09-08-2009, 12:44 PM
Let it run. It covers hdef injection into dsdt which I didn't. Only thing you should change is your dsdt code.

The code starting from Name (BUFA, ResourceTemplate () is not part of HDEF. You can delete them, they might cause confusion.

terrorgen
09-08-2009, 03:14 PM
mormegil, snow...

I am setting up 5.1 using Audio MIDI Setup, but it only works for a while...
now the volume control is greyed out and when I tried to adjust the volume it says something like the device has no output controls... any ideas?

mormegil
09-08-2009, 03:42 PM
It's meant to be that way. You control the individual channel volumes using Audio MIDI setup.

Snow
09-08-2009, 04:48 PM
Correct Mormegilski

Adjust these sliders:

http://a.imagehost.org/0055/Volume.png (http://a.imagehost.org/view/0055/Volume)

Added to guide too

terrorgen
09-08-2009, 10:38 PM
man... lost the pleasure to adjust volume from the keyboard...

ajacocks
09-09-2009, 04:31 AM
mormegil,

Thanks so much for taking so much time to help me. I'm still not sure what I was doing wrong with the codec patching, but my solution turned out to be voodooHDA 0.2.2 64bit, installed in /System/Library/Extensions, and rebuilding the Extensions.mkext. I'm not sure which of the above did the trick, but one of them did, and my laptop is no longer silent.

For purposes of documentation, I have a Clevo M570RU-U, with an Intel 965 chipset, and a Realtek ALC883 codec.

Thanks!

Snow
09-09-2009, 07:49 AM
man... lost the pleasure to adjust volume from the keyboard...

Indeed!

I'm using Creative T5400 speakers with a wired volume/bass control so luckily don't need it.

megavolkan
09-11-2009, 09:41 AM
Hey, anyone knows if sound input is working?
I have a microphone. After applying the 5.1 patch sound is ok but i have no sound input. Internal microphone source in sound settings shows "None". I've tried all ports including output ports as well. None working.

I use an EP45-DQ6 board with ALC889a chip.

Trograin
09-12-2009, 03:24 PM
Thank you SO MUCH mormegil....

I have been struggling for 4 days to get my sound configured. Been changing my dsdt file over and over even if System Profiler showed me all the channels, just because I couldn't get sound to work with any of the thousands AppleHDA.kext's I have tried. Some of them even messed up my system so badly I couldn't logon anymore, so I have reinstalled it 5 times these last 4 days.

Even if System Profiler showed correct info, no device could be found when trying to configure sound.

I have tried replacing info.plist (both) as of this guide and didn't work. Then I saw on the above link http://www.infinitemac.com/f57/guide-how-to-port-applehda-to-sl-t3981/ that it is not just to edit info.plist but also changing some binary with hexedit is needed, hence why it didn't work.

What made my day was actually when I scrolled down this page and saw you had posted your AppleHDA.kext saying "Here's my modified AppleHDA.kext as reference". I downloaded it, used Kext Utility, repaired permissions and rebooted. Never thought anything would fix my sound but when system was booted I suddenly noticed my wonderful lovely little sound icon in the bar had CHANGED :) :) :) :) :)

Now... Where do I send you the money??? ;)

hops
09-12-2009, 09:01 PM
I take back my word. Got full analog 5.1 to work on my onboard alc888!

1. Tweak AppleHDA.kext to detect 3 Line Outputs: Green, Black, Orange.
2. Run Audio Midi Setup
3. Add new Aggregate Device
4. Click on the 3 check boxes corresponding to the 3 Line outs
5. Click on Configure Speakers
6. Select all 3 streams
7. Select Multichannel 5.1
8. Make sure all channels are properly mapped
9. Select Aggregate Device as output under System Preferences>Sound
10. Done

Here's my modified AppleHDA.kext as reference

Thank you so much for posting this! I had not been able to get the ALC888 chipset on my Gigabyte GA-965P-DS3 to work under 10.5. All I had to do was drop your kext onto the Kext Utility, reboot, and now I have sound under 64-bit 10.6. Your work is appreciated!

Cee
09-13-2009, 10:47 PM
I take back my word. Got full analog 5.1 to work on my onboard alc888!


Here's my modified AppleHDA.kext as reference

Can you / or anyone else upload this AppleHDA.kext again ?
I tried to unzip it on 4 machines ( 3 macs , pc ) and all of them failed :(

Snow
09-14-2009, 08:02 AM
Can you / or anyone else upload this AppleHDA.kext again ?
I tried to unzip it on 4 machines ( 3 macs , pc ) and all of them failed :(

http://www.mediafire.com/?f0mmm25zrja

megavolkan
09-14-2009, 09:51 AM
Well at least someone tell me how to re-map microphone input to the regular red mic-in port?

Snow
09-14-2009, 10:14 AM
Can't help you there m8, I'm not using mic, sorry.

Trograin
09-14-2009, 05:13 PM
Well at least someone tell me how to re-map microphone input to the regular red mic-in port?

Got the same problem. Was very happy about finally getting sound to work, but noticed my microphone didn't work. Found a solution just today that it actually works (although I have no idea why this works for my mic, it sounds like it shouldn't), if I plug it in on the other side of green "entry" which is a lightblue I think (not at home atm), then I plug it back into the pink/red for microphone and it works.

I accidentally found it out as I thought I should try to use microphone in all other entries and see if it for some odd reason works (I am no sound guru, those who are probably are laughing at me now as I suppose its impossible :D ).

However this is not a solution Im happy about, replug the mic to lightblue then back where it should be each time I turn on my comp.... Also, this "replugging" for some odd reason messes up the volume, so when I speak it just gets louder and louder until the other person on skype throws his/her headset of :)

Still searching for the magical solution.

hops
09-14-2009, 09:46 PM
Can you / or anyone else upload this AppleHDA.kext again ?
I tried to unzip it on 4 machines ( 3 macs , pc ) and all of them failed :(

After trying several unzip programs, Stuffit Expander was the one that successfully extracted the kext for me.

terrorgen
09-14-2009, 10:21 PM
After trying several unzip programs, Stuffit Expander was the one that successfully extracted the kext for me.

the link above works with the default unzip program in Mac

Trograin
09-14-2009, 11:08 PM
I got an error in safari after downloaded, saying something about not able to extract Stuffit archive. I too had to install Stuffit. But no big deal, theres a trial :)

Got microphone working and with reported perfect sound from several people I forced to talk to me through Skype ;)

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

Method (_DSM, 4, NotSerialized)
{
Store (Package (0x0C)
{
"codec-id",
Buffer (0x04)
{
0x88, 0x08, 0xEC, 0x10
},

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

"device-type",
Buffer (0x07)
{
"ALC888"
},

"PinConfigurations",
Buffer (0x28)
{
/* 0000 */ 0x50, 0x41, 0x01, 0x01, 0x50, 0x40, 0x21, 0x02,
/* 0008 */ 0x30, 0x01, 0x10, 0x90, 0x20, 0x60, 0x01, 0x01,
/* 0010 */ 0x70, 0x20, 0x01, 0x01, 0xA0, 0x90, 0xA1, 0x02,
/* 0018 */ 0x10, 0x30, 0x81, 0x01, 0x40, 0x90, 0xA1, 0x01,
/* 0020 */ 0x60, 0x61, 0x4B, 0x01, 0xF0, 0x01, 0xCB, 0x01
},

"reg",
Buffer (0x28)
{
/* 0000 */ 0x00, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x10, 0xD8, 0x00, 0x02,
/* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00
},

"platformFamily",
Buffer (One)
{
0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}

Found this one at: http://www.insanelymac.com/forum/lofiversion/index.php/t181509.html
Replaced my Device HDEF with this code, then used kexttool to once again try a kext from the package:
http://www.insanelymac.com/forum/index.php?act=attach&type=post&id=53274
Which I found on:
http://www.insanelymac.com/forum/index.php?showtopic=140941&st=200&p=1121902&#entry1121902

I used the kext called "3out2in HDA headphone" in the subfolder "series of LegacyHDA 888 (ALC888)". I have not tried the others but have no need as its fully working for me now :)

Still had mormegils AppleHDA and not the default SL AppleHDA (as I threw it away when mormegils worked for sound atleast). So no idea if osx AppleHDA works, but this one does.

Now it looks like:

Internal Microphone---|---Built-in Microphone
Line In--------------|---Built-in Line input
Digital In------------|--- Built-in Digital Input

I also got a new checkbox which I didn't have in Leopard, saying "Use ambient noise reduction" and it was checked by default.

Finally finished hunting.

Snow
09-15-2009, 07:21 AM
Can you / or anyone else upload this AppleHDA.kext again ?
I tried to unzip it on 4 machines ( 3 macs , pc ) and all of them failed :(

Woops, I thought you asked if someone could upload "his" AppleHDA.kext :)

I upped mine so it will be for ALC889a specific. Sorry about that.

megavolkan
09-15-2009, 08:29 AM
Wow thanks man :D i'll try it when i'm home tonight. Just to make sure, this should be done in dsdt.aml right?? Just to make sure you know :P

I got an error in safari after downloaded, saying something about not able to extract Stuffit archive. I too had to install Stuffit. But no big deal, theres a trial :)

Got microphone working and with reported perfect sound from several people I forced to talk to me through Skype ;)

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

Method (_DSM, 4, NotSerialized)
{
Store (Package (0x0C)
{
"codec-id",
Buffer (0x04)
{
0x88, 0x08, 0xEC, 0x10
},

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

"device-type",
Buffer (0x07)
{
"ALC888"
},

"PinConfigurations",
Buffer (0x28)
{
/* 0000 */ 0x50, 0x41, 0x01, 0x01, 0x50, 0x40, 0x21, 0x02,
/* 0008 */ 0x30, 0x01, 0x10, 0x90, 0x20, 0x60, 0x01, 0x01,
/* 0010 */ 0x70, 0x20, 0x01, 0x01, 0xA0, 0x90, 0xA1, 0x02,
/* 0018 */ 0x10, 0x30, 0x81, 0x01, 0x40, 0x90, 0xA1, 0x01,
/* 0020 */ 0x60, 0x61, 0x4B, 0x01, 0xF0, 0x01, 0xCB, 0x01
},

"reg",
Buffer (0x28)
{
/* 0000 */ 0x00, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x10, 0xD8, 0x00, 0x02,
/* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00
},

"platformFamily",
Buffer (One)
{
0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}

Found this one at: http://www.insanelymac.com/forum/lofiversion/index.php/t181509.html
Replaced my Device HDEF with this code, then used kexttool to once again try a kext from the package:
http://www.insanelymac.com/forum/index.php?act=attach&type=post&id=53274
Which I found on:
http://www.insanelymac.com/forum/index.php?showtopic=140941&st=200&p=1121902&#entry1121902

I used the kext called "3out2in HDA headphone" in the subfolder "series of LegacyHDA 888 (ALC888)". I have not tried the others but have no need as its fully working for me now :)

Still had mormegils AppleHDA and not the default SL AppleHDA (as I threw it away when mormegils worked for sound atleast). So no idea if osx AppleHDA works, but this one does.

Now it looks like:

Internal Microphone---|---Built-in Microphone
Line In--------------|---Built-in Line input
Digital In------------|--- Built-in Digital Input

I also got a new checkbox which I didn't have in Leopard, saying "Use ambient noise reduction" and it was checked by default.

Finally finished hunting.

Trograin
09-15-2009, 10:55 AM
Yes, dsdt.aml. Its for ALC888. Good luck and hope it works just as good for you as it worked on my computer.

megavolkan
09-15-2009, 06:55 PM
Hey, i've tried to insert the code into my dsdt but i cannot compile dsdt.dsl file with iaslme

it always gives error:

/Users/volkan/Desktop/Hackintosh/dsdt.dsl 5584:
Error 4063 -

and something followed like:

Object does not exist ^ (\_SB.MEM._CRS._Y0E._BAS)

i even tried the windows version iasl.exe gave the same errors.

Any ideas? I've attached the dsl and the log file.
Thanks

Trograin
09-16-2009, 06:45 AM
Not sure tbh.

I tried iaslme with my dsdt.dsl and it worked, then tried yours and it didn't work. Have never used iaslme before to compile but using Macloader_SL. I tried to compile your dsdt.dsl in that one and it did generate me an dsdt.aml. Wether its working I can't say.

Attaching the dsdt.aml I compiled out of your dsdt.dsl, and also attaching my own dsdt.dsl if you want to look at it.

megavolkan
09-16-2009, 07:12 AM
Thanks a lot man, i'll try it as soon as i can :)

lemn
09-16-2009, 09:37 AM
could anyone help me for adi1988 card? this guide is for alc soundcard, and since i have a different on i can't find the relevant sections in my dsdt.dsl file. thanks.

Trograin
09-16-2009, 07:05 PM
Sorry, not me. I don't have one of those cards. The dsdt info is specific to the card you got, so might be good to see if you can find a thread with people having same card, as they can test etc. Or maybe someone here got one of those too.... not me though :(

monsieur.d
09-18-2009, 09:34 AM
I followed the steps as described in the first post and got sound working (don't need 5.1). Also, everything shows just fine on System Profiler.

The problem is that although "Headphones" shows in System Profiler, I can't choose it as output.

My motherboard is a Gigabyte P35C-DS3R, using Snow Leopard 10.6.1 (the same thing happened in 10.6)

I don't need a pre-made solution. If someone could at least point me to where I should edit (DSDT, plist, etc), it would be much appreciated.

Thanks.

mormegil
09-18-2009, 01:13 PM
System profiler is just cosmetics. What you see in Sound Preferences is all that matters.

monsieur.d
09-18-2009, 02:21 PM
System profiler is just cosmetics. What you see in Sound Preferences is all that matters.

Thanks. Any hint of what I have to edit to get headphones to work?

mormegil
09-18-2009, 02:41 PM
What do you see in outputs?

monsieur.d
09-18-2009, 02:47 PM
I have 3 line outs and 1 Digital out. The first line out works fine with the speakers that are connected in the back panel.

I used to have speakers AND headphones working in Leopard (10.5.6) with patched AppleHDA. I know I can't use Leopard's AppleHDA, but can I somehow copy its setup (considering that now I have a patched DSDT and patched AppleHDA according to this thread)?

mrctll
09-18-2009, 05:13 PM
your msi p35 neo run 10.6 in vanilla???? The mine won't boot.... I've modded bios for leopard and work's great. 10.6 boot only with SnowOSX Universal (432) 3.5 but don't recognize the disk... do you have a tutorial??

Grazie.. :)

mormegil
09-18-2009, 05:26 PM
I have 3 line outs and 1 Digital out. The first line out works fine with the speakers that are connected in the back panel.

I used to have speakers AND headphones working in Leopard (10.5.6) with patched AppleHDA. I know I can't use Leopard's AppleHDA, but can I somehow copy its setup (considering that now I have a patched DSDT and patched AppleHDA according to this thread)?

http://www.infinitemac.com/f57/guide-how-to-port-applehda-to-sl-t3981/

Anyway, by headphone do you mean the front jack? If so, have you tried plugging in a headphone? It might have jack-sensing enabled. Plugging in a headphone to front port will mute line out at the back. Try this and check in sound pref if one of your outputs change into 'headphone' once you plug it in.

monsieur.d
09-18-2009, 06:17 PM
Yes, by headphones I mean the front jack.

I tried connecting the headphones both in the headphone out and the mic in and nothing happened.

I'll try your guide and post back. thanks

monsieur.d
09-19-2009, 01:46 PM
Dear mormegil,

Thanks for the orientation. All I needed to do was to edit the "plist" files using the plists I had working under Leopard.

Now I have "Headphones" (front jack) in the sound preferences and it works just fine.

D

MiniHack
09-22-2009, 08:55 AM
I have a quick question about what I do and do not need to include in my HDEF mod.s in the DSDT.
On the initial pages and guide in first post, it seems that Pinconfig/Configdata is not needed in the DSDT itself as it will read that from the plists in AppleHDA.kext. However, in later posts I see a lot of DSDTs with that data inserted. So......if the AppleHDA is correct does the DSDT really need these info.s also? If the answer is no, then this will give me one less variable to work with in my experiments.
Thanks for the excellent guide by the way and I promise not to be a serial re-poster about this. Just want to get this one point clear.
Thank you.

mormegil
09-23-2009, 03:27 PM
I have a quick question about what I do and do not need to include in my HDEF mod.s in the DSDT.
On the initial pages and guide in first post, it seems that Pinconfig/Configdata is not needed in the DSDT itself as it will read that from the plists in AppleHDA.kext. However, in later posts I see a lot of DSDTs with that data inserted. So......if the AppleHDA is correct does the DSDT really need these info.s also? If the answer is no, then this will give me one less variable to work with in my experiments.
Thanks for the excellent guide by the way and I promise not to be a serial re-poster about this. Just want to get this one point clear.
Thank you.
Here (http://www.infinitemac.com/f57/guide-how-to-port-applehda-to-sl-t3981/post35175.html)

You DON'T need pinconfig in dsdt. You DO however need Configdata in plist.

MiniHack
09-24-2009, 05:11 PM
Thanks Mormegil and Snow. I now have working audio in Snow Leopard from DSDT and modded AppleHDA.kext with my Zotac board....took a while, but finally figured things out.
:)

killer567
12-04-2009, 02:17 PM
Hello there Mormegil and Snow, i've been following your posts and replies and i respect your work.
While following I tried very hard to fix my ALC882 on my ASUS Z96Js laptop but got nothing.

Can you guys help me out or guide me in any ways possible.
I have attached my DSDT + CODEC DUMP from linux.

My current system is as follows.

Snow Leo 10.6.2

ALC882 with
1 - 1/8" headphone/speaker jack in front
1 - 1/8" line-in jack in front
1 - Internal Speakers
1 - Internal Mic


Please help me out guys, i will be very thankful

Elventanis
12-11-2009, 10:40 AM
I was wondering if anyone could help me figure out how to fix the audio on my Snow Leopard 10.6.2 install. My hardware is listed below. I tried using VoodooHDA, LegacyHDA and modified AppleHDA. The best I can get is either the Back speakers to work or the Sub and Center speaker to work. I would like to enable the 5.1 sound, as I have the speakers connected via 3 pins to the PC. Based on what I have read in this forum, there might be hope for me yet, but I need some guidance.

If you need additional information please let me know and I will provide.

Gigabyte P55 UD4P
i7 860 Overclocked at 3.5
Kingston Memory 8GB (2000)
BFG Geforce GTS 250 Video Card
LG SATA Internal DVD Writer

will1384
12-11-2009, 04:46 PM
Here is how I got mine working, not sure if its going to work for
you, might give it a try, also I never had much luck with surround
sound on Realtek, not even using Windows


(1) Find and download "Taruga’s AppleHDA Patcher version 1.20"
(2) Find and download "VoodooHDA.kext"
(3) Make your own CODEC Dump in Linux buy typing this into the Terminal

"cat /proc/asound/card0/codec#0 > ~/Desktop/codec_dump.txt"

and use that file,

if you get nothing, try changing "codec#0" to "codec#1"
keep going up in numbers till you get the info.

Like

"cat /proc/asound/card0/codec#0 > ~/Desktop/codec_dump.txt"
"cat /proc/asound/card0/codec#1 > ~/Desktop/codec_dump.txt"
"cat /proc/asound/card0/codec#2 > ~/Desktop/codec_dump.txt"

(Hint) the Ubuntu Install CD works just fine for this

(4) Find and download "Kext Utility"
(5) Drag "VoodooHDA.kext" onto "Kext Utility" to install
(6) Make a backup copy of "AppleHDA.kext", its in "/System/Library/Extensions"
(7) Drag "codec_dump.txt" onto "AppleHDA Patcher" to install

Elventanis
12-11-2009, 04:58 PM
Here is how I got mine working, not sure if its going to work for
you, might give it a try, also I never had much luck with surround
sound on Realtek, not even using Windows


(1) Find and download "Taruga’s AppleHDA Patcher version 1.20"
(2) Find and download "VoodooHDA.kext"
(3) Make your own CODEC Dump in Linux buy typing this into the Terminal

"cat /proc/asound/card0/codec#0 > ~/Desktop/codec_dump.txt"

and use that file,

if you get nothing, try changing "codec#0" to "codec#1"
keep going up in numbers till you get the info.

Like

"cat /proc/asound/card0/codec#0 > ~/Desktop/codec_dump.txt"
"cat /proc/asound/card0/codec#1 > ~/Desktop/codec_dump.txt"
"cat /proc/asound/card0/codec#2 > ~/Desktop/codec_dump.txt"

(Hint) the Ubuntu Install CD works just fine for this

(4) Find and download "Kext Utility"
(5) Drag "VoodooHDA.kext" onto "Kext Utility" to install
(6) Make a backup copy of "AppleHDA.kext", its in "/System/Library/Extensions"
(7) Drag "codec_dump.txt" onto "AppleHDA Patcher" to install
Thanks Will, I will try that later on tonight. I will need to install ubuntu first though, as I currently don't have an install of that anywhere. No big deal. I will report back on how that goes.

will1384
12-11-2009, 05:12 PM
Thanks Will, I will try that later on tonight. I will
need to install ubuntu first though, as I currently don't have an install of
that anywhere. No big deal. I will report back on how that goes.

One of the things I love about Ubuntu is you don't even have to install it,
it works as a Live CD, just boot the CD, and it takes you to the desktop,
from there you have a usable GUI and even have access to Firefox, and
it seams to auto-detect and setup most network hardware, it great for
fixing things

Elventanis
12-12-2009, 08:38 AM
Will, when try the cat command in Ubuntu, I did not see the codec#0 etc. After navigating down the directories I see ac97#0-0

Not sure why I am seeing that cause I have the HD Audio connected. Should I change the commands above to this instead? thx

will1384
12-12-2009, 09:52 AM
It should work just by typing, and you can always copy and paste

"cat /proc/asound/card0/codec#0 > ~/Desktop/codec_dump.txt"

and changing the "codec#0" part as needed like "codec#1"

"cat /proc/asound/card0/codec#1 > ~/Desktop/codec_dump.txt"

just keep going up in numbers, I just tried on a EP31 motherboard
I had to up go to "codec#2" like this

"cat /proc/asound/card0/codec#2 > ~/Desktop/codec_dump.txt"

You might have to delete the empty TXT files after an unsuccessful
attempt, maybe some how there not being overwritten buy the new
file each time

I am going to try a PC with non Realtek sound next, but it should work
the same way

Elventanis
12-12-2009, 10:16 AM
I tried this using Ubuntu installed in a Virtual Machine via Sun Virtual Box. Maybe that is the reason I am having the issue. I will try to boot off the Ubuntu CD directly and see if that makes a difference I suppose.

When I type the commands, I actually get an error message that the directory/codec#1 etc does not exist. So the dump file is useless, cause the command errors out.

will1384
12-12-2009, 10:40 AM
I tried this using Ubuntu installed in a Virtual Machine via Sun Virtual Box. Maybe that is the reason I am having the issue. I will try to boot off the Ubuntu CD directly and see if that makes a difference I suppose.

When I type the commands, I actually get an error message that the directory/codec#1 etc does not exist. So the dump file is useless, cause the command errors out.

Virtual Machine wont work, the Virtual Machine sets up a fake environment,
Linux has to be running directly on your hardware.

Elventanis
12-12-2009, 06:48 PM
Virtual Machine wont work, the Virtual Machine sets up a fake environment,
Linux has to be running directly on your hardware.
ok, thanks for the confirmation, I will try it again later on today after booting in from the Ubuntu live cd and report back.

I did try the steps on Post #1 of this thread last night since those files were already created etc, but I did not have any luck.

Also, I have not been able to find the 1.2 version of the Taruga software either. I need to keep looking for that.

I was testing my connectors last night, and sound is only coming thru the orange connector at this point, the green and black and sending no sound. If I switch out the green connector to the orange port, the sound switches to a different speaker. So it looks like the ports are not even enabled in my current config.

Thx

will1384
12-12-2009, 10:39 PM
I was testing my connectors last night, and sound is only coming
thru the orange connector at this point, the green and black and
sending no sound. If I switch out the green connector to the orange
port, the sound switches to a different speaker. So it looks like the
ports are not even enabled in my current config.

Thx

I believe the CODEC Dump should fix that, as it also has the input
and output jacks info, also Google is your friend on finding stuff,
look over here for Taruga’s AppleHDA Patcher version 1.20

AppleHDA Solution - Work in progress, Main Thread (http://www.insanelymac.com/forum/index.php?showtopic=32859&hl=appleHDA+patcher)

Elventanis
12-12-2009, 11:40 PM
I believe the CODEC Dump should fix that, as it also has the input
and output jacks info, also Google is your friend on finding stuff,
look over here for Taruga’s AppleHDA Patcher version 1.20

AppleHDA Solution - Work in progress, Main Thread (http://www.insanelymac.com/forum/index.php?showtopic=32859&hl=appleHDA+patcher)
Will, I think I have everything you mentioned now. I have to run some quick errands and I will try the rest later on. Couple of questions for you in case you see this before I get back.

1. If I am patching the AppleHDA do I still need the VoodooHDA enabler?
2. My current DSDT file has pinconfiguration entries in it in the HDEF section. do I leave them there or should I remove them? I am thinking I need to remove them since the AppleHDA is being patched, but wanted to confirm.

From Ubuntu I had to use codec#2 to get the dump file.

Thanks again, for helping me thru this.