Skip to content

Commit 95bfb16

Browse files
committed
ASoC: Intel: soc-acpi: Adding Es83x6 codec entry and
Merge series from Bard Liao <[email protected]>: Adding Es83x6 codec entry and HDMI-in capture support in MTL match table.
2 parents 41bae58 + d1f6727 commit 95bfb16

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

sound/soc/intel/boards/sof_es8336.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,16 @@ static const struct platform_device_id board_ids[] = {
808808
SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK |
809809
SOF_ES8336_JD_INVERTED),
810810
},
811+
{
812+
.name = "mtl_es83x6_c1_h02",
813+
.driver_data = (kernel_ulong_t)(SOF_ES8336_SSP_CODEC(1) |
814+
SOF_NO_OF_HDMI_CAPTURE_SSP(2) |
815+
SOF_HDMI_CAPTURE_1_SSP(0) |
816+
SOF_HDMI_CAPTURE_2_SSP(2) |
817+
SOF_SSP_HDMI_CAPTURE_PRESENT |
818+
SOF_ES8336_SPEAKERS_EN_GPIO1_QUIRK |
819+
SOF_ES8336_JD_INVERTED),
820+
},
811821
{ }
812822
};
813823
MODULE_DEVICE_TABLE(platform, board_ids);

sound/soc/intel/common/soc-acpi-intel-mtl-match.c

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ static const struct snd_soc_acpi_codecs mtl_rt5682_rt5682s_hp = {
3030
.codecs = {"10EC5682", "RTL5682"},
3131
};
3232

33+
static const struct snd_soc_acpi_codecs mtl_essx_83x6 = {
34+
.num_codecs = 3,
35+
.codecs = { "ESSX8316", "ESSX8326", "ESSX8336"},
36+
};
37+
38+
static const struct snd_soc_acpi_codecs mtl_lt6911_hdmi = {
39+
.num_codecs = 1,
40+
.codecs = {"INTC10B0"}
41+
};
42+
3343
struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = {
3444
{
3545
.comp_ids = &mtl_rt5682_rt5682s_hp,
@@ -52,6 +62,21 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = {
5262
.quirk_data = &mtl_rt1019p_amp,
5363
.sof_tplg_filename = "sof-mtl-rt1019-rt5682.tplg",
5464
},
65+
{
66+
.comp_ids = &mtl_essx_83x6,
67+
.drv_name = "mtl_es83x6_c1_h02",
68+
.machine_quirk = snd_soc_acpi_codec_list,
69+
.quirk_data = &mtl_lt6911_hdmi,
70+
.sof_tplg_filename = "sof-mtl-es83x6-ssp1-hdmi-ssp02.tplg",
71+
},
72+
{
73+
.comp_ids = &mtl_essx_83x6,
74+
.drv_name = "sof-essx8336",
75+
.sof_tplg_filename = "sof-mtl-es8336", /* the tplg suffix is added at run time */
76+
.tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_SSP_NUMBER |
77+
SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
78+
SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
79+
},
5580
{},
5681
};
5782
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_mtl_machines);

0 commit comments

Comments
 (0)