]> Gentwo Git Trees - linux/.git/commitdiff
drm/mediatek: mtk_hdmi_common: Add var to enable interlaced modes
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 23 Oct 2025 10:32:34 +0000 (12:32 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 17 Nov 2025 15:04:41 +0000 (15:04 +0000)
Add an interlace_allowed bool member to struct mtk_hdmi_ver_conf
which will be used to signal whether interlaced modes are supported
by the bridge (in our case, the HDMI IP), and enable it for HDMIv2.

Reviewed-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20251023-mediatek-drm-hdmi-v2-v11-8-7873ec4a1edf@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_hdmi_common.c
drivers/gpu/drm/mediatek/mtk_hdmi_common.h

index 55e39ff8da31376fe3e4286121569282b62441d3..bd631b892e2ea0ae952ea619a390415daf59f85f 100644 (file)
@@ -437,6 +437,7 @@ struct mtk_hdmi *mtk_hdmi_common_probe(struct platform_device *pdev)
        hdmi->bridge.ddc = hdmi->ddc_adpt;
        hdmi->bridge.vendor = "MediaTek";
        hdmi->bridge.product = "On-Chip HDMI";
+       hdmi->bridge.interlace_allowed = ver_conf->interlace_allowed;
 
        ret = devm_drm_bridge_add(dev, &hdmi->bridge);
        if (ret)
index d3de8afff40f2b1a16e87b157859c04109b6da9f..38d1bdf4c77e4f6684473abec0e8c1e6ddc7db0f 100644 (file)
@@ -131,6 +131,7 @@ struct mtk_hdmi_ver_conf {
        const struct hdmi_codec_ops *codec_ops;
        const char * const *mtk_hdmi_clock_names;
        int num_clocks;
+       bool interlace_allowed;
 };
 
 struct mtk_hdmi_conf {