forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/sound/soc/intel/common/soc-acpi-intel-cht-match.c
....@@ -1,17 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
2
- * soc-apci-intel-cht-match.c - tables and support for CHT ACPI enumeration.
3
+ * soc-acpi-intel-cht-match.c - tables and support for CHT ACPI enumeration.
34 *
45 * Copyright (c) 2017, Intel Corporation.
5
- *
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms and conditions of the GNU General Public License,
9
- * version 2, as published by the Free Software Foundation.
10
- *
11
- * This program is distributed in the hope it will be useful, but WITHOUT
12
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
- * more details.
156 */
167
178 #include <linux/dmi.h>
....@@ -44,9 +35,8 @@
4435 .drv_name = "cht-bsw-rt5645",
4536 .fw_filename = "intel/fw_sst_22a8.bin",
4637 .board = "cht-bsw",
47
- .sof_fw_filename = "intel/sof-cht.ri",
48
- .sof_tplg_filename = "intel/sof-cht-rt5645.tplg",
49
- .asoc_plat_name = "sst-mfld-platform",
38
+ .sof_fw_filename = "sof-cht.ri",
39
+ .sof_tplg_filename = "sof-cht-rt5645.tplg",
5040 };
5141
5242 static struct snd_soc_acpi_mach *cht_quirk(void *arg)
....@@ -68,90 +58,80 @@
6858 .drv_name = "cht-bsw-rt5672",
6959 .fw_filename = "intel/fw_sst_22a8.bin",
7060 .board = "cht-bsw",
71
- .sof_fw_filename = "intel/sof-cht.ri",
72
- .sof_tplg_filename = "intel/sof-cht-rt5670.tplg",
73
- .asoc_plat_name = "sst-mfld-platform",
61
+ .sof_fw_filename = "sof-cht.ri",
62
+ .sof_tplg_filename = "sof-cht-rt5670.tplg",
7463 },
7564 {
7665 .id = "10EC5672",
7766 .drv_name = "cht-bsw-rt5672",
7867 .fw_filename = "intel/fw_sst_22a8.bin",
7968 .board = "cht-bsw",
80
- .sof_fw_filename = "intel/sof-cht.ri",
81
- .sof_tplg_filename = "intel/sof-cht-rt5670.tplg",
82
- .asoc_plat_name = "sst-mfld-platform",
69
+ .sof_fw_filename = "sof-cht.ri",
70
+ .sof_tplg_filename = "sof-cht-rt5670.tplg",
8371 },
8472 {
8573 .id = "10EC5645",
8674 .drv_name = "cht-bsw-rt5645",
8775 .fw_filename = "intel/fw_sst_22a8.bin",
8876 .board = "cht-bsw",
89
- .sof_fw_filename = "intel/sof-cht.ri",
90
- .sof_tplg_filename = "intel/sof-cht-rt5645.tplg",
91
- .asoc_plat_name = "sst-mfld-platform",
77
+ .sof_fw_filename = "sof-cht.ri",
78
+ .sof_tplg_filename = "sof-cht-rt5645.tplg",
9279 },
9380 {
9481 .id = "10EC5650",
9582 .drv_name = "cht-bsw-rt5645",
9683 .fw_filename = "intel/fw_sst_22a8.bin",
9784 .board = "cht-bsw",
98
- .sof_fw_filename = "intel/sof-cht.ri",
99
- .sof_tplg_filename = "intel/sof-cht-rt5645.tplg",
100
- .asoc_plat_name = "sst-mfld-platform",
85
+ .sof_fw_filename = "sof-cht.ri",
86
+ .sof_tplg_filename = "sof-cht-rt5645.tplg",
10187 },
10288 {
10389 .id = "10EC3270",
10490 .drv_name = "cht-bsw-rt5645",
10591 .fw_filename = "intel/fw_sst_22a8.bin",
10692 .board = "cht-bsw",
107
- .sof_fw_filename = "intel/sof-cht.ri",
108
- .sof_tplg_filename = "intel/sof-cht-rt5645.tplg",
109
- .asoc_plat_name = "sst-mfld-platform",
93
+ .sof_fw_filename = "sof-cht.ri",
94
+ .sof_tplg_filename = "sof-cht-rt5645.tplg",
11095 },
11196 {
11297 .id = "193C9890",
11398 .drv_name = "cht-bsw-max98090",
11499 .fw_filename = "intel/fw_sst_22a8.bin",
115100 .board = "cht-bsw",
116
- .sof_fw_filename = "intel/sof-cht.ri",
117
- .sof_tplg_filename = "intel/sof-cht-max98090.tplg",
118
- .asoc_plat_name = "sst-mfld-platform",
101
+ .sof_fw_filename = "sof-cht.ri",
102
+ .sof_tplg_filename = "sof-cht-max98090.tplg",
119103 },
120104 {
121105 .id = "10508824",
122106 .drv_name = "cht-bsw-nau8824",
123107 .fw_filename = "intel/fw_sst_22a8.bin",
124108 .board = "cht-bsw",
125
- .sof_fw_filename = "intel/sof-cht.ri",
126
- .sof_tplg_filename = "intel/sof-cht-nau8824.tplg",
127
- .asoc_plat_name = "sst-mfld-platform",
109
+ .sof_fw_filename = "sof-cht.ri",
110
+ .sof_tplg_filename = "sof-cht-nau8824.tplg",
128111 },
129112 {
130113 .id = "DLGS7212",
131114 .drv_name = "bytcht_da7213",
132115 .fw_filename = "intel/fw_sst_22a8.bin",
133116 .board = "bytcht_da7213",
134
- .sof_fw_filename = "intel/sof-cht.ri",
135
- .sof_tplg_filename = "intel/sof-cht-da7213.tplg",
136
- .asoc_plat_name = "sst-mfld-platform",
117
+ .sof_fw_filename = "sof-cht.ri",
118
+ .sof_tplg_filename = "sof-cht-da7213.tplg",
137119 },
138120 {
139121 .id = "DLGS7213",
140122 .drv_name = "bytcht_da7213",
141123 .fw_filename = "intel/fw_sst_22a8.bin",
142124 .board = "bytcht_da7213",
143
- .sof_fw_filename = "intel/sof-cht.ri",
144
- .sof_tplg_filename = "intel/sof-cht-da7213.tplg",
145
- .asoc_plat_name = "sst-mfld-platform",
125
+ .sof_fw_filename = "sof-cht.ri",
126
+ .sof_tplg_filename = "sof-cht-da7213.tplg",
146127 },
147128 {
148129 .id = "ESSX8316",
149130 .drv_name = "bytcht_es8316",
150131 .fw_filename = "intel/fw_sst_22a8.bin",
151132 .board = "bytcht_es8316",
152
- .sof_fw_filename = "intel/sof-cht.ri",
153
- .sof_tplg_filename = "intel/sof-cht-es8316.tplg",
154
- .asoc_plat_name = "sst-mfld-platform",
133
+ .sof_fw_filename = "sof-cht.ri",
134
+ .sof_tplg_filename = "sof-cht-es8316.tplg",
155135 },
156136 /* some CHT-T platforms rely on RT5640, use Baytrail machine driver */
157137 {
....@@ -160,18 +140,22 @@
160140 .fw_filename = "intel/fw_sst_22a8.bin",
161141 .board = "bytcr_rt5640",
162142 .machine_quirk = cht_quirk,
163
- .sof_fw_filename = "intel/sof-cht.ri",
164
- .sof_tplg_filename = "intel/sof-cht-rt5640.tplg",
165
- .asoc_plat_name = "sst-mfld-platform",
143
+ .sof_fw_filename = "sof-cht.ri",
144
+ .sof_tplg_filename = "sof-cht-rt5640.tplg",
166145 },
167146 {
168147 .id = "10EC3276",
169148 .drv_name = "bytcr_rt5640",
170149 .fw_filename = "intel/fw_sst_22a8.bin",
171150 .board = "bytcr_rt5640",
172
- .sof_fw_filename = "intel/sof-cht.ri",
173
- .sof_tplg_filename = "intel/sof-cht-rt5640.tplg",
174
- .asoc_plat_name = "sst-mfld-platform",
151
+ .sof_fw_filename = "sof-cht.ri",
152
+ .sof_tplg_filename = "sof-cht-rt5640.tplg",
153
+ },
154
+ {
155
+ .id = "10EC5682",
156
+ .drv_name = "sof_rt5682",
157
+ .sof_fw_filename = "sof-cht.ri",
158
+ .sof_tplg_filename = "sof-cht-rt5682.tplg",
175159 },
176160 /* some CHT-T platforms rely on RT5651, use Baytrail machine driver */
177161 {
....@@ -179,10 +163,24 @@
179163 .drv_name = "bytcr_rt5651",
180164 .fw_filename = "intel/fw_sst_22a8.bin",
181165 .board = "bytcr_rt5651",
182
- .sof_fw_filename = "intel/sof-cht.ri",
183
- .sof_tplg_filename = "intel/sof-cht-rt5651.tplg",
184
- .asoc_plat_name = "sst-mfld-platform",
166
+ .sof_fw_filename = "sof-cht.ri",
167
+ .sof_tplg_filename = "sof-cht-rt5651.tplg",
185168 },
169
+ {
170
+ .id = "14F10720",
171
+ .drv_name = "bytcht_cx2072x",
172
+ .fw_filename = "intel/fw_sst_22a8.bin",
173
+ .board = "bytcht_cx2072x",
174
+ .sof_fw_filename = "sof-cht.ri",
175
+ .sof_tplg_filename = "sof-cht-cx2072x.tplg",
176
+ },
177
+ {
178
+ .id = "104C5122",
179
+ .drv_name = "sof_pcm512x",
180
+ .sof_fw_filename = "sof-cht.ri",
181
+ .sof_tplg_filename = "sof-cht-src-50khz-pcm512x.tplg",
182
+ },
183
+
186184 #if IS_ENABLED(CONFIG_SND_SOC_INTEL_BYT_CHT_NOCODEC_MACH)
187185 /*
188186 * This is always last in the table so that it is selected only when