0001
0002
0003
0004
0005
0006
0007
0008
0009 #include <sound/soc-acpi.h>
0010 #include <sound/soc-acpi-intel-match.h>
0011 #include "../skylake/skl.h"
0012 #include "soc-acpi-intel-sdw-mockup-match.h"
0013
0014 static const struct snd_soc_acpi_codecs essx_83x6 = {
0015 .num_codecs = 3,
0016 .codecs = { "ESSX8316", "ESSX8326", "ESSX8336"},
0017 };
0018
0019 static struct skl_machine_pdata cnl_pdata = {
0020 .use_tplg_pcm = true,
0021 };
0022
0023 struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_machines[] = {
0024 {
0025 .id = "INT34C2",
0026 .drv_name = "cnl_rt274",
0027 .fw_filename = "intel/dsp_fw_cnl.bin",
0028 .pdata = &cnl_pdata,
0029 .sof_tplg_filename = "sof-cnl-rt274.tplg",
0030 },
0031 {
0032 .comp_ids = &essx_83x6,
0033 .drv_name = "sof-essx8336",
0034
0035 .sof_tplg_filename = "sof-cml-es8336",
0036 .tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_SSP_NUMBER |
0037 SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
0038 SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
0039 },
0040 {},
0041 };
0042 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cnl_machines);
0043
0044 static const struct snd_soc_acpi_endpoint single_endpoint = {
0045 .num = 0,
0046 .aggregated = 0,
0047 .group_position = 0,
0048 .group_id = 0,
0049 };
0050
0051 static const struct snd_soc_acpi_adr_device rt5682_2_adr[] = {
0052 {
0053 .adr = 0x000220025D568200ull,
0054 .num_endpoints = 1,
0055 .endpoints = &single_endpoint,
0056 .name_prefix = "rt5682"
0057 }
0058 };
0059
0060 static const struct snd_soc_acpi_link_adr up_extreme_rt5682_2[] = {
0061 {
0062 .mask = BIT(2),
0063 .num_adr = ARRAY_SIZE(rt5682_2_adr),
0064 .adr_d = rt5682_2_adr,
0065 },
0066 {}
0067 };
0068
0069 struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_sdw_machines[] = {
0070 {
0071 .link_mask = BIT(2),
0072 .links = up_extreme_rt5682_2,
0073 .drv_name = "sof_sdw",
0074 .sof_tplg_filename = "sof-cnl-rt5682-sdw2.tplg"
0075 },
0076 {
0077 .link_mask = GENMASK(3, 0),
0078 .links = sdw_mockup_headset_2amps_mic,
0079 .drv_name = "sof_sdw",
0080 .sof_tplg_filename = "sof-cml-rt711-rt1308-rt715.tplg",
0081 },
0082 {
0083 .link_mask = BIT(0) | BIT(1) | BIT(3),
0084 .links = sdw_mockup_headset_1amp_mic,
0085 .drv_name = "sof_sdw",
0086 .sof_tplg_filename = "sof-cml-rt711-rt1308-mono-rt715.tplg",
0087 },
0088 {}
0089 };
0090 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_cnl_sdw_machines);