video: rockchip: dp: do no support 4k when use vop1
authorxuhuicong <xhc@rock-chips.com>
Thu, 27 Oct 2016 12:55:49 +0000 (20:55 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 28 Oct 2016 03:34:47 +0000 (11:34 +0800)
Change-Id: I3ff56100947d04b703f15f22616b5e9ef73bbb06
Signed-off-by: xuhuicong <xhc@rock-chips.com>
drivers/video/rockchip/dp/rockchip_dp.c

index 552785dbea7b88ac737399002efc23093fb980c0..70c17c9449915c7cc500304a892a39b3e4b23147 100644 (file)
@@ -238,13 +238,17 @@ int cdn_dp_fb_register(struct platform_device *pdev, void *dp)
                                SUPPORT_YCBCR_INPUT |
                                SUPPORT_1080I |
                                SUPPORT_480I_576I |
-                               SUPPORT_4K |
-                               SUPPORT_4K_4096 |
-                               SUPPORT_YUV420 |
-                               SUPPORT_YCBCR_INPUT |
-                               SUPPORT_TMDS_600M |
                                SUPPORT_RK_DISCRETE_VR;
 
+       if (!rk_cdn_dp_prop->videosrc) {
+               rk_cdn_dp_prop->feature |=
+                                       SUPPORT_4K |
+                                       SUPPORT_4K_4096 |
+                                       SUPPORT_YUV420 |
+                                       SUPPORT_YCBCR_INPUT |
+                                       SUPPORT_TMDS_600M;
+       }
+
        dp_dev->hdmi = rockchip_hdmi_register(rk_cdn_dp_prop,
                                                rk_dp_ops);
        dp_dev->hdmi->dev = dev;