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 struct snd_soc_acpi_codecs jsl_7219_98373_codecs = { 13 .num_codecs = 1, 14 .codecs = {"MX98373"} 15 }; 16 17 static struct snd_soc_acpi_codecs rt1015_spk = { 18 .num_codecs = 1, 19 .codecs = {"10EC1015"} 20 }; 21 22 static struct snd_soc_acpi_codecs rt1015p_spk = { 23 .num_codecs = 1, 24 .codecs = {"RTL1015"} 25 }; 26 27 static struct snd_soc_acpi_codecs mx98360a_spk = { 28 .num_codecs = 1, 29 .codecs = {"MX98360A"} 30 }; 31 32 /* 33 * When adding new entry to the snd_soc_acpi_intel_jsl_machines array, 34 * use .quirk_data member to distinguish different machine driver, 35 * and keep ACPI .id field unchanged for the common codec. 36 */ 37 struct snd_soc_acpi_mach snd_soc_acpi_intel_jsl_machines[] = { 38 { 39 .id = "DLGS7219", 40 .drv_name = "sof_da7219_mx98373", 41 .sof_fw_filename = "sof-jsl.ri", 42 .sof_tplg_filename = "sof-jsl-da7219.tplg", 43 .machine_quirk = snd_soc_acpi_codec_list, 44 .quirk_data = &jsl_7219_98373_codecs, 45 }, 46 { 47 .id = "DLGS7219", 48 .drv_name = "sof_da7219_mx98360a", 49 .sof_fw_filename = "sof-jsl.ri", 50 .sof_tplg_filename = "sof-jsl-da7219-mx98360a.tplg", 51 }, 52 { 53 .id = "10EC5682", 54 .drv_name = "jsl_rt5682_rt1015", 55 .sof_fw_filename = "sof-jsl.ri", 56 .machine_quirk = snd_soc_acpi_codec_list, 57 .quirk_data = &rt1015_spk, 58 .sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg", 59 }, 60 { 61 .id = "10EC5682", 62 .drv_name = "jsl_rt5682_rt1015p", 63 .sof_fw_filename = "sof-jsl.ri", 64 .machine_quirk = snd_soc_acpi_codec_list, 65 .quirk_data = &rt1015p_spk, 66 .sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg", 67 }, 68 { 69 .id = "10EC5682", 70 .drv_name = "jsl_rt5682_mx98360a", 71 .sof_fw_filename = "sof-jsl.ri", 72 .machine_quirk = snd_soc_acpi_codec_list, 73 .quirk_data = &mx98360a_spk, 74 .sof_tplg_filename = "sof-jsl-rt5682-mx98360a.tplg", 75 }, 76 { 77 .id = "10134242", 78 .drv_name = "jsl_cs4242_mx98360a", 79 .sof_fw_filename = "sof-jsl.ri", 80 .machine_quirk = snd_soc_acpi_codec_list, 81 .quirk_data = &mx98360a_spk, 82 .sof_tplg_filename = "sof-jsl-cs42l42-mx98360a.tplg", 83 }, 84 {}, 85 }; 86 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_jsl_machines); 87