]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: Intel: PTL: Add entry for HDMI-In capture support to non-I2S codec boards.
authorBalamurugan C <balamurugan.c@intel.com>
Mon, 15 Sep 2025 02:56:54 +0000 (10:56 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 15 Sep 2025 11:49:12 +0000 (12:49 +0100)
Adding HDMI-In capture support for the PTL products which doesn't have
onboard I2S codec. But need to support HDMI-In capture via I2S and
audio playback through HDMI/DP monitor.

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/20250915025655.1154279-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_ssp_amp.c
sound/soc/intel/common/soc-acpi-intel-ptl-match.c

index 48ee5353bdf1c480a09561995475c5968991c2a1..729c0cd7c19c25e654ee61019e01790900cbd6a7 100644 (file)
@@ -216,6 +216,12 @@ static const struct platform_device_id board_ids[] = {
                                        /* SSP 0 and SSP 2 are used for HDMI IN */
                                        SOF_HDMI_PLAYBACK_PRESENT),
        },
+       {
+               .name = "ptl_lt6911_hdmi_ssp",
+               .driver_data = (kernel_ulong_t)(SOF_SSP_MASK_HDMI_CAPTURE(0x5) |
+                                       /* SSP 0 and SSP 2 are used for HDMI IN */
+                                       SOF_HDMI_PLAYBACK_PRESENT),
+       },
        { }
 };
 MODULE_DEVICE_TABLE(platform, board_ids);
index e292701dfcfe5b2cfb0623315d5e7e75539f7eee..3c8b10e21ceb83087f3b1ee236bcd6b8c9d63557 100644 (file)
@@ -61,6 +61,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_machines[] = {
                                        SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
                                        SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
        },
+       /* place amp-only boards in the end of table */
+       {
+               .id = "INTC10B0",
+               .drv_name = "ptl_lt6911_hdmi_ssp",
+               .sof_tplg_filename = "sof-ptl-hdmi-ssp02.tplg",
+       },
        {},
 };
 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_ptl_machines);