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