drm/meson/meson_venc: Relax the supported mode checks
Relax a bit the supported modes list by including also 480x1920 and 400x1280. This was actually tested on real hardware and it works correctly. Signed-off-by: Carlo Caione <ccaione@baylibre.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230210-relax_dmt_limits-v2-1-318913f08121@baylibre.com
This commit is contained in:
parent
c5dc1756dc
commit
bf458e5b13
|
@ -866,10 +866,10 @@ meson_venc_hdmi_supported_mode(const struct drm_display_mode *mode)
|
||||||
DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_NVSYNC))
|
DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_NVSYNC))
|
||||||
return MODE_BAD;
|
return MODE_BAD;
|
||||||
|
|
||||||
if (mode->hdisplay < 640 || mode->hdisplay > 1920)
|
if (mode->hdisplay < 400 || mode->hdisplay > 1920)
|
||||||
return MODE_BAD_HVALUE;
|
return MODE_BAD_HVALUE;
|
||||||
|
|
||||||
if (mode->vdisplay < 480 || mode->vdisplay > 1200)
|
if (mode->vdisplay < 480 || mode->vdisplay > 1920)
|
||||||
return MODE_BAD_VVALUE;
|
return MODE_BAD_VVALUE;
|
||||||
|
|
||||||
return MODE_OK;
|
return MODE_OK;
|
||||||
|
|
Loading…
Reference in New Issue