Re: [PATCH] drm/meson/meson_venc: Relax the supported mode checks

From: Carlo Caione
Date: Mon Feb 13 2023 - 04:15:44 EST


On 13/02/2023 08:09, Da Xue wrote:

-       if (mode->hdisplay < 640 || mode->hdisplay > 1920)
+       if (mode->hdisplay < 480 || mode->hdisplay > 1920)
                return MODE_BAD_HVALUE;

-       if (mode->vdisplay < 480 || mode->vdisplay > 1200)
+       if (mode->vdisplay < 480 || mode->vdisplay > 1920)
                return MODE_BAD_VVALUE;

Should these be lowered to 400 instead of 480?

If you want to support 400x1280 then we need to tweak mode->hdisplay as well.

I'll push a v2.

--
Carlo Caione