1e149ca29SPierre-Louis Bossart // SPDX-License-Identifier: GPL-2.0-only
24f0637eaSPan Xiuli /*
34f0637eaSPan Xiuli  * soc-apci-intel-jsl-match.c - tables and support for JSL ACPI enumeration.
44f0637eaSPan Xiuli  *
5a79ae0f6SYong Zhi  * Copyright (c) 2019-2020, Intel Corporation.
64f0637eaSPan Xiuli  *
74f0637eaSPan Xiuli  */
84f0637eaSPan Xiuli 
94f0637eaSPan Xiuli #include <sound/soc-acpi.h>
104f0637eaSPan Xiuli #include <sound/soc-acpi-intel-match.h>
114f0637eaSPan Xiuli 
123f32e596SYong Zhi static struct snd_soc_acpi_codecs jsl_7219_98373_codecs = {
133f32e596SYong Zhi 	.num_codecs = 1,
143f32e596SYong Zhi 	.codecs = {"MX98373"}
153f32e596SYong Zhi };
163f32e596SYong Zhi 
17a79ae0f6SYong Zhi static struct snd_soc_acpi_codecs rt1015_spk = {
18a79ae0f6SYong Zhi 	.num_codecs = 1,
19a79ae0f6SYong Zhi 	.codecs = {"10EC1015"}
20a79ae0f6SYong Zhi };
21a79ae0f6SYong Zhi 
22ad83b1adSBrent Lu static struct snd_soc_acpi_codecs rt1015p_spk = {
23ad83b1adSBrent Lu 	.num_codecs = 1,
24ad83b1adSBrent Lu 	.codecs = {"RTL1015"}
25ad83b1adSBrent Lu };
26ad83b1adSBrent Lu 
27719e8179SYong Zhi static struct snd_soc_acpi_codecs mx98360a_spk = {
28719e8179SYong Zhi 	.num_codecs = 1,
29719e8179SYong Zhi 	.codecs = {"MX98360A"}
30719e8179SYong Zhi };
31719e8179SYong Zhi 
323f32e596SYong Zhi /*
333f32e596SYong Zhi  * When adding new entry to the snd_soc_acpi_intel_jsl_machines array,
343f32e596SYong Zhi  * use .quirk_data member to distinguish different machine driver,
353f32e596SYong Zhi  * and keep ACPI .id field unchanged for the common codec.
363f32e596SYong Zhi  */
374f0637eaSPan Xiuli struct snd_soc_acpi_mach snd_soc_acpi_intel_jsl_machines[] = {
3835dc19adSYong Zhi 	{
3935dc19adSYong Zhi 		.id = "DLGS7219",
401cc04d19SPierre-Louis Bossart 		.drv_name = "sof_da7219_mx98373",
4135dc19adSYong Zhi 		.sof_fw_filename = "sof-jsl.ri",
4235dc19adSYong Zhi 		.sof_tplg_filename = "sof-jsl-da7219.tplg",
433f32e596SYong Zhi 		.machine_quirk = snd_soc_acpi_codec_list,
443f32e596SYong Zhi 		.quirk_data = &jsl_7219_98373_codecs,
453f32e596SYong Zhi 	},
463f32e596SYong Zhi 	{
473f32e596SYong Zhi 		.id = "DLGS7219",
481cc04d19SPierre-Louis Bossart 		.drv_name = "sof_da7219_mx98360a",
493f32e596SYong Zhi 		.sof_fw_filename = "sof-jsl.ri",
503f32e596SYong Zhi 		.sof_tplg_filename = "sof-jsl-da7219-mx98360a.tplg",
5135dc19adSYong Zhi 	},
52a79ae0f6SYong Zhi 	{
53a79ae0f6SYong Zhi 		.id = "10EC5682",
54a79ae0f6SYong Zhi 		.drv_name = "jsl_rt5682_rt1015",
55a79ae0f6SYong Zhi 		.sof_fw_filename = "sof-jsl.ri",
56a79ae0f6SYong Zhi 		.machine_quirk = snd_soc_acpi_codec_list,
57a79ae0f6SYong Zhi 		.quirk_data = &rt1015_spk,
58a79ae0f6SYong Zhi 		.sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg",
59a79ae0f6SYong Zhi 	},
60719e8179SYong Zhi 	{
61719e8179SYong Zhi 		.id = "10EC5682",
62ad83b1adSBrent Lu 		.drv_name = "jsl_rt5682_rt1015p",
63ad83b1adSBrent Lu 		.sof_fw_filename = "sof-jsl.ri",
64ad83b1adSBrent Lu 		.machine_quirk = snd_soc_acpi_codec_list,
65ad83b1adSBrent Lu 		.quirk_data = &rt1015p_spk,
66ad83b1adSBrent Lu 		.sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg",
67ad83b1adSBrent Lu 	},
68ad83b1adSBrent Lu 	{
69ad83b1adSBrent Lu 		.id = "10EC5682",
703c561a09SBrent Lu 		.drv_name = "jsl_rt5682_mx98360",
71719e8179SYong Zhi 		.sof_fw_filename = "sof-jsl.ri",
72719e8179SYong Zhi 		.machine_quirk = snd_soc_acpi_codec_list,
73719e8179SYong Zhi 		.quirk_data = &mx98360a_spk,
74719e8179SYong Zhi 		.sof_tplg_filename = "sof-jsl-rt5682-mx98360a.tplg",
75719e8179SYong Zhi 	},
767d1bf46cSBrent Lu 	{
777d1bf46cSBrent Lu 		.id = "10134242",
787d1bf46cSBrent Lu 		.drv_name = "jsl_cs4242_mx98360a",
797d1bf46cSBrent Lu 		.sof_fw_filename = "sof-jsl.ri",
807d1bf46cSBrent Lu 		.machine_quirk = snd_soc_acpi_codec_list,
817d1bf46cSBrent Lu 		.quirk_data = &mx98360a_spk,
827d1bf46cSBrent Lu 		.sof_tplg_filename = "sof-jsl-cs42l42-mx98360a.tplg",
837d1bf46cSBrent Lu 	},
8446414bc3SBrent Lu 	{
8546414bc3SBrent Lu 		.id = "RTL5682",
8604afb621SBrent Lu 		.drv_name = "jsl_rt5682s_rt1015",
8704afb621SBrent Lu 		.sof_fw_filename = "sof-jsl.ri",
8804afb621SBrent Lu 		.machine_quirk = snd_soc_acpi_codec_list,
8904afb621SBrent Lu 		.quirk_data = &rt1015_spk,
9004afb621SBrent Lu 		.sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg",
9104afb621SBrent Lu 	},
9204afb621SBrent Lu 	{
9304afb621SBrent Lu 		.id = "RTL5682",
9446414bc3SBrent Lu 		.drv_name = "jsl_rt5682s_rt1015p",
9546414bc3SBrent Lu 		.sof_fw_filename = "sof-jsl.ri",
9646414bc3SBrent Lu 		.machine_quirk = snd_soc_acpi_codec_list,
9746414bc3SBrent Lu 		.quirk_data = &rt1015p_spk,
9846414bc3SBrent Lu 		.sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg",
9946414bc3SBrent Lu 	},
100e224ef76SBrent Lu 	{
101e224ef76SBrent Lu 		.id = "RTL5682",
1023c561a09SBrent Lu 		.drv_name = "jsl_rt5682s_mx98360",
103e224ef76SBrent Lu 		.sof_fw_filename = "sof-jsl.ri",
104e224ef76SBrent Lu 		.machine_quirk = snd_soc_acpi_codec_list,
105e224ef76SBrent Lu 		.quirk_data = &mx98360a_spk,
106e224ef76SBrent Lu 		.sof_tplg_filename = "sof-jsl-rt5682-mx98360a.tplg",
107e224ef76SBrent Lu 	},
108*63ff4c50SPierre-Louis Bossart 	{
109*63ff4c50SPierre-Louis Bossart 		.id = "ESSX8336",
110*63ff4c50SPierre-Louis Bossart 		.drv_name = "sof-essx8336",
111*63ff4c50SPierre-Louis Bossart 		.sof_fw_filename = "sof-jsl.ri",
112*63ff4c50SPierre-Louis Bossart 		.sof_tplg_filename = "sof-jsl-es8336.tplg",
113*63ff4c50SPierre-Louis Bossart 	},
1144f0637eaSPan Xiuli 	{},
1154f0637eaSPan Xiuli };
1164f0637eaSPan Xiuli EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_jsl_machines);
117