blob: 985aa366c9e8a3bf84d9832bee5637cc419d2e79 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001// SPDX-License-Identifier: GPL-2.0
2/*
David Brazdil0f672f62019-12-10 10:32:29 +00003 * soc-acpi-intel-cnl-match.c - tables and support for CNL ACPI enumeration.
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 *
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
13static struct skl_machine_pdata cnl_pdata = {
14 .use_tplg_pcm = true,
15};
16
David Brazdil0f672f62019-12-10 10:32:29 +000017static struct snd_soc_acpi_codecs cml_codecs = {
18 .num_codecs = 1,
19 .codecs = {"10EC5682"}
20};
21
22static struct snd_soc_acpi_codecs cml_spk_codecs = {
23 .num_codecs = 1,
24 .codecs = {"MX98357A"}
25};
26
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000027struct 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,
David Brazdil0f672f62019-12-10 10:32:29 +000033 .sof_fw_filename = "sof-cnl.ri",
34 .sof_tplg_filename = "sof-cnl-rt274.tplg",
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000035 },
David Brazdil0f672f62019-12-10 10:32:29 +000036 {
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
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000057 {},
58};
59EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cnl_machines);
60
61MODULE_LICENSE("GPL v2");
62MODULE_DESCRIPTION("Intel Common ACPI Match module");