Skip to content

Commit 3cbf911

Browse files
AngeloGioacchino Del RegnoChun-Kuang Hu
authored andcommitted
drm/mediatek: mtk_hdmi_common: Add var to enable interlaced modes
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>
1 parent b139557 commit 3cbf911

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/mediatek/mtk_hdmi_common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ struct mtk_hdmi *mtk_hdmi_common_probe(struct platform_device *pdev)
437437
hdmi->bridge.ddc = hdmi->ddc_adpt;
438438
hdmi->bridge.vendor = "MediaTek";
439439
hdmi->bridge.product = "On-Chip HDMI";
440+
hdmi->bridge.interlace_allowed = ver_conf->interlace_allowed;
440441

441442
ret = devm_drm_bridge_add(dev, &hdmi->bridge);
442443
if (ret)

drivers/gpu/drm/mediatek/mtk_hdmi_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ struct mtk_hdmi_ver_conf {
131131
const struct hdmi_codec_ops *codec_ops;
132132
const char * const *mtk_hdmi_clock_names;
133133
int num_clocks;
134+
bool interlace_allowed;
134135
};
135136

136137
struct mtk_hdmi_conf {

0 commit comments

Comments
 (0)