1e149ca29SPierre-Louis Bossart // SPDX-License-Identifier: GPL-2.0-only 24f0637eaSPan Xiuli /* 34f0637eaSPan Xiuli * soc-apci-intel-jsl-match.c - tables and support for JSL ACPI enumeration. 44f0637eaSPan Xiuli * 5a79ae0f6SYong Zhi * Copyright (c) 2019-2020, Intel Corporation. 64f0637eaSPan Xiuli * 74f0637eaSPan Xiuli */ 84f0637eaSPan Xiuli 94f0637eaSPan Xiuli #include <sound/soc-acpi.h> 104f0637eaSPan Xiuli #include <sound/soc-acpi-intel-match.h> 114f0637eaSPan Xiuli 123f32e596SYong Zhi static struct snd_soc_acpi_codecs jsl_7219_98373_codecs = { 133f32e596SYong Zhi .num_codecs = 1, 143f32e596SYong Zhi .codecs = {"MX98373"} 153f32e596SYong Zhi }; 163f32e596SYong Zhi 17a79ae0f6SYong Zhi static struct snd_soc_acpi_codecs rt1015_spk = { 18a79ae0f6SYong Zhi .num_codecs = 1, 19a79ae0f6SYong Zhi .codecs = {"10EC1015"} 20a79ae0f6SYong Zhi }; 21a79ae0f6SYong Zhi 22ad83b1adSBrent Lu static struct snd_soc_acpi_codecs rt1015p_spk = { 23ad83b1adSBrent Lu .num_codecs = 1, 24ad83b1adSBrent Lu .codecs = {"RTL1015"} 25ad83b1adSBrent Lu }; 26ad83b1adSBrent Lu 27719e8179SYong Zhi static struct snd_soc_acpi_codecs mx98360a_spk = { 28719e8179SYong Zhi .num_codecs = 1, 29719e8179SYong Zhi .codecs = {"MX98360A"} 30719e8179SYong Zhi }; 31719e8179SYong Zhi 323f32e596SYong Zhi /* 333f32e596SYong Zhi * When adding new entry to the snd_soc_acpi_intel_jsl_machines array, 343f32e596SYong Zhi * use .quirk_data member to distinguish different machine driver, 353f32e596SYong Zhi * and keep ACPI .id field unchanged for the common codec. 363f32e596SYong Zhi */ 374f0637eaSPan Xiuli struct snd_soc_acpi_mach snd_soc_acpi_intel_jsl_machines[] = { 3835dc19adSYong Zhi { 3935dc19adSYong Zhi .id = "DLGS7219", 4035dc19adSYong Zhi .drv_name = "sof_da7219_max98373", 4135dc19adSYong Zhi .sof_fw_filename = "sof-jsl.ri", 4235dc19adSYong Zhi .sof_tplg_filename = "sof-jsl-da7219.tplg", 433f32e596SYong Zhi .machine_quirk = snd_soc_acpi_codec_list, 443f32e596SYong Zhi .quirk_data = &jsl_7219_98373_codecs, 453f32e596SYong Zhi }, 463f32e596SYong Zhi { 473f32e596SYong Zhi .id = "DLGS7219", 483f32e596SYong Zhi .drv_name = "sof_da7219_max98360a", 493f32e596SYong Zhi .sof_fw_filename = "sof-jsl.ri", 503f32e596SYong Zhi .sof_tplg_filename = "sof-jsl-da7219-mx98360a.tplg", 5135dc19adSYong Zhi }, 52a79ae0f6SYong Zhi { 53a79ae0f6SYong Zhi .id = "10EC5682", 54a79ae0f6SYong Zhi .drv_name = "jsl_rt5682_rt1015", 55a79ae0f6SYong Zhi .sof_fw_filename = "sof-jsl.ri", 56a79ae0f6SYong Zhi .machine_quirk = snd_soc_acpi_codec_list, 57a79ae0f6SYong Zhi .quirk_data = &rt1015_spk, 58a79ae0f6SYong Zhi .sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg", 59a79ae0f6SYong Zhi }, 60719e8179SYong Zhi { 61719e8179SYong Zhi .id = "10EC5682", 62ad83b1adSBrent Lu .drv_name = "jsl_rt5682_rt1015p", 63ad83b1adSBrent Lu .sof_fw_filename = "sof-jsl.ri", 64ad83b1adSBrent Lu .machine_quirk = snd_soc_acpi_codec_list, 65ad83b1adSBrent Lu .quirk_data = &rt1015p_spk, 66ad83b1adSBrent Lu .sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg", 67ad83b1adSBrent Lu }, 68ad83b1adSBrent Lu { 69ad83b1adSBrent Lu .id = "10EC5682", 70*590cfb08SPierre-Louis Bossart .drv_name = "jsl_rt5682_mx98360a", 71719e8179SYong Zhi .sof_fw_filename = "sof-jsl.ri", 72719e8179SYong Zhi .machine_quirk = snd_soc_acpi_codec_list, 73719e8179SYong Zhi .quirk_data = &mx98360a_spk, 74719e8179SYong Zhi .sof_tplg_filename = "sof-jsl-rt5682-mx98360a.tplg", 75719e8179SYong Zhi }, 764f0637eaSPan Xiuli {}, 774f0637eaSPan Xiuli }; 784f0637eaSPan Xiuli EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_jsl_machines); 79