]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for PTL.
authorBalamurugan C <balamurugan.c@intel.com>
Wed, 16 Jul 2025 08:23:00 +0000 (16:23 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 16 Jul 2025 15:57:06 +0000 (16:57 +0100)
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 <balamurugan.c@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20250716082300.1810352-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_rt5682.c
sound/soc/intel/common/soc-acpi-intel-ptl-match.c

index f5925bd0a3fc67abb120da41ab8b4435fa6ee2d1..4994aaccc583ae293248e69f708f0d5fe4cc0835 100644 (file)
@@ -892,6 +892,13 @@ static const struct platform_device_id board_ids[] = {
                                        SOF_SSP_PORT_BT_OFFLOAD(2) |
                                        SOF_BT_OFFLOAD_PRESENT),
        },
+       {
+               .name = "ptl_rt5682_c1_h02",
+               .driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
+                                       SOF_SSP_PORT_CODEC(1) |
+                                       /* SSP 0 and SSP 2 are used for HDMI IN */
+                                       SOF_SSP_MASK_HDMI_CAPTURE(0x5)),
+       },
        { }
 };
 MODULE_DEVICE_TABLE(platform, board_ids);
index a8fee8cf491365a6b4e9a22d37c7acb789422574..e292701dfcfe5b2cfb0623315d5e7e75539f7eee 100644 (file)
@@ -32,6 +32,13 @@ static const struct snd_soc_acpi_codecs ptl_lt6911_hdmi = {
 };
 
 struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_machines[] = {
+       {
+               .comp_ids = &ptl_rt5682_rt5682s_hp,
+               .drv_name = "ptl_rt5682_c1_h02",
+               .machine_quirk = snd_soc_acpi_codec_list,
+               .quirk_data = &ptl_lt6911_hdmi,
+               .sof_tplg_filename = "sof-ptl-rt5682-ssp1-hdmi-ssp02.tplg",
+       },
        {
                .comp_ids = &ptl_rt5682_rt5682s_hp,
                .drv_name = "ptl_rt5682_def",