2020-05-01 14:58:50 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2019-10-22 19:47:04 +00:00
|
|
|
/*
|
|
|
|
* soc-apci-intel-jsl-match.c - tables and support for JSL ACPI enumeration.
|
|
|
|
*
|
2020-03-12 19:48:58 +00:00
|
|
|
* Copyright (c) 2019-2020, Intel Corporation.
|
2019-10-22 19:47:04 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sound/soc-acpi.h>
|
|
|
|
#include <sound/soc-acpi-intel-match.h>
|
|
|
|
|
2021-10-29 17:14:09 +00:00
|
|
|
static const struct snd_soc_acpi_codecs jsl_7219_98373_codecs = {
|
2020-03-12 19:48:57 +00:00
|
|
|
.num_codecs = 1,
|
|
|
|
.codecs = {"MX98373"}
|
|
|
|
};
|
|
|
|
|
2021-10-29 17:14:09 +00:00
|
|
|
static const struct snd_soc_acpi_codecs rt1015_spk = {
|
2020-03-12 19:48:58 +00:00
|
|
|
.num_codecs = 1,
|
|
|
|
.codecs = {"10EC1015"}
|
|
|
|
};
|
|
|
|
|
2021-10-29 17:14:09 +00:00
|
|
|
static const struct snd_soc_acpi_codecs rt1015p_spk = {
|
2021-03-17 11:08:24 +00:00
|
|
|
.num_codecs = 1,
|
|
|
|
.codecs = {"RTL1015"}
|
|
|
|
};
|
|
|
|
|
2021-10-29 17:14:09 +00:00
|
|
|
static const struct snd_soc_acpi_codecs mx98360a_spk = {
|
2020-06-25 19:13:00 +00:00
|
|
|
.num_codecs = 1,
|
|
|
|
.codecs = {"MX98360A"}
|
|
|
|
};
|
|
|
|
|
2021-10-29 17:14:06 +00:00
|
|
|
static const struct snd_soc_acpi_codecs rt5682_rt5682s_hp = {
|
|
|
|
.num_codecs = 2,
|
|
|
|
.codecs = {"10EC5682", "RTL5682"},
|
|
|
|
};
|
|
|
|
|
2020-03-12 19:48:57 +00:00
|
|
|
/*
|
|
|
|
* When adding new entry to the snd_soc_acpi_intel_jsl_machines array,
|
|
|
|
* use .quirk_data member to distinguish different machine driver,
|
|
|
|
* and keep ACPI .id field unchanged for the common codec.
|
|
|
|
*/
|
2019-10-22 19:47:04 +00:00
|
|
|
struct snd_soc_acpi_mach snd_soc_acpi_intel_jsl_machines[] = {
|
2019-12-18 00:26:12 +00:00
|
|
|
{
|
|
|
|
.id = "DLGS7219",
|
2021-06-21 19:40:53 +00:00
|
|
|
.drv_name = "sof_da7219_mx98373",
|
2019-12-18 00:26:12 +00:00
|
|
|
.sof_fw_filename = "sof-jsl.ri",
|
|
|
|
.sof_tplg_filename = "sof-jsl-da7219.tplg",
|
2020-03-12 19:48:57 +00:00
|
|
|
.machine_quirk = snd_soc_acpi_codec_list,
|
|
|
|
.quirk_data = &jsl_7219_98373_codecs,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.id = "DLGS7219",
|
2021-06-21 19:40:53 +00:00
|
|
|
.drv_name = "sof_da7219_mx98360a",
|
2020-03-12 19:48:57 +00:00
|
|
|
.sof_fw_filename = "sof-jsl.ri",
|
|
|
|
.sof_tplg_filename = "sof-jsl-da7219-mx98360a.tplg",
|
2019-12-18 00:26:12 +00:00
|
|
|
},
|
2020-03-12 19:48:58 +00:00
|
|
|
{
|
2021-10-29 17:14:06 +00:00
|
|
|
.comp_ids = &rt5682_rt5682s_hp,
|
2020-03-12 19:48:58 +00:00
|
|
|
.drv_name = "jsl_rt5682_rt1015",
|
|
|
|
.sof_fw_filename = "sof-jsl.ri",
|
|
|
|
.machine_quirk = snd_soc_acpi_codec_list,
|
|
|
|
.quirk_data = &rt1015_spk,
|
|
|
|
.sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg",
|
|
|
|
},
|
2021-03-17 11:08:24 +00:00
|
|
|
{
|
2021-10-29 17:14:06 +00:00
|
|
|
.comp_ids = &rt5682_rt5682s_hp,
|
2021-03-17 11:08:24 +00:00
|
|
|
.drv_name = "jsl_rt5682_rt1015p",
|
|
|
|
.sof_fw_filename = "sof-jsl.ri",
|
|
|
|
.machine_quirk = snd_soc_acpi_codec_list,
|
|
|
|
.quirk_data = &rt1015p_spk,
|
|
|
|
.sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg",
|
|
|
|
},
|
2020-06-25 19:13:00 +00:00
|
|
|
{
|
2021-10-29 17:14:06 +00:00
|
|
|
.comp_ids = &rt5682_rt5682s_hp,
|
2021-09-27 14:32:49 +00:00
|
|
|
.drv_name = "jsl_rt5682_mx98360",
|
2020-06-25 19:13:00 +00:00
|
|
|
.sof_fw_filename = "sof-jsl.ri",
|
|
|
|
.machine_quirk = snd_soc_acpi_codec_list,
|
|
|
|
.quirk_data = &mx98360a_spk,
|
|
|
|
.sof_tplg_filename = "sof-jsl-rt5682-mx98360a.tplg",
|
|
|
|
},
|
2021-07-12 20:32:36 +00:00
|
|
|
{
|
|
|
|
.id = "10134242",
|
|
|
|
.drv_name = "jsl_cs4242_mx98360a",
|
|
|
|
.sof_fw_filename = "sof-jsl.ri",
|
|
|
|
.machine_quirk = snd_soc_acpi_codec_list,
|
|
|
|
.quirk_data = &mx98360a_spk,
|
|
|
|
.sof_tplg_filename = "sof-jsl-cs42l42-mx98360a.tplg",
|
|
|
|
},
|
2021-10-27 02:33:11 +00:00
|
|
|
{
|
|
|
|
.id = "ESSX8336",
|
|
|
|
.drv_name = "sof-essx8336",
|
|
|
|
.sof_fw_filename = "sof-jsl.ri",
|
|
|
|
.sof_tplg_filename = "sof-jsl-es8336.tplg",
|
|
|
|
},
|
2019-10-22 19:47:04 +00:00
|
|
|
{},
|
|
|
|
};
|
|
|
|
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_jsl_machines);
|