[PATCH v2 05/12] drm: rockchip/vop: filter interlace display mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



RK3288's VOP do not support INTERLACE display mode, so we should
remove those modes out of mode_ok list.

Signed-off-by: Yakir Yang <ykk@xxxxxxxxxxxxxx>
---
Changes in v2:
- filter interlace display mode for rockchip vop

 drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
index 9a5c571..bedab42 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
@@ -808,7 +808,8 @@ static bool vop_crtc_mode_fixup(struct drm_crtc *crtc,
 				const struct drm_display_mode *mode,
 				struct drm_display_mode *adjusted_mode)
 {
-	if (adjusted_mode->htotal == 0 || adjusted_mode->vtotal == 0)
+	if (adjusted_mode->htotal == 0 || adjusted_mode->vtotal == 0 ||
+	    (adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE))
 		return false;
 
 	return true;
-- 
2.1.2


_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel





[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux