blob: fb9ba881970604331a6d825f09893609eae9ada2 [file] [log] [blame]
Pierre-Louis Bossart1f24d932019-11-11 16:28:59 -06001// SPDX-License-Identifier: GPL-2.0
2/*
3 * soc-acpi-intel-cml-match.c - tables and support for CML ACPI enumeration.
4 *
5 * Copyright (c) 2019, Intel Corporation.
6 *
7 */
8
9#include <sound/soc-acpi.h>
10#include <sound/soc-acpi-intel-match.h>
11
Amery Song4e64ba32019-12-09 18:48:54 -060012static struct snd_soc_acpi_codecs rt1011_spk_codecs = {
Pierre-Louis Bossart1f24d932019-11-11 16:28:59 -060013 .num_codecs = 1,
Amery Song4e64ba32019-12-09 18:48:54 -060014 .codecs = {"10EC1011"}
Pierre-Louis Bossart1f24d932019-11-11 16:28:59 -060015};
16
Amery Song4e64ba32019-12-09 18:48:54 -060017static struct snd_soc_acpi_codecs max98357a_spk_codecs = {
Pierre-Louis Bossart1f24d932019-11-11 16:28:59 -060018 .num_codecs = 1,
19 .codecs = {"MX98357A"}
20};
21
Amery Song4e64ba32019-12-09 18:48:54 -060022/*
23 * The order of the three entries with .id = "10EC5682" matters
24 * here, because DSDT tables expose an ACPI HID for the MAX98357A
25 * speaker amplifier which is not populated on the board.
26 */
Pierre-Louis Bossart1f24d932019-11-11 16:28:59 -060027struct snd_soc_acpi_mach snd_soc_acpi_intel_cml_machines[] = {
28 {
Amery Song4e64ba32019-12-09 18:48:54 -060029 .id = "10EC5682",
Pierre-Louis Bossart1f24d932019-11-11 16:28:59 -060030 .drv_name = "cml_rt1011_rt5682",
Amery Song4e64ba32019-12-09 18:48:54 -060031 .machine_quirk = snd_soc_acpi_codec_list,
32 .quirk_data = &rt1011_spk_codecs,
Pierre-Louis Bossart1f24d932019-11-11 16:28:59 -060033 .sof_fw_filename = "sof-cml.ri",
34 .sof_tplg_filename = "sof-cml-rt1011-rt5682.tplg",
35 },
36 {
37 .id = "10EC5682",
38 .drv_name = "sof_rt5682",
Amery Song4e64ba32019-12-09 18:48:54 -060039 .machine_quirk = snd_soc_acpi_codec_list,
40 .quirk_data = &max98357a_spk_codecs,
41 .sof_fw_filename = "sof-cml.ri",
42 .sof_tplg_filename = "sof-cml-rt5682-max98357a.tplg",
43 },
44 {
45 .id = "10EC5682",
46 .drv_name = "sof_rt5682",
Pierre-Louis Bossart1f24d932019-11-11 16:28:59 -060047 .sof_fw_filename = "sof-cml.ri",
48 .sof_tplg_filename = "sof-cml-rt5682.tplg",
49 },
Amery Song4e64ba32019-12-09 18:48:54 -060050 {
51 .id = "DLGS7219",
52 .drv_name = "cml_da7219_max98357a",
53 .machine_quirk = snd_soc_acpi_codec_list,
54 .quirk_data = &max98357a_spk_codecs,
55 .sof_fw_filename = "sof-cml.ri",
56 .sof_tplg_filename = "sof-cml-da7219-max98357a.tplg",
57 },
Pierre-Louis Bossart1f24d932019-11-11 16:28:59 -060058 {},
59};
60EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cml_machines);
61
62MODULE_LICENSE("GPL v2");
63MODULE_DESCRIPTION("Intel Common ACPI Match module");