Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * soc-acpi-intel-glk-match.c - tables and support for GLK ACPI enumeration.
0004  *
0005  * Copyright (c) 2018, Intel Corporation.
0006  *
0007  */
0008 
0009 #include <sound/soc-acpi.h>
0010 #include <sound/soc-acpi-intel-match.h>
0011 
0012 static const struct snd_soc_acpi_codecs essx_83x6 = {
0013     .num_codecs = 3,
0014     .codecs = { "ESSX8316", "ESSX8326", "ESSX8336"},
0015 };
0016 
0017 static const struct snd_soc_acpi_codecs glk_codecs = {
0018     .num_codecs = 1,
0019     .codecs = {"MX98357A"}
0020 };
0021 
0022 struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[] = {
0023     {
0024         .id = "INT343A",
0025         .drv_name = "glk_alc298s_i2s",
0026         .fw_filename = "intel/dsp_fw_glk.bin",
0027         .sof_tplg_filename = "sof-glk-alc298.tplg",
0028     },
0029     {
0030         .id = "DLGS7219",
0031         .drv_name = "glk_da7219_mx98357a",
0032         .fw_filename = "intel/dsp_fw_glk.bin",
0033         .machine_quirk = snd_soc_acpi_codec_list,
0034         .quirk_data = &glk_codecs,
0035         .sof_tplg_filename = "sof-glk-da7219.tplg",
0036     },
0037     {
0038         .id = "10EC5682",
0039         .drv_name = "glk_rt5682_mx98357a",
0040         .fw_filename = "intel/dsp_fw_glk.bin",
0041         .machine_quirk = snd_soc_acpi_codec_list,
0042         .quirk_data = &glk_codecs,
0043         .sof_tplg_filename = "sof-glk-rt5682.tplg",
0044     },
0045     {
0046         .id = "RTL5682",
0047         .drv_name = "glk_rt5682_max98357a",
0048         .machine_quirk = snd_soc_acpi_codec_list,
0049         .quirk_data = &glk_codecs,
0050         .sof_tplg_filename = "sof-glk-rt5682.tplg",
0051     },
0052     {
0053         .id = "10134242",
0054         .drv_name = "glk_cs4242_mx98357a",
0055         .fw_filename = "intel/dsp_fw_glk.bin",
0056         .machine_quirk = snd_soc_acpi_codec_list,
0057         .quirk_data = &glk_codecs,
0058         .sof_tplg_filename = "sof-glk-cs42l42.tplg",
0059     },
0060     {
0061         .comp_ids = &essx_83x6,
0062         .drv_name = "sof-essx8336",
0063         .sof_tplg_filename = "sof-glk-es8336", /* the tplg suffix is added at run time */
0064         .tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_SSP_NUMBER |
0065                     SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
0066                     SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
0067     },
0068     {},
0069 };
0070 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_glk_machines);