xref: /linux/sound/soc/intel/common/soc-acpi-intel-cnl-match.c (revision ebf68996de0ab250c5d520eb2291ab65643e9a1e)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * soc-apci-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 struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_machines[] = {
23 	{
24 		.id = "INT34C2",
25 		.drv_name = "cnl_rt274",
26 		.fw_filename = "intel/dsp_fw_cnl.bin",
27 		.pdata = &cnl_pdata,
28 		.sof_fw_filename = "sof-cnl.ri",
29 		.sof_tplg_filename = "sof-cnl-rt274.tplg",
30 	},
31 	{
32 		.id = "MX98357A",
33 		.drv_name = "sof_rt5682",
34 		.quirk_data = &cml_codecs,
35 		.sof_fw_filename = "sof-cnl.ri",
36 		.sof_tplg_filename = "sof-cml-rt5682-max98357a.tplg",
37 	},
38 	{
39 		.id = "10EC5682",
40 		.drv_name = "sof_rt5682",
41 		.sof_fw_filename = "sof-cnl.ri",
42 		.sof_tplg_filename = "sof-cml-rt5682.tplg",
43 	},
44 
45 	{},
46 };
47 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cnl_machines);
48 
49 MODULE_LICENSE("GPL v2");
50 MODULE_DESCRIPTION("Intel Common ACPI Match module");
51