Skip to content

Commit 99971f8

Browse files
committed
AcpiAudioCompositor: add AACD device
Use ACPI0017 for now Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent 24a0eb3 commit 99971f8

2 files changed

Lines changed: 99 additions & 0 deletions

File tree

AcpiAudioCompositor/aacd.asl

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/** @file
2+
The definition block in ACPI table for ACPI0017 device under \\SB
3+
4+
Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
5+
This program and the accompanying materials
6+
are licensed and made available under the terms and conditions of the BSD License
7+
which accompanies this distribution. The full text of the license may be found at
8+
http://opensource.org/licenses/bsd-license.php
9+
10+
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12+
**/
13+
14+
DefinitionBlock (
15+
"",
16+
"SSDT",
17+
2,
18+
"INTEL ",
19+
"AACDTabl",
20+
0x1000
21+
)
22+
{
23+
External(\_SB, DeviceObj)
24+
25+
Scope (\_SB) {
26+
Device (AACD)
27+
{
28+
Name (_ADR, Zero) // _ADR: Address
29+
Name (_HID, "ACPI0017" /* ACPI Audio Compositor Device */) // _HID: Hardware ID
30+
Name (_CID, "ACPI0017" /* ACPI Audio Compositor Device */) // _CID: Compatible ID
31+
Name (_DDN, "ACPI Audio Compositor") // _DDN: DOS Device Name
32+
Name (_UID, One) // _UID: Unique ID
33+
34+
Method (_STA, 0, NotSerialized) // _STA: Status
35+
{
36+
Return (0x0F)
37+
}
38+
39+
Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
40+
{
41+
}
42+
}
43+
}
44+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/** @file
2+
The definition block in ACPI table for PCM512X device under I2C5 Controller
3+
4+
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
5+
This program and the accompanying materials
6+
are licensed and made available under the terms and conditions of the BSD License
7+
which accompanies this distribution. The full text of the license may be found at
8+
http://opensource.org/licenses/bsd-license.php
9+
10+
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12+
**/
13+
14+
DefinitionBlock (
15+
"",
16+
"SSDT",
17+
2,
18+
"INTEL ",
19+
"P512Tabl",
20+
0x1000
21+
)
22+
{
23+
External(\_SB.PCI0.I2C1, DeviceObj)
24+
25+
Scope (\_SB.PCI0.I2C1) {
26+
Device (P512)
27+
{
28+
Name (_ADR, Zero) // _ADR: Address
29+
Name (_HID, "104C5122" /* TI PCM5121 I2S Audio Codec */) // _HID: Hardware ID
30+
Name (_CID, "104C5122" /* TI PCM5121 I2S Audio Codec */) // _CID: Compatible ID
31+
Name (_DDN, "TI PCM512X Codec Controller ") // _DDN: DOS Device Name
32+
Name (_UID, One) // _UID: Unique ID
33+
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
34+
{
35+
Name (SBUF, ResourceTemplate ()
36+
{
37+
I2cSerialBus (0x004D, ControllerInitiated, 0x00061A80,
38+
AddressingMode7Bit, "\\_SB.PCI0.I2C1",
39+
0x00, ResourceConsumer, ,
40+
)
41+
})
42+
Return (SBUF) /* \_SB_PCI0.I2C1.P512._CRS.SBUF */
43+
}
44+
45+
Method (_STA, 0, NotSerialized) // _STA: Status
46+
{
47+
Return (0x0F)
48+
}
49+
50+
Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
51+
{
52+
}
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)