1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * soc-apci-intel-adl-match.c - tables and support for ADL ACPI enumeration.
4  *
5  * Copyright (c) 2020, Intel Corporation.
6  */
7 
8 #include <sound/soc-acpi.h>
9 #include <sound/soc-acpi-intel-match.h>
10 
11 static const struct snd_soc_acpi_endpoint single_endpoint = {
12 	.num = 0,
13 	.aggregated = 0,
14 	.group_position = 0,
15 	.group_id = 0,
16 };
17 
18 static const struct snd_soc_acpi_adr_device rt711_0_adr[] = {
19 	{
20 		.adr = 0x000020025D071100,
21 		.num_endpoints = 1,
22 		.endpoints = &single_endpoint,
23 		.name_prefix = "rt711"
24 	}
25 };
26 
27 static const struct snd_soc_acpi_link_adr adl_rvp[] = {
28 	{
29 		.mask = BIT(0),
30 		.num_adr = ARRAY_SIZE(rt711_0_adr),
31 		.adr_d = rt711_0_adr,
32 	},
33 	{}
34 };
35 
36 struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = {
37 	{},
38 };
39 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_adl_machines);
40 
41 /* this table is used when there is no I2S codec present */
42 struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_sdw_machines[] = {
43 	{
44 		.link_mask = 0x1, /* link0 required */
45 		.links = adl_rvp,
46 		.drv_name = "sof_sdw",
47 		.sof_fw_filename = "sof-adl.ri",
48 		.sof_tplg_filename = "sof-adl-rt711.tplg",
49 	},
50 	{},
51 };
52 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_adl_sdw_machines);
53