Jump to content

DSDT & ALC883


AVT
 Share

15 posts in this topic

Recommended Posts

Hello,

 

Now that Vanilla SpeedStep seems to be working fine for me, I am currently attempting to get Vanilla Audio working as well. Since it's ALC883-based, it should be possible. I am using an ASUS P5E-VM HDMI.

 

The only problem is I can't find the sound device at all in DSDT. It seems to simply not be there - is it possible that it's missing?

 

On a side note, VoodooHDA works fine.. in S/L/E, which I prefer to leave untouched.

 

Thanks!

Link to comment
Share on other sites

AVT,

 

Look for AZAL and change all references to HDEF (or search for Name (_ADR, 0x001B0000))

 

:D

 

Firstly, thank you for the help, it is very much appreciated!

 

Unfortunately neither of those are present in my DSDT file, which I thought I attached (along with a codec dump) to my first post but apparently did not. Attaching them now.

 

Are there any other names it might have? Is it possible that there might not be an entry, and it needs to be added manually?

codecdump.txt

DSDT_E8400.dsl.txt

Link to comment
Share on other sites

AVT,

 

The most recent BIOS is version 0604, check and/or download the latest and apply that, then dump DSDT and check for any entries for AZAL or HDEF.

 

;)

 

Just checked my BIOS, already using 0604. Tried running getDSDT.sh again, no luck, still can't find either of those.

 

I did find someone else's DSDT for the same board & copy/pasted their HDEF to my DSDT. Unfortunately, the HDEF inside appears to be for something other than a Realtek ALC883. Going to keep trying to make everything work, though.

 

EDIT:

 

Seeing this when running ioreg:

 

| | +-o USB6@1A,2 <class IOPCIDevice, id 0x10000018d, registered, matche$

| | | +-o AppleUSBUHCI <class AppleUSBUHCI, id 0x1000001c9, registered, $

| | | +-o UHCI Root Hub Simulation@1A,2 <class IOUSBRootHubDevice, id $

| | | +-o AppleUSBHub <class AppleUSBHub, id 0x100000258, !registere$

| | | +-o IOUSBInterface@0 <class IOUSBInterface, id 0x10000025a, !r$

| | +-o pci8086,2930@1F,3 <class IOPCIDevice, id 0x100000192, registered$

| | +-o pci8086,293e@1B <class IOPCIDevice, id 0x100000193, registered, $

| | | +-o VoodooHDADevice <class VoodooHDADevice, id 0x10000033c, regist$

| | | +-o VoodooHDAEngine <class VoodooHDAEngine, id 0x10000033d, regi$

 

(usb6 for reference)

 

293e@1B?? pci8086??

 

Hmm.

 

edit2:

 

Found this code in an ALC883 thread. Adding it to DSDT makes AppleHDA recognize the sound card, but it errors on startup:

 

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

Method (_DSM, 4, NotSerialized)
{
	Store (Package (0x06)
	{
		"built-in",
		Buffer (One)
		{
			0x00
		},

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

		"PinConfigurations",
		Buffer (0x30)
		{
			/* 0000 */	0x10, 0x40, 0x01, 0x01, 0x10, 0x10, 0x01, 0x01, 
			/* 0008 */	0x11, 0x60, 0x01, 0x01, 0x10, 0x20, 0x01, 0x01, 
			/* 0010 */	0x40, 0x98, 0xa1, 0x90, 0x50, 0x9c, 0xa1, 0x02, 
			/* 0018 */	0x40, 0x30, 0x81, 0x01, 0x20, 0x4c, 0x21, 0x02, 
			/* 0020 */	0xf0, 0x01, 0x33, 0x59, 0x00, 0xe6, 0x15, 0x40, 
			/* 0028 */	0x30, 0x11, 0x44, 0x01, 0xf0, 0x11, 0x11, 0x41
		}
	}, Local0)
	DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
	Return (Local0)
}
}

 

The error:

 

1/14/10 7:12:56 PM kernel Sound assertion ""ERROR: EFI ROM did not publish 'hda-gfx' associative property!\n"" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDACodecGeneric.cpp" at line 331 goto ExitError

1/14/10 7:12:56 PM kernel Sound assertion ""ERROR: EFI ROM did not publish 'hda-gfx' associative property!\n"" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDACodecGeneric.cpp" at line 331 goto ExitError

1/14/10 7:13:04 PM kernel Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDADriver.cpp" at line 1656 goto Exit

1/14/10 7:13:04 PM kernel Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDADriver.cpp" at line 203 goto Exit

1/14/10 7:13:04 PM kernel Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDADriver.cpp" at line 1656 goto Exit

1/14/10 7:13:04 PM kernel Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDADriver.cpp" at line 203 goto Exit

Link to comment
Share on other sites

