Skip to content

Commit 47d94c1

Browse files
CBala21broonie
authored andcommitted
ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for ARL.
Added match table entry on arl machines to support HDMI-In capture with rt5682 I2S audio codec. also added the respective quirk configuration in rt5682 machine driver. Signed-off-by: Balamurugan C <[email protected]> Signed-off-by: Bard Liao <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent dfa1a7f commit 47d94c1

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

sound/soc/intel/boards/sof_rt5682.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,13 @@ static const struct platform_device_id board_ids[] = {
870870
SOF_SSP_PORT_BT_OFFLOAD(2) |
871871
SOF_BT_OFFLOAD_PRESENT),
872872
},
873+
{
874+
.name = "arl_rt5682_c1_h02",
875+
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
876+
SOF_SSP_PORT_CODEC(1) |
877+
/* SSP 0 and SSP 2 are used for HDMI IN */
878+
SOF_SSP_MASK_HDMI_CAPTURE(0x5)),
879+
},
873880
{ }
874881
};
875882
MODULE_DEVICE_TABLE(platform, board_ids);

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <sound/soc-acpi.h>
99
#include <sound/soc-acpi-intel-match.h>
10+
#include <sound/soc-acpi-intel-ssp-common.h>
1011

1112
static const struct snd_soc_acpi_endpoint single_endpoint = {
1213
.num = 0,
@@ -289,6 +290,11 @@ static const struct snd_soc_acpi_codecs arl_essx_83x6 = {
289290
.codecs = { "ESSX8316", "ESSX8326", "ESSX8336"},
290291
};
291292

293+
static const struct snd_soc_acpi_codecs arl_rt5682_hp = {
294+
.num_codecs = 2,
295+
.codecs = {RT5682_ACPI_HID, RT5682S_ACPI_HID},
296+
};
297+
292298
static const struct snd_soc_acpi_codecs arl_lt6911_hdmi = {
293299
.num_codecs = 1,
294300
.codecs = {"INTC10B0"}
@@ -310,6 +316,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_machines[] = {
310316
SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
311317
SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
312318
},
319+
{
320+
.comp_ids = &arl_rt5682_hp,
321+
.drv_name = "arl_rt5682_c1_h02",
322+
.machine_quirk = snd_soc_acpi_codec_list,
323+
.quirk_data = &arl_lt6911_hdmi,
324+
.sof_tplg_filename = "sof-arl-rt5682-ssp1-hdmi-ssp02.tplg",
325+
},
313326
{},
314327
};
315328
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_arl_machines);

0 commit comments

Comments
 (0)