forked from RehabMan/OS-X-Clover-Laptop-Config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSSDT-HDEF.dsl
39 lines (36 loc) · 1.05 KB
/
SSDT-HDEF.dsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Automatic injection of HDEF properties
#ifndef NO_DEFINITIONBLOCK
DefinitionBlock("", "SSDT", 2, "hack", "_HDEF", 0)
{
#endif
External(RMCF.AUDL, IntObj)
// Note: If your ACPI set (DSDT+SSDTs) does not define HDEF (or AZAL or HDAS)
// add this Device definition (by uncommenting it)
//
//Device(_SB.PCI0.HDEF)
//{
// Name(_ADR, 0x001b0000)
// Name(_PRW, Package() { 0x0d, 0x05 }) // may need tweaking (or not needed)
//}
// inject properties for audio
Method(_SB.PCI0.HDEF._DSM, 4)
{
If (CondRefOf(\RMCF.AUDL)) { If (Ones == \RMCF.AUDL) { Return(0) } }
If (!Arg2) { Return (Buffer() { 0x03 } ) }
Local0 = Package()
{
"layout-id", Buffer(4) { 2, 0, 0, 0 },
"hda-gfx", Buffer() { "onboard-1" },
"PinConfigurations", Buffer() { },
}
If (CondRefOf(\RMCF.AUDL))
{
CreateDWordField(DerefOf(Local0[1]), 0, AUDL)
AUDL = \RMCF.AUDL
}
Return(Local0)
}
#ifndef NO_DEFINITIONBLOCK
}
#endif
//EOF