1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 3 * soc-apci-intel-jsl-match.c - tables and support for JSL ACPI enumeration. 4 * 5 * Copyright (c) 2019-2020, Intel Corporation. 6 * 7 */ 8 9 #include <sound/soc-acpi.h> 10 #include <sound/soc-acpi-intel-match.h> 11 12 static const struct snd_soc_acpi_codecs jsl_7219_98373_codecs = { 13 .num_codecs = 1, 14 .codecs = {"MX98373"} 15 }; 16 17 static const struct snd_soc_acpi_codecs rt1015_spk = { 18 .num_codecs = 1, 19 .codecs = {"10EC1015"} 20 }; 21 22 static const struct snd_soc_acpi_codecs rt1015p_spk = { 23 .num_codecs = 1, 24 .codecs = {"RTL1015"} 25 }; 26 27 static const struct snd_soc_acpi_codecs mx98360a_spk = { 28 .num_codecs = 1, 29 .codecs = {"MX98360A"} 30 }; 31 32 static const struct snd_soc_acpi_codecs rt5682_rt5682s_hp = { 33 .num_codecs = 2, 34 .codecs = {"10EC5682", "RTL5682"}, 35 }; 36 37 /* 38 * When adding new entry to the snd_soc_acpi_intel_jsl_machines array, 39 * use .quirk_data member to distinguish different machine driver, 40 * and keep ACPI .id field unchanged for the common codec. 41 */ 42 struct snd_soc_acpi_mach snd_soc_acpi_intel_jsl_machines[] = { 43 { 44 .id = "DLGS7219", 45 .drv_name = "sof_da7219_mx98373", 46 .sof_fw_filename = "sof-jsl.ri", 47 .sof_tplg_filename = "sof-jsl-da7219.tplg", 48 .machine_quirk = snd_soc_acpi_codec_list, 49 .quirk_data = &jsl_7219_98373_codecs, 50 }, 51 { 52 .id = "DLGS7219", 53 .drv_name = "sof_da7219_mx98360a", 54 .sof_fw_filename = "sof-jsl.ri", 55 .sof_tplg_filename = "sof-jsl-da7219-mx98360a.tplg", 56 }, 57 { 58 .comp_ids = &rt5682_rt5682s_hp, 59 .drv_name = "jsl_rt5682_rt1015", 60 .sof_fw_filename = "sof-jsl.ri", 61 .machine_quirk = snd_soc_acpi_codec_list, 62 .quirk_data = &rt1015_spk, 63 .sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg", 64 }, 65 { 66 .comp_ids = &rt5682_rt5682s_hp, 67 .drv_name = "jsl_rt5682_rt1015p", 68 .sof_fw_filename = "sof-jsl.ri", 69 .machine_quirk = snd_soc_acpi_codec_list, 70 .quirk_data = &rt1015p_spk, 71 .sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg", 72 }, 73 { 74 .comp_ids = &rt5682_rt5682s_hp, 75 .drv_name = "jsl_rt5682_mx98360", 76 .sof_fw_filename = "sof-jsl.ri", 77 .machine_quirk = snd_soc_acpi_codec_list, 78 .quirk_data = &mx98360a_spk, 79 .sof_tplg_filename = "sof-jsl-rt5682-mx98360a.tplg", 80 }, 81 { 82 .id = "10134242", 83 .drv_name = "jsl_cs4242_mx98360a", 84 .sof_fw_filename = "sof-jsl.ri", 85 .machine_quirk = snd_soc_acpi_codec_list, 86 .quirk_data = &mx98360a_spk, 87 .sof_tplg_filename = "sof-jsl-cs42l42-mx98360a.tplg", 88 }, 89 { 90 .id = "ESSX8336", 91 .drv_name = "sof-essx8336", 92 .sof_fw_filename = "sof-jsl.ri", 93 .sof_tplg_filename = "sof-jsl-es8336.tplg", 94 }, 95 {}, 96 }; 97 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_jsl_machines); 98