xref: /linux/sound/soc/intel/common/soc-acpi-intel-glk-match.c (revision 33e02dc69afbd8f1b85a51d74d72f139ba4ca623)
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * soc-acpi-intel-glk-match.c - tables and support for GLK ACPI enumeration.
4  *
5  * Copyright (c) 2018, Intel Corporation.
6  *
7  */
8 
9 #include <sound/soc-acpi.h>
10 #include <sound/soc-acpi-intel-match.h>
11 
12 static const struct snd_soc_acpi_codecs essx_83x6 = {
13 	.num_codecs = 3,
14 	.codecs = { "ESSX8316", "ESSX8326", "ESSX8336"},
15 };
16 
17 static const struct snd_soc_acpi_codecs glk_codecs = {
18 	.num_codecs = 1,
19 	.codecs = {"MX98357A"}
20 };
21 
22 static const struct snd_soc_acpi_codecs glk_rt5682_rt5682s_hp = {
23 	.num_codecs = 2,
24 	.codecs = {"10EC5682", "RTL5682"},
25 };
26 
27 struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[] = {
28 	{
29 		.id = "INT343A",
30 		.drv_name = "glk_alc298s_i2s",
31 		.fw_filename = "intel/dsp_fw_glk.bin",
32 		.sof_tplg_filename = "sof-glk-alc298.tplg",
33 	},
34 	{
35 		.id = "DLGS7219",
36 		.drv_name = "glk_da7219_def",
37 		.fw_filename = "intel/dsp_fw_glk.bin",
38 		.machine_quirk = snd_soc_acpi_codec_list,
39 		.quirk_data = &glk_codecs,
40 		.sof_tplg_filename = "sof-glk-da7219.tplg",
41 	},
42 	{
43 		.comp_ids = &glk_rt5682_rt5682s_hp,
44 		.drv_name = "glk_rt5682_def",
45 		.fw_filename = "intel/dsp_fw_glk.bin",
46 		.machine_quirk = snd_soc_acpi_codec_list,
47 		.quirk_data = &glk_codecs,
48 		.sof_tplg_filename = "sof-glk-rt5682.tplg",
49 	},
50 	{
51 		.id = "10134242",
52 		.drv_name = "glk_cs4242_mx98357a",
53 		.fw_filename = "intel/dsp_fw_glk.bin",
54 		.machine_quirk = snd_soc_acpi_codec_list,
55 		.quirk_data = &glk_codecs,
56 		.sof_tplg_filename = "sof-glk-cs42l42.tplg",
57 	},
58 	{
59 		.comp_ids = &essx_83x6,
60 		.drv_name = "sof-essx8336",
61 		.sof_tplg_filename = "sof-glk-es8336", /* the tplg suffix is added at run time */
62 		.tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_SSP_NUMBER |
63 					SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
64 					SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
65 	},
66 	{},
67 };
68 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_glk_machines);
69