~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/intel/common/soc-acpi-intel-icl-match.c

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/soc/intel/common/soc-acpi-intel-icl-match.c (Architecture alpha) and /sound/soc/intel/common/soc-acpi-intel-icl-match.c (Architecture sparc)


  1 // SPDX-License-Identifier: GPL-2.0-only            1 // SPDX-License-Identifier: GPL-2.0-only
  2 /*                                                  2 /*
  3  * soc-acpi-intel-icl-match.c - tables and sup      3  * soc-acpi-intel-icl-match.c - tables and support for ICL ACPI enumeration.
  4  *                                                  4  *
  5  * Copyright (c) 2018, Intel Corporation.           5  * Copyright (c) 2018, Intel Corporation.
  6  *                                                  6  *
  7  */                                                 7  */
  8                                                     8 
  9 #include <sound/soc-acpi.h>                         9 #include <sound/soc-acpi.h>
 10 #include <sound/soc-acpi-intel-match.h>            10 #include <sound/soc-acpi-intel-match.h>
 11                                                    11 
 12 static const struct snd_soc_acpi_codecs essx_8     12 static const struct snd_soc_acpi_codecs essx_83x6 = {
 13         .num_codecs = 3,                           13         .num_codecs = 3,
 14         .codecs = { "ESSX8316", "ESSX8326", "E     14         .codecs = { "ESSX8316", "ESSX8326", "ESSX8336"},
 15 };                                                 15 };
 16                                                    16 
 17 struct snd_soc_acpi_mach snd_soc_acpi_intel_ic     17 struct snd_soc_acpi_mach snd_soc_acpi_intel_icl_machines[] = {
 18         {                                          18         {
 19                 .id = "INT34C2",                   19                 .id = "INT34C2",
 20                 .drv_name = "icl_rt274",           20                 .drv_name = "icl_rt274",
 21                 .fw_filename = "intel/dsp_fw_i     21                 .fw_filename = "intel/dsp_fw_icl.bin",
 22                 .sof_tplg_filename = "sof-icl-     22                 .sof_tplg_filename = "sof-icl-rt274.tplg",
 23         },                                         23         },
 24         {                                          24         {
 25                 .id = "10EC5682",                  25                 .id = "10EC5682",
 26                 .drv_name = "icl_rt5682_def",      26                 .drv_name = "icl_rt5682_def",
 27                 .sof_tplg_filename = "sof-icl-     27                 .sof_tplg_filename = "sof-icl-rt5682.tplg",
 28         },                                         28         },
 29         {                                          29         {
 30                 .comp_ids = &essx_83x6,            30                 .comp_ids = &essx_83x6,
 31                 .drv_name = "sof-essx8336",        31                 .drv_name = "sof-essx8336",
 32                 .sof_tplg_filename = "sof-icl-     32                 .sof_tplg_filename = "sof-icl-es8336", /* the tplg suffix is added at run time */
 33                 .tplg_quirk_mask = SND_SOC_ACP     33                 .tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_SSP_NUMBER |
 34                                         SND_SO     34                                         SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
 35                                         SND_SO     35                                         SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
 36         },                                         36         },
 37         {},                                        37         {},
 38 };                                                 38 };
 39 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_icl_machi     39 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_icl_machines);
 40                                                    40 
 41 static const struct snd_soc_acpi_endpoint sing     41 static const struct snd_soc_acpi_endpoint single_endpoint = {
 42         .num = 0,                                  42         .num = 0,
 43         .aggregated = 0,                           43         .aggregated = 0,
 44         .group_position = 0,                       44         .group_position = 0,
 45         .group_id = 0,                             45         .group_id = 0,
 46 };                                                 46 };
 47                                                    47 
 48 static const struct snd_soc_acpi_endpoint spk_     48 static const struct snd_soc_acpi_endpoint spk_l_endpoint = {
 49         .num = 0,                                  49         .num = 0,
 50         .aggregated = 1,                           50         .aggregated = 1,
 51         .group_position = 0,                       51         .group_position = 0,
 52         .group_id = 1,                             52         .group_id = 1,
 53 };                                                 53 };
 54                                                    54 
 55 static const struct snd_soc_acpi_endpoint spk_     55 static const struct snd_soc_acpi_endpoint spk_r_endpoint = {
 56         .num = 0,                                  56         .num = 0,
 57         .aggregated = 1,                           57         .aggregated = 1,
 58         .group_position = 1,                       58         .group_position = 1,
 59         .group_id = 1,                             59         .group_id = 1,
 60 };                                                 60 };
 61                                                    61 
 62 static const struct snd_soc_acpi_adr_device rt     62 static const struct snd_soc_acpi_adr_device rt700_0_adr[] = {
 63         {                                          63         {
 64                 .adr = 0x000010025D070000ull,      64                 .adr = 0x000010025D070000ull,
 65                 .num_endpoints = 1,                65                 .num_endpoints = 1,
 66                 .endpoints = &single_endpoint,     66                 .endpoints = &single_endpoint,
 67                 .name_prefix = "rt700"             67                 .name_prefix = "rt700"
 68         }                                          68         }
 69 };                                                 69 };
 70                                                    70 
 71 static const struct snd_soc_acpi_link_adr icl_     71 static const struct snd_soc_acpi_link_adr icl_rvp[] = {
 72         {                                          72         {
 73                 .mask = BIT(0),                    73                 .mask = BIT(0),
 74                 .num_adr = ARRAY_SIZE(rt700_0_     74                 .num_adr = ARRAY_SIZE(rt700_0_adr),
 75                 .adr_d = rt700_0_adr,              75                 .adr_d = rt700_0_adr,
 76         },                                         76         },
 77         {}                                         77         {}
 78 };                                                 78 };
 79                                                    79 
 80 static const struct snd_soc_acpi_adr_device rt     80 static const struct snd_soc_acpi_adr_device rt711_0_adr[] = {
 81         {                                          81         {
 82                 .adr = 0x000020025D071100ull,      82                 .adr = 0x000020025D071100ull,
 83                 .num_endpoints = 1,                83                 .num_endpoints = 1,
 84                 .endpoints = &single_endpoint,     84                 .endpoints = &single_endpoint,
 85                 .name_prefix = "rt711"             85                 .name_prefix = "rt711"
 86         }                                          86         }
 87 };                                                 87 };
 88                                                    88 
 89 static const struct snd_soc_acpi_adr_device rt     89 static const struct snd_soc_acpi_adr_device rt1308_1_adr[] = {
 90         {                                          90         {
 91                 .adr = 0x000120025D130800ull,      91                 .adr = 0x000120025D130800ull,
 92                 .num_endpoints = 1,                92                 .num_endpoints = 1,
 93                 .endpoints = &single_endpoint,     93                 .endpoints = &single_endpoint,
 94                 .name_prefix = "rt1308-1"          94                 .name_prefix = "rt1308-1"
 95         }                                          95         }
 96 };                                                 96 };
 97                                                    97 
 98 static const struct snd_soc_acpi_adr_device rt     98 static const struct snd_soc_acpi_adr_device rt1308_1_group1_adr[] = {
 99         {                                          99         {
100                 .adr = 0x000120025D130800ull,     100                 .adr = 0x000120025D130800ull,
101                 .num_endpoints = 1,               101                 .num_endpoints = 1,
102                 .endpoints = &spk_l_endpoint,     102                 .endpoints = &spk_l_endpoint,
103                 .name_prefix = "rt1308-1"         103                 .name_prefix = "rt1308-1"
104         }                                         104         }
105 };                                                105 };
106                                                   106 
107 static const struct snd_soc_acpi_adr_device rt    107 static const struct snd_soc_acpi_adr_device rt1308_2_group1_adr[] = {
108         {                                         108         {
109                 .adr = 0x000220025D130800ull,     109                 .adr = 0x000220025D130800ull,
110                 .num_endpoints = 1,               110                 .num_endpoints = 1,
111                 .endpoints = &spk_r_endpoint,     111                 .endpoints = &spk_r_endpoint,
112                 .name_prefix = "rt1308-2"         112                 .name_prefix = "rt1308-2"
113         }                                         113         }
114 };                                                114 };
115                                                   115 
116 static const struct snd_soc_acpi_adr_device rt    116 static const struct snd_soc_acpi_adr_device rt715_3_adr[] = {
117         {                                         117         {
118                 .adr = 0x000320025D071500ull,     118                 .adr = 0x000320025D071500ull,
119                 .num_endpoints = 1,               119                 .num_endpoints = 1,
120                 .endpoints = &single_endpoint,    120                 .endpoints = &single_endpoint,
121                 .name_prefix = "rt715"            121                 .name_prefix = "rt715"
122         }                                         122         }
123 };                                                123 };
124                                                   124 
125 static const struct snd_soc_acpi_link_adr icl_    125 static const struct snd_soc_acpi_link_adr icl_3_in_1_default[] = {
126         {                                         126         {
127                 .mask = BIT(0),                   127                 .mask = BIT(0),
128                 .num_adr = ARRAY_SIZE(rt711_0_    128                 .num_adr = ARRAY_SIZE(rt711_0_adr),
129                 .adr_d = rt711_0_adr,             129                 .adr_d = rt711_0_adr,
130         },                                        130         },
131         {                                         131         {
132                 .mask = BIT(1),                   132                 .mask = BIT(1),
133                 .num_adr = ARRAY_SIZE(rt1308_1    133                 .num_adr = ARRAY_SIZE(rt1308_1_group1_adr),
134                 .adr_d = rt1308_1_group1_adr,     134                 .adr_d = rt1308_1_group1_adr,
135         },                                        135         },
136         {                                         136         {
137                 .mask = BIT(2),                   137                 .mask = BIT(2),
138                 .num_adr = ARRAY_SIZE(rt1308_2    138                 .num_adr = ARRAY_SIZE(rt1308_2_group1_adr),
139                 .adr_d = rt1308_2_group1_adr,     139                 .adr_d = rt1308_2_group1_adr,
140         },                                        140         },
141         {                                         141         {
142                 .mask = BIT(3),                   142                 .mask = BIT(3),
143                 .num_adr = ARRAY_SIZE(rt715_3_    143                 .num_adr = ARRAY_SIZE(rt715_3_adr),
144                 .adr_d = rt715_3_adr,             144                 .adr_d = rt715_3_adr,
145         },                                        145         },
146         {}                                        146         {}
147 };                                                147 };
148                                                   148 
149 static const struct snd_soc_acpi_link_adr icl_    149 static const struct snd_soc_acpi_link_adr icl_3_in_1_mono_amp[] = {
150         {                                         150         {
151                 .mask = BIT(0),                   151                 .mask = BIT(0),
152                 .num_adr = ARRAY_SIZE(rt711_0_    152                 .num_adr = ARRAY_SIZE(rt711_0_adr),
153                 .adr_d = rt711_0_adr,             153                 .adr_d = rt711_0_adr,
154         },                                        154         },
155         {                                         155         {
156                 .mask = BIT(1),                   156                 .mask = BIT(1),
157                 .num_adr = ARRAY_SIZE(rt1308_1    157                 .num_adr = ARRAY_SIZE(rt1308_1_adr),
158                 .adr_d = rt1308_1_adr,            158                 .adr_d = rt1308_1_adr,
159         },                                        159         },
160         {                                         160         {
161                 .mask = BIT(3),                   161                 .mask = BIT(3),
162                 .num_adr = ARRAY_SIZE(rt715_3_    162                 .num_adr = ARRAY_SIZE(rt715_3_adr),
163                 .adr_d = rt715_3_adr,             163                 .adr_d = rt715_3_adr,
164         },                                        164         },
165         {}                                        165         {}
166 };                                                166 };
167                                                   167 
168 struct snd_soc_acpi_mach snd_soc_acpi_intel_ic    168 struct snd_soc_acpi_mach snd_soc_acpi_intel_icl_sdw_machines[] = {
169         {                                         169         {
170                 .link_mask = 0xF, /* 4 active     170                 .link_mask = 0xF, /* 4 active links required */
171                 .links = icl_3_in_1_default,      171                 .links = icl_3_in_1_default,
172                 .drv_name = "sof_sdw",            172                 .drv_name = "sof_sdw",
173                 .sof_tplg_filename = "sof-icl-    173                 .sof_tplg_filename = "sof-icl-rt711-rt1308-rt715.tplg",
174         },                                        174         },
175         {                                         175         {
176                 .link_mask = 0xB, /* 3 active     176                 .link_mask = 0xB, /* 3 active links required */
177                 .links = icl_3_in_1_mono_amp,     177                 .links = icl_3_in_1_mono_amp,
178                 .drv_name = "sof_sdw",            178                 .drv_name = "sof_sdw",
179                 .sof_tplg_filename = "sof-icl-    179                 .sof_tplg_filename = "sof-icl-rt711-rt1308-rt715-mono.tplg",
180         },                                        180         },
181         {                                         181         {
182                 .link_mask = 0x1, /* rt700 con    182                 .link_mask = 0x1, /* rt700 connected on link0 */
183                 .links = icl_rvp,                 183                 .links = icl_rvp,
184                 .drv_name = "sof_sdw",            184                 .drv_name = "sof_sdw",
185                 .sof_tplg_filename = "sof-icl-    185                 .sof_tplg_filename = "sof-icl-rt700.tplg",
186         },                                        186         },
187         {},                                       187         {},
188 };                                                188 };
189 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_icl_sdw_m    189 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_icl_sdw_machines);
190                                                   190 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php