Yep, enabled, and set to HD Audio (not AC97).

 

Any ideas as to why I am getting the errors above? I should note that System Profiler sees it as "Intel High Definition Audio" & shows the jacks fine.

Link to comment
Share on other sites

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

Method (_DSM, 4, NotSerialized)
{
	Store (Package (0x06)
	{
		"built-in",
		Buffer (One)
		{
			0x00
		},

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

		"PinConfigurations",
		Buffer (0x30)
		{
			/* 0000 */	0x10, 0x40, 0x01, 0x01, 0x10, 0x10, 0x01, 0x01, 
			/* 0008 */	0x11, 0x60, 0x01, 0x01, 0x10, 0x20, 0x01, 0x01, 
			/* 0010 */	0x40, 0x98, 0xa1, 0x90, 0x50, 0x9c, 0xa1, 0x02, 
			/* 0018 */	0x40, 0x30, 0x81, 0x01, 0x20, 0x4c, 0x21, 0x02, 
			/* 0020 */	0xf0, 0x01, 0x33, 0x59, 0x00, 0xe6, 0x15, 0x40, 
			/* 0028 */	0x30, 0x11, 0x44, 0x01, 0xf0, 0x11, 0x11, 0x41
		}
	}, Local0)
	DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
	Return (Local0)
}
}

 

AVT,

 

Digging around DSDT, try changing your HDEF entry to this:

 

Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_PRW, 0, NotSerialized)
{
	Return (Package (0x02)
	{
		0x0D,
		0x05
	})
}
Method (_DSM, 4, NotSerialized)
{
	Store (Package (0x06)
	{
		"built-in",
		Buffer (One)
		{
			0x00
		},
		"layout-id",
		Buffer (0x04)
		{
			0x73, 0x03, 0x00, 0x00
		},
		"PinConfigurations",
		Buffer (One)
		{
			0x00,
		}
	}, Local0)
	DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
	Return (Local0)
}
}

 

The "layout-id" is now set the ALC883 (in HEX and byte-flipped), the "PinConfigurations" is set to Zero, this is just to initialise Apples HDA kext.

 

:2cents:

Link to comment
Share on other sites

Tried that, same exact error:

 

1/16/10 5:44:37 PM kernel Sound assertion ""ERROR: EFI ROM did not publish 'hda-gfx' associative property!\n"" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDACodecGeneric.cpp" at line 331 goto ExitErrorAttansicL1Ethernet: Ethernet address 00:22:15:00:a3:c1

1/16/10 5:44:37 PM kernel Sound assertion ""ERROR: EFI ROM did not publish 'hda-gfx' associative property!\n"" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDACodecGeneric.cpp" at line 331 goto ExitError

1/16/10 5:44:43 PM kernel Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDADriver.cpp" at line 1656 goto Exit

1/16/10 5:44:43 PM kernel Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDADriver.cpp" at line 203 goto Exit

1/16/10 5:44:43 PM kernel Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDADriver.cpp" at line 1656 goto Exit

1/16/10 5:44:43 PM kernel Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDADriver.cpp" at line 203 goto Exit

:)

Link to comment
Share on other sites

AVT,

 

Managed to get an old DSDT file for the P5E-VM HDMI motherboard, here is the HDEF definition:

 

Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_PRW, 0, NotSerialized) { Return (Package (0x02) { 0x0D, 0x05 }) }
Method (_DSM, 4, NotSerialized)
{
	Store (Package (0x0E)
	{
		"AAPL,slot-name", Buffer (0x09) { "Built in" }, 
		"codec-id", Buffer (0x04) { 0x83, 0x08, 0xEC, 0x10 },  // gwjsEA==
		"model", Buffer (0x0F) { "Realtek ALC883" }, 
		"device_type", Buffer (0x07) { "alc883" }, 
		"built-in", Buffer (One) { 0x00 }, // AA==
		// "layout-id", Buffer (0x04) { 0x73, 0x03, 0x00, 0x00 },  // cwMAAA==
		"layout-id", Buffer (0x04) { 0x0c, 0x00, 0x00, 0x00 },  // DAAAAA==
		"PingConfigurations",
		Buffer (0x30) // EEABAWAQAQFwYAEBgCABATCYoQFAnKECUDCBASBMIQLAAPBA0ADwQOAA8EDwAPBA
		{
			0x10, 0x40, 0x01, 0x01, // [Jack] Line Out at Ext  - Rear  (Green)
			0x60, 0x10, 0x01, 0x01, // [Jack] Line Out at Ext  - Rear  (Black)
			0x70, 0x60, 0x01, 0x01, // [Jack] Line Out at Ext  - Rear  (Orange)
			0x80, 0x20, 0x01, 0x01, // [Jack] Line Out at Ext  - Rear  (Grey)
			0x30, 0x98, 0xa1, 0x01, // [Jack] Mic at Ext	   - Rear  (Pink)
			0x40, 0x9c, 0xa1, 0x02, // [Jack] Mic at Ext	   - Front (Pink)
			0x50, 0x30, 0x81, 0x01, // [Jack] Line In at Ext   - Rear  (Blue)
			0x20, 0x4c, 0x21, 0x02, // [Jack] HP Out at Ext	- Front (Green)
			0xc0, 0x00, 0xf0, 0x40, // [N/A] CD at Int ATAPI		   (Int)
			0xd0, 0x00, 0xf0, 0x40, // [N/A] Line Out at Ext   - N/A   (White)
			0xe0, 0x00, 0xf0, 0x40, // [Jack] SPDIF Out at Ext - Rear  (Black)
			0xf0, 0x00, 0xf0, 0x40  // [N/A] Speaker at Ext	- Rear  (Black)
		}
	}, Local0)
	DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
	Return (Local0)
}
}

 

