InfiniteMac OSx86  


Reply
 
Thread tools Display modes
  #1  
Old 02-05-2010, 06:50 PM
adriangb adriangb is offline
Jaguar
 
Join Date: Jan 2010
Posts: 95
ALC890 on ASRock x58 Extreme

I have this board, an have pretty much everything working except sound (without VodoooHDA) and sleep, but I'll leave this last one out for now.
My biggest problem with sound is that I don't have any AZAL or HDEF entry in my DSDT, so I can't follow any of the guides I could find (they all call for something there, I think even using HDAEnabler you must have some entry).
The ALC890 is a ASRock only card, but I hear it is very similar to the ALC889a and that's even what I got from a Xubuntu 9.10 codec dump (some other people with the same card have gotten ALC885, but I hear this is a common issue). Sound worked perfectly in Xubuntu, so I'm guessing that my card can just be treated as an ALC889a.
I have tried inserting the references to HDEF from other peoples DSDT's, but I get lot's of errors, probably some kind of calls from Device (HDEF) to other things that don't exist or are labeled differently in my DSDT. I'm far from really understanding DSDT, so there is no way I could relocate stuff to fix all the errors I get, without creating many more.
If someone with some more knowledge could shed some light on this, I would be highly grateful.
I'll attach my current DSDT, my original and my codec dump.
Attached Files
File Type: txt codec_dump.txt (11.1 KB, 24 views)
File Type: zip DSDT's.zip (39.6 KB, 21 views)
Reply With Quote
  #2  
Old 02-07-2010, 06:09 AM
adriangb adriangb is offline
Jaguar
 
Join Date: Jan 2010
Posts: 95
What do I need to do to get some help here? I mean, I'm not such a big noob anymore, I don't think I'm asking any overly asked questions, responses all over the place: as much as I looked I couldn't find anyone with NO HDEF (or audio) mentions in their DSDT. If I'm just too un-google friendly, could anyone just point that link out to me?
I mean, at least give me an answer, I can't stand nothing
Reply With Quote
  #3  
Old 02-13-2010, 01:28 PM
Imkantus Imkantus is offline
 
Join Date: Jul 2009
Location: Germany
Posts: 779
Quote:
Originally Posted by adriangb View Post
I think even using HDAEnabler you must have some entry
Give it a try.
If it works something should be displayed at System-Profiler > Hardware > Audio - then try to apply AppleHDA with modified Plists respectively legacy kext.

AMD Phenom II X4 955 - ASRock AM3A770DE - 8GB DDR3-1333 - Radeon HD 5570 1GB passiv - BCM4318 802.11b/g - Snow Leopard Retail
+++
AMD Phenom X3 8450 - ASRock AM2NF6G-VSTA (BIOS L2.39) - 4GB DDR2-800 - Radeon HD 4650 512MB - Snow Leopard Retail (retired) / OpenBSD
Reply With Quote
  #4  
Old 02-16-2010, 12:40 AM
adriangb adriangb is offline
Jaguar
 
Join Date: Jan 2010
Posts: 95
Got it!
Using no VoodooHDA and HDAEnabler in /S/L/E I get the following in System Profiler:
Intel High Definition Audio:

