Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * soc-acpi-intel-cml-match.c - tables and support for CML ACPI enumeration.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * Copyright (c) 2019, Intel Corporation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) #include <sound/soc-acpi.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) #include <sound/soc-acpi-intel-match.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) static struct snd_soc_acpi_codecs rt1011_spk_codecs = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) 	.num_codecs = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) 	.codecs = {"10EC1011"}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) static struct snd_soc_acpi_codecs max98357a_spk_codecs = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 	.num_codecs = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 	.codecs = {"MX98357A"}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) static struct snd_soc_acpi_codecs max98390_spk_codecs = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) 	.num_codecs = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 	.codecs = {"MX98390"}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28)  * The order of the three entries with .id = "10EC5682" matters
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29)  * here, because DSDT tables expose an ACPI HID for the MAX98357A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30)  * speaker amplifier which is not populated on the board.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) struct snd_soc_acpi_mach snd_soc_acpi_intel_cml_machines[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 		.id = "10EC5682",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 		.drv_name = "cml_rt1011_rt5682",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 		.machine_quirk = snd_soc_acpi_codec_list,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 		.quirk_data = &rt1011_spk_codecs,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 		.sof_fw_filename = "sof-cml.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 		.sof_tplg_filename = "sof-cml-rt1011-rt5682.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 		.id = "10EC5682",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 		.drv_name = "sof_rt5682",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 		.machine_quirk = snd_soc_acpi_codec_list,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 		.quirk_data = &max98357a_spk_codecs,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 		.sof_fw_filename = "sof-cml.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 		.sof_tplg_filename = "sof-cml-rt5682-max98357a.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 		.id = "10EC5682",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 		.drv_name = "sof_rt5682",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 		.sof_fw_filename = "sof-cml.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 		.sof_tplg_filename = "sof-cml-rt5682.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 		.id = "DLGS7219",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 		.drv_name = "cml_da7219_max98357a",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 		.machine_quirk = snd_soc_acpi_codec_list,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 		.quirk_data = &max98357a_spk_codecs,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 		.sof_fw_filename = "sof-cml.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 		.sof_tplg_filename = "sof-cml-da7219-max98357a.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 		.id = "DLGS7219",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 		.drv_name = "cml_da7219_mx98357a",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 		.machine_quirk = snd_soc_acpi_codec_list,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 		.quirk_data = &max98390_spk_codecs,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 		.sof_fw_filename = "sof-cml.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 		.sof_tplg_filename = "sof-cml-da7219-max98357a.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 	{},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cml_machines);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) static const struct snd_soc_acpi_endpoint single_endpoint = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	.num = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 	.aggregated = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	.group_position = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	.group_id = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) static const struct snd_soc_acpi_endpoint spk_l_endpoint = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 	.num = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 	.aggregated = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 	.group_position = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 	.group_id = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) static const struct snd_soc_acpi_endpoint spk_r_endpoint = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 	.num = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	.aggregated = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	.group_position = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	.group_id = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) static const struct snd_soc_acpi_adr_device rt700_1_adr[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 		.adr = 0x000110025D070000,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 		.num_endpoints = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 		.endpoints = &single_endpoint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 		.name_prefix = "rt700"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) static const struct snd_soc_acpi_link_adr cml_rvp[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 		.mask = BIT(1),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 		.num_adr = ARRAY_SIZE(rt700_1_adr),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 		.adr_d = rt700_1_adr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 	{}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) static const struct snd_soc_acpi_adr_device rt711_0_adr[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 		.adr = 0x000020025D071100,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 		.num_endpoints = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 		.endpoints = &single_endpoint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 		.name_prefix = "rt711"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) static const struct snd_soc_acpi_adr_device rt1308_1_single_adr[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 		.adr = 0x000120025D130800,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 		.num_endpoints = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 		.endpoints = &single_endpoint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 		.name_prefix = "rt1308-1"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) static const struct snd_soc_acpi_adr_device rt1308_1_group1_adr[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 		.adr = 0x000120025D130800,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 		.num_endpoints = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 		.endpoints = &spk_l_endpoint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 		.name_prefix = "rt1308-1"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) static const struct snd_soc_acpi_adr_device rt1308_2_group1_adr[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 		.adr = 0x000220025D130800,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 		.num_endpoints = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 		.endpoints = &spk_r_endpoint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 		.name_prefix = "rt1308-2"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) static const struct snd_soc_acpi_adr_device rt715_3_adr[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 		.adr = 0x000320025D071500,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 		.num_endpoints = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 		.endpoints = &single_endpoint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 		.name_prefix = "rt715"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) static const struct snd_soc_acpi_adr_device rt711_sdca_0_adr[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 		.adr = 0x000030025D071101,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 		.num_endpoints = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 		.endpoints = &single_endpoint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 		.name_prefix = "rt711"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) static const struct snd_soc_acpi_adr_device rt1316_1_group1_adr[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 		.adr = 0x000131025D131601, /* unique ID is set for some reason */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 		.num_endpoints = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 		.endpoints = &spk_l_endpoint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 		.name_prefix = "rt1316-1"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) static const struct snd_soc_acpi_adr_device rt1316_2_group1_adr[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 		.adr = 0x000230025D131601,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 		.num_endpoints = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 		.endpoints = &spk_r_endpoint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 		.name_prefix = "rt1316-2"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) static const struct snd_soc_acpi_adr_device rt714_3_adr[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 		.adr = 0x000330025D071401,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 		.num_endpoints = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 		.endpoints = &single_endpoint,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 		.name_prefix = "rt714"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) static const struct snd_soc_acpi_link_adr cml_3_in_1_default[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 		.mask = BIT(0),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 		.num_adr = ARRAY_SIZE(rt711_0_adr),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 		.adr_d = rt711_0_adr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 		.mask = BIT(1),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 		.num_adr = ARRAY_SIZE(rt1308_1_group1_adr),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 		.adr_d = rt1308_1_group1_adr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 		.mask = BIT(2),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 		.num_adr = ARRAY_SIZE(rt1308_2_group1_adr),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 		.adr_d = rt1308_2_group1_adr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 		.mask = BIT(3),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 		.num_adr = ARRAY_SIZE(rt715_3_adr),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 		.adr_d = rt715_3_adr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	{}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) static const struct snd_soc_acpi_link_adr cml_3_in_1_mono_amp[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 		.mask = BIT(0),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 		.num_adr = ARRAY_SIZE(rt711_0_adr),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 		.adr_d = rt711_0_adr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) 		.mask = BIT(1),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) 		.num_adr = ARRAY_SIZE(rt1308_1_single_adr),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) 		.adr_d = rt1308_1_single_adr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) 		.mask = BIT(3),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) 		.num_adr = ARRAY_SIZE(rt715_3_adr),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) 		.adr_d = rt715_3_adr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) 	{}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) static const struct snd_soc_acpi_link_adr cml_3_in_1_sdca[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) 		.mask = BIT(0),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) 		.num_adr = ARRAY_SIZE(rt711_sdca_0_adr),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) 		.adr_d = rt711_sdca_0_adr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) 		.mask = BIT(1),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) 		.num_adr = ARRAY_SIZE(rt1316_1_group1_adr),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) 		.adr_d = rt1316_1_group1_adr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) 		.mask = BIT(2),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) 		.num_adr = ARRAY_SIZE(rt1316_2_group1_adr),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) 		.adr_d = rt1316_2_group1_adr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) 		.mask = BIT(3),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) 		.num_adr = ARRAY_SIZE(rt714_3_adr),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) 		.adr_d = rt714_3_adr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) 	{}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262) struct snd_soc_acpi_mach snd_soc_acpi_intel_cml_sdw_machines[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) 		.link_mask = 0xF, /* 4 active links required */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) 		.links = cml_3_in_1_default,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) 		.drv_name = "sof_sdw",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) 		.sof_fw_filename = "sof-cml.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268) 		.sof_tplg_filename = "sof-cml-rt711-rt1308-rt715.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) 		.link_mask = 0xF, /* 4 active links required */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272) 		.links = cml_3_in_1_sdca,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) 		.drv_name = "sof_sdw",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274) 		.sof_fw_filename = "sof-cml.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) 		.sof_tplg_filename = "sof-cml-rt711-rt1316-rt714.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278) 		/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279) 		 * link_mask should be 0xB, but all links are enabled by BIOS.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280) 		 * This entry will be selected if there is no rt1308 exposed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) 		 * on link2 since it will fail to match the above entry.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282) 		 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283) 		.link_mask = 0xF,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284) 		.links = cml_3_in_1_mono_amp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285) 		.drv_name = "sof_sdw",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286) 		.sof_fw_filename = "sof-cml.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287) 		.sof_tplg_filename = "sof-cml-rt711-rt1308-mono-rt715.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290) 		.link_mask = 0x2, /* RT700 connected on Link1 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291) 		.links = cml_rvp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292) 		.drv_name = "sof_sdw",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) 		.sof_fw_filename = "sof-cml.ri",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294) 		.sof_tplg_filename = "sof-cml-rt700.tplg",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296) 	{}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cml_sdw_machines);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300) MODULE_LICENSE("GPL v2");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301) MODULE_DESCRIPTION("Intel Common ACPI Match module");