Skip to content

Commit 03aa2ed

Browse files
CBala21broonie
authored andcommitted
ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for PTL.
Added match table entry on ptl 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 8778837 commit 03aa2ed

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

sound/soc/intel/boards/sof_rt5682.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,13 @@ static const struct platform_device_id board_ids[] = {
892892
SOF_SSP_PORT_BT_OFFLOAD(2) |
893893
SOF_BT_OFFLOAD_PRESENT),
894894
},
895+
{
896+
.name = "ptl_rt5682_c1_h02",
897+
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
898+
SOF_SSP_PORT_CODEC(1) |
899+
/* SSP 0 and SSP 2 are used for HDMI IN */
900+
SOF_SSP_MASK_HDMI_CAPTURE(0x5)),
901+
},
895902
{ }
896903
};
897904
MODULE_DEVICE_TABLE(platform, board_ids);

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ static const struct snd_soc_acpi_codecs ptl_lt6911_hdmi = {
3232
};
3333

3434
struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_machines[] = {
35+
{
36+
.comp_ids = &ptl_rt5682_rt5682s_hp,
37+
.drv_name = "ptl_rt5682_c1_h02",
38+
.machine_quirk = snd_soc_acpi_codec_list,
39+
.quirk_data = &ptl_lt6911_hdmi,
40+
.sof_tplg_filename = "sof-ptl-rt5682-ssp1-hdmi-ssp02.tplg",
41+
},
3542
{
3643
.comp_ids = &ptl_rt5682_rt5682s_hp,
3744
.drv_name = "ptl_rt5682_def",

0 commit comments

Comments
 (0)