Device ID: 0x18490890
Audio ID: 12
Available Devices:
The Device ID is the same as the Subsystem Id on my codec dump, so I guess it's getting something right.
So now what I'm missing is getting it completely recognized it, so that I can get outputs, right?
You say:
Quote:
try to apply AppleHDA with modified Plists respectively legacy kext.
. Do you mean patching AppleHDA.kext? Can this be done using the drag and drop method of AppleHDAPatcher (I'll try this and report back)?
Also, could HDAEnabler be replaced with DSDT? I guess so, since it's just injecting that missing code, the question is, what is that code?
Reply With Quote
  #5  
Old 02-16-2010, 12:51 AM
adriangb adriangb is offline
Jaguar
 
Join Date: Jan 2010
Posts: 95
Well, using AppleHDAPatcher didn't work, but it's old software, so I didn't expect it to work in SL.
Anyone got a good guide for ALC889a or something? The ones I've seen are crazy !
Reply With Quote
  #6  
Old 02-16-2010, 03:06 AM
adriangb adriangb is offline
Jaguar
 
Join Date: Jan 2010
Posts: 95
Got it working 100% using the attached DSDT+LegacyAppleHDA!
Attached Files
File Type: zip Archive.zip (21.0 KB, 139 views)
Reply With Quote
  #7  
Old 02-26-2010, 08:00 PM
spamhaus spamhaus is offline
Cheetah
 
Join Date: Nov 2009
Posts: 5
I have a similar board (ASrock P55 Pro) with the same codec (ALC890). I tried your DSDT and legacyHDA.kext file. The sound works from both my SPDIF outputs (optical and coax). It sounds distorted through the regular 1/8" headphone jack though.

Did you follow a guide, or rather, could you explain what you had to modify in your original DSDT? I want to perfectly adapt it to my board/DSDT.

Thanks!
Reply With Quote
  #8  
Old 02-27-2010, 07:58 AM
adriangb adriangb is offline
Jaguar
 
Join Date: Jan 2010
Posts: 95
For starters, don't use a DSDT for a other board.
My board didn't have any HDEF or audio at all, so I had to guess where to put it (this was the hard part).
So basically, copy this code into the same place in your DSDT as it is in mine:
Code:
Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_PRW, 0, NotSerialized)
{
Return (Package (0x02)
{
0x0D, 
0x05
})
}

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

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

"device-type", 
Buffer (0x10)
{
"Realtek ALC889a"
}, 

"PinConfigurations", 
Buffer (0x18)
{
/* 0000 */ 0x10, 0x44, 0x11, 0x01, 0x20, 0x14, 0x01, 0x01, 
/* 0008 */ 0x40, 0x4C, 0x21, 0x02, 0x50, 0x34, 0x81, 0x01, 
/* 0010 */ 0x60, 0x9C, 0xA1, 0x02, 0xF0, 0x61, 0x4B, 0x01
}
}, 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)
And then search for DSDT in mine, and copy the line with the other appearance (it's something like "...PCI0.HDEF...") and put it in the same place. If the device names are different in mine and yours, try searching for them by address.
I got the code and kext from: http://efixusers.com/showthread.php?t=213.
Reply With Quote
  #9  
Old 02-27-2010, 09:28 AM
joeboxer joeboxer is offline
Jaguar
 
Join Date: Nov 2009
Posts: 42
Asrock X58 extreme guide needed

Hi adriangb, why you do not write a quick guide with kext and DSDT, for Asrock x58 extreme users?
I think that can be very needed from the most part of us.


For my case, I'm only able to start with 10.5.8 with 1 core and busratio 20. With 8 cores, my system start well, but after 2/3 minutes I have a crash.

I'm investigating if this happen for temperature or some other problem.

My specs: asrock x58 extreme - 920 - 2 gb dominator 1600 -9500gt - dlink 547 -
Reply With Quote
  #10  
Old 02-27-2010, 05:21 PM
adriangb adriangb is offline
Jaguar
 
Join Date: Jan 2010
Posts: 95
Well, I could write a guide, but not now: once I get back from vacation, I start school. I have about a week of class, and then a other one off, so expect it around that time.
Since I don't have the comp in front of me now, I can't even try stuff.
But from what I remember, the edits I did are the following:
  • Renamed devices (LPCB, MATH, etc)
  • Added speedstep info in the procesor section (for i7 920)
  • Added Device (SBUS)
  • Added the HDEF call and device HDEF
I have done other minor fixes, that I really don't remember and probably never will be able to differ from the DSDT. I guess I could just "look for changes" or something, but that would probably take days... I just might do it, I'll see.
To add HDEF to your DSDT, just search for the line on top of "Device (HDEF)" in your DSDT and then copy the code I posted under it. Remember to leave a line in between. Then do the same for that other line, it should work. I doubt that it needs any other edits for it, maybe Device (SBUS)...
Reply With Quote
Reply