@@ -149,6 +149,8 @@ struct acp_chip_info {
149149 struct platform_device * chip_pdev ;
150150 struct platform_device * dmic_codec_dev ;
151151 struct platform_device * acp_plat_dev ;
152+ struct platform_device * mach_dev ;
153+ struct snd_soc_acpi_mach * machines ;
152154 u32 addr ;
153155 unsigned int flag ; /* Distinguish b/w Legacy or Only PDM */
154156 bool is_pdm_dev ; /* flag set to true when ACP PDM controller exists */
@@ -195,7 +197,6 @@ struct acp_dev_data {
195197 struct list_head stream_list ;
196198 spinlock_t acp_lock ;
197199
198- struct snd_soc_acpi_mach * machines ;
199200 struct platform_device * mach_dev ;
200201
201202 u32 bclk_div ;
@@ -245,13 +246,89 @@ enum acp_config {
245246 ACP_CONFIG_20 ,
246247};
247248
249+ struct snd_soc_acpi_codecs amp_rt1019 = {
250+ .num_codecs = 1 ,
251+ .codecs = {"10EC1019" }
252+ };
253+
254+ struct snd_soc_acpi_codecs amp_max = {
255+ .num_codecs = 1 ,
256+ .codecs = {"MX98360A" }
257+ };
258+
259+ struct snd_soc_acpi_mach snd_soc_acpi_amd_acp_machines [] = {
260+ {
261+ .id = "10EC5682" ,
262+ .drv_name = "acp3xalc56821019" ,
263+ .machine_quirk = snd_soc_acpi_codec_list ,
264+ .quirk_data = & amp_rt1019 ,
265+ },
266+ {
267+ .id = "RTL5682" ,
268+ .drv_name = "acp3xalc5682sm98360" ,
269+ .machine_quirk = snd_soc_acpi_codec_list ,
270+ .quirk_data = & amp_max ,
271+ },
272+ {
273+ .id = "RTL5682" ,
274+ .drv_name = "acp3xalc5682s1019" ,
275+ .machine_quirk = snd_soc_acpi_codec_list ,
276+ .quirk_data = & amp_rt1019 ,
277+ },
278+ {
279+ .id = "AMDI1019" ,
280+ .drv_name = "renoir-acp" ,
281+ },
282+ {
283+ .id = "ESSX8336" ,
284+ .drv_name = "acp3x-es83xx" ,
285+ },
286+ {},
287+ };
288+
289+ struct snd_soc_acpi_mach snd_soc_acpi_amd_rmb_acp_machines [] = {
290+ {
291+ .id = "10508825" ,
292+ .drv_name = "rmb-nau8825-max" ,
293+ .machine_quirk = snd_soc_acpi_codec_list ,
294+ .quirk_data = & amp_max ,
295+ },
296+ {
297+ .id = "AMDI0007" ,
298+ .drv_name = "rembrandt-acp" ,
299+ },
300+ {
301+ .id = "RTL5682" ,
302+ .drv_name = "rmb-rt5682s-rt1019" ,
303+ .machine_quirk = snd_soc_acpi_codec_list ,
304+ .quirk_data = & amp_rt1019 ,
305+ },
306+ {},
307+ };
308+
309+ struct snd_soc_acpi_mach snd_soc_acpi_amd_acp63_acp_machines [] = {
310+ {
311+ .id = "AMDI0052" ,
312+ .drv_name = "acp63-acp" ,
313+ },
314+ {},
315+ };
316+
317+ struct snd_soc_acpi_mach snd_soc_acpi_amd_acp70_acp_machines [] = {
318+ {
319+ .id = "AMDI0029" ,
320+ .drv_name = "acp70-acp" ,
321+ },
322+ {},
323+ };
324+
248325extern const struct snd_soc_dai_ops asoc_acp_cpu_dai_ops ;
249326extern const struct snd_soc_dai_ops acp_dmic_dai_ops ;
250327
251328int acp_platform_register (struct device * dev );
252329int acp_platform_unregister (struct device * dev );
253330
254- int acp_machine_select (struct acp_dev_data * adata );
331+ int acp_machine_select (struct acp_chip_info * chip );
255332
256333int acp_init (struct acp_chip_info * chip );
257334int acp_deinit (struct acp_chip_info * chip );
0 commit comments