Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 3 | * soc-acpi-intel-cnl-match.c - tables and support for CNL ACPI enumeration. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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 | |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 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 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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, |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 33 | .sof_fw_filename = "sof-cnl.ri", |
| 34 | .sof_tplg_filename = "sof-cnl-rt274.tplg", |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 35 | }, |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 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 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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"); |