video: rockchip: hdmi: yuv420 resolution retain 4K 50/60HZ
authorShen Zhenyi <szy@rock-chips.com>
Mon, 20 Jun 2016 03:35:42 +0000 (11:35 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 15 Feb 2017 08:55:17 +0000 (16:55 +0800)
Change-Id: I75ae87bbd274af10b7da9b6699d5892e6f864dba
Signed-off-by: Shen Zhenyi <szy@rock-chips.com>
(cherry picked from commit 6acb6585c03dd4bf7eaf2a548cb3f836070ba56c)

drivers/video/rockchip/hdmi/rockchip-hdmi-lcdc.c

index 1d3cce5a3fd2229618ab2889330cc82d5c73d0f3..9b0b945081c5f8b125fab21be9407f30ff5ae915 100644 (file)
@@ -1126,6 +1126,18 @@ int hdmi_add_vic(int vic, struct list_head *head)
        if (vic == 0)
                return -1;
 
+       if (vic & HDMI_VIDEO_YUV420) {
+               v = vic & 0xff;
+               if (v != HDMI_3840X2160P_50HZ &&
+                   v != HDMI_3840X2160P_60HZ &&
+                   v != HDMI_4096X2160P_50HZ &&
+                   v != HDMI_4096X2160P_60HZ &&
+                   v != HDMI_3840X2160P_50HZ_21_9 &&
+                   v != HDMI_3840X2160P_60HZ_21_9) {
+                       return -1;
+               }
+       }
+
        list_for_each(pos, head) {
                modelist = list_entry(pos, struct display_modelist, list);
                v = modelist->vic;