Can't remember which "layout-id" works, so I have given a choice, also I cannot remember if the "Line In Blue" works (I don't think it does), but it will give you Front Headphones, Front and Rear Mic. and Black, Orange and Gray Line Outs.

 

Hopefully that should give you a better start than before!

 

:P

Link to comment
Share on other sites

AVT,

 

Managed to get an old DSDT file for the P5E-VM HDMI motherboard, here is the HDEF definition:

 

Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_PRW, 0, NotSerialized) { Return (Package (0x02) { 0x0D, 0x05 }) }
Method (_DSM, 4, NotSerialized)
{
	Store (Package (0x0E)
	{
		"AAPL,slot-name", Buffer (0x09) { "Built in" }, 
		"codec-id", Buffer (0x04) { 0x83, 0x08, 0xEC, 0x10 },  // gwjsEA==
		"model", Buffer (0x0F) { "Realtek ALC883" }, 
		"device_type", Buffer (0x07) { "alc883" }, 
		"built-in", Buffer (One) { 0x00 }, // AA==
		// "layout-id", Buffer (0x04) { 0x73, 0x03, 0x00, 0x00 },  // cwMAAA==
		"layout-id", Buffer (0x04) { 0x0c, 0x00, 0x00, 0x00 },  // DAAAAA==
		"PingConfigurations",
		Buffer (0x30) // EEABAWAQAQFwYAEBgCABATCYoQFAnKECUDCBASBMIQLAAPBA0ADwQOAA8EDwAPBA
		{
			0x10, 0x40, 0x01, 0x01, // [Jack] Line Out at Ext  - Rear  (Green)
			0x60, 0x10, 0x01, 0x01, // [Jack] Line Out at Ext  - Rear  (Black)
			0x70, 0x60, 0x01, 0x01, // [Jack] Line Out at Ext  - Rear  (Orange)
			0x80, 0x20, 0x01, 0x01, // [Jack] Line Out at Ext  - Rear  (Grey)
			0x30, 0x98, 0xa1, 0x01, // [Jack] Mic at Ext	   - Rear  (Pink)
			0x40, 0x9c, 0xa1, 0x02, // [Jack] Mic at Ext	   - Front (Pink)
			0x50, 0x30, 0x81, 0x01, // [Jack] Line In at Ext   - Rear  (Blue)
			0x20, 0x4c, 0x21, 0x02, // [Jack] HP Out at Ext	- Front (Green)
			0xc0, 0x00, 0xf0, 0x40, // [N/A] CD at Int ATAPI		   (Int)
			0xd0, 0x00, 0xf0, 0x40, // [N/A] Line Out at Ext   - N/A   (White)
			0xe0, 0x00, 0xf0, 0x40, // [Jack] SPDIF Out at Ext - Rear  (Black)
			0xf0, 0x00, 0xf0, 0x40  // [N/A] Speaker at Ext	- Rear  (Black)
		}
	}, Local0)
	DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
	Return (Local0)
}
}

 

Can't remember which "layout-id" works, so I have given a choice, also I cannot remember if the "Line In Blue" works (I don't think it does), but it will give you Front Headphones, Front and Rear Mic. and Black, Orange and Gray Line Outs.

 

Hopefully that should give you a better start than before!

 

;)

 

Wow, I'd already given up on this & just went with VoodooHDA but stumbled back onto this post. I very much appreciate the help & am going to give it a try!

 

edit: Unfortunately, same exact thing happens.

 

I should note that VoodooHDA works with absolutely no problems at all. Perhaps it's better to simply go with it & just remove it from S/L/E every time I update OS X? Or, perhaps there's a way to load VoodooHDA from /Extra instead?

Link to comment
Share on other sites

 Share

×
×
  • Create New...