]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: Intel: ARL: Add entry for HDMI-In capture support to non-I2S codec boards.
authorBalamurugan C <balamurugan.c@intel.com>
Thu, 12 Sep 2024 12:03:08 +0000 (20:03 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 12 Sep 2024 12:31:51 +0000 (13:31 +0100)
Adding HDMI-In capture support for the ARL 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>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20240912120308.134762-8-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-arl-match.c

index f51f1008e0169557d5ec76dc9241d8992942fe44..6ff8895a294a93c8a4840663b983bf1e0822de20 100644 (file)
@@ -210,6 +210,12 @@ static const struct platform_device_id board_ids[] = {
                                        /* SSP 0 and SSP 2 are used for HDMI IN */
                                        SOF_HDMI_PLAYBACK_PRESENT),
        },
+       {
+               .name = "arl_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 c13afff84923eeca257cfe37a698a101fed5dfa7..c97c961187dd5e1c9a98ea64622823a182cd5e74 100644 (file)
@@ -323,6 +323,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_machines[] = {
                .quirk_data = &arl_lt6911_hdmi,
                .sof_tplg_filename = "sof-arl-rt5682-ssp1-hdmi-ssp02.tplg",
        },
+       /* place amp-only boards in the end of table */
+       {
+               .id = "INTC10B0",
+               .drv_name = "arl_lt6911_hdmi_ssp",
+               .sof_tplg_filename = "sof-arl-hdmi-ssp02.tplg",
+       },
        {},
 };
 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_arl_machines);