Skip to content

Commit 26ce0b8

Browse files
xdarklightsuperna9999
authored andcommitted
drm/meson: venc: add support for HDMI DMT modes up to 3840x2160
Commit 5d0bfe4 ("drm/meson: Add HDMI 1.4 4k modes") added support for HDMI 1.4 4k modes, which is what TVs need. For computer monitors the code is using the DMT code-path, which ends up in meson_venc_hdmi_supported_mode(), which does not allow the 4k modes yet. The datasheet for all supported SoCs mentions "4Kx2K@60". It's not clear whether "4K" here means 3840 or 4096 pixels. Allow resolutions up to 3840x2160 pixels (including middle steps, such as WQHD at 2560x1440 pixels) so they can be used with computer monitors (using the DMT code-path in the driver). Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Acked-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patch.msgid.link/20251108134236.1299630-1-martin.blumenstingl@googlemail.com
1 parent 91ce414 commit 26ce0b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/meson/meson_venc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,10 +868,10 @@ meson_venc_hdmi_supported_mode(const struct drm_display_mode *mode)
868868
DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_NVSYNC))
869869
return MODE_BAD;
870870

871-
if (mode->hdisplay < 400 || mode->hdisplay > 1920)
871+
if (mode->hdisplay < 400 || mode->hdisplay > 3840)
872872
return MODE_BAD_HVALUE;
873873

874-
if (mode->vdisplay < 480 || mode->vdisplay > 1920)
874+
if (mode->vdisplay < 480 || mode->vdisplay > 2160)
875875
return MODE_BAD_VVALUE;
876876

877877
return MODE_OK;

0 commit comments

Comments
 (0)