1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * soc-apci-intel-jsl-match.c - tables and support for JSL ACPI enumeration.
4  *
5  * Copyright (c) 2019-2020, Intel Corporation.
6  *
7  */
8 
9 #include <sound/soc-acpi.h>
10 #include <sound/soc-acpi-intel-match.h>
11 
12 static struct snd_soc_acpi_codecs jsl_7219_98373_codecs = {
13 	.num_codecs = 1,
14 	.codecs = {"MX98373"}
15 };
16 
17 static struct snd_soc_acpi_codecs rt1015_spk = {
18 	.num_codecs = 1,
19 	.codecs = {"10EC1015"}
20 };
21 
22 /*
23  * When adding new entry to the snd_soc_acpi_intel_jsl_machines array,
24  * use .quirk_data member to distinguish different machine driver,
25  * and keep ACPI .id field unchanged for the common codec.
26  */
27 struct snd_soc_acpi_mach snd_soc_acpi_intel_jsl_machines[] = {
28 	{
29 		.id = "DLGS7219",
30 		.drv_name = "sof_da7219_max98373",
31 		.sof_fw_filename = "sof-jsl.ri",
32 		.sof_tplg_filename = "sof-jsl-da7219.tplg",
33 		.machine_quirk = snd_soc_acpi_codec_list,
34 		.quirk_data = &jsl_7219_98373_codecs,
35 	},
36 	{
37 		.id = "DLGS7219",
38 		.drv_name = "sof_da7219_max98360a",
39 		.sof_fw_filename = "sof-jsl.ri",
40 		.sof_tplg_filename = "sof-jsl-da7219-mx98360a.tplg",
41 	},
42 	{
43 		.id = "10EC5682",
44 		.drv_name = "jsl_rt5682_rt1015",
45 		.sof_fw_filename = "sof-jsl.ri",
46 		.machine_quirk = snd_soc_acpi_codec_list,
47 		.quirk_data = &rt1015_spk,
48 		.sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg",
49 	},
50 	{},
51 };
52 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_jsl_machines);
53 
54 MODULE_LICENSE("GPL v2");
55 MODULE_DESCRIPTION("Intel Common ACPI Match module");
56