1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * soc-acpi-intel-cnl-match.c - tables and support for CNL 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 #include "../skylake/skl.h"
12 
13 static struct skl_machine_pdata cnl_pdata = {
14 	.use_tplg_pcm = true,
15 };
16 
17 static struct snd_soc_acpi_codecs cml_codecs = {
18 	.num_codecs = 1,
19 	.codecs = {"10EC5682"}
20 };
21 
22 static struct snd_soc_acpi_codecs cml_spk_codecs = {
23 	.num_codecs = 1,
24 	.codecs = {"MX98357A"}
25 };
26 
27 struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_machines[] = {
28 	{
29 		.id = "INT34C2",
30 		.drv_name = "cnl_rt274",
31 		.fw_filename = "intel/dsp_fw_cnl.bin",
32 		.pdata = &cnl_pdata,
33 		.sof_fw_filename = "sof-cnl.ri",
34 		.sof_tplg_filename = "sof-cnl-rt274.tplg",
35 	},
36 	{
37 		.id = "DLGS7219",
38 		.drv_name = "cml_da7219_max98357a",
39 		.quirk_data = &cml_spk_codecs,
40 		.sof_fw_filename = "sof-cnl.ri",
41 		.sof_tplg_filename = "sof-cml-da7219-max98357a.tplg",
42 	},
43 	{
44 		.id = "MX98357A",
45 		.drv_name = "sof_rt5682",
46 		.quirk_data = &cml_codecs,
47 		.sof_fw_filename = "sof-cnl.ri",
48 		.sof_tplg_filename = "sof-cml-rt5682-max98357a.tplg",
49 	},
50 	{
51 		.id = "10EC5682",
52 		.drv_name = "sof_rt5682",
53 		.sof_fw_filename = "sof-cnl.ri",
54 		.sof_tplg_filename = "sof-cml-rt5682.tplg",
55 	},
56 
57 	{},
58 };
59 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cnl_machines);
60 
61 MODULE_LICENSE("GPL v2");
62 MODULE_DESCRIPTION("Intel Common ACPI Match module");
63