video: rockchip: hdmi: fix error of 8/10 bit color depth selection
authorZheng Yang <zhengyang@rock-chips.com>
Wed, 7 Oct 2015 02:55:33 +0000 (10:55 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 7 Oct 2015 08:45:22 +0000 (16:45 +0800)
Change-Id: I3c9c35dced4db9b5f103d0d3de482f33d7257ae0
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
drivers/video/rockchip/hdmi/rockchip-hdmi-core.c

index a7a83265d49caba55e90e7500e4c2d0aa5c32bce..99fd73fadcb74a2a785b3d2ef6b1fe1aee6fdbdd 100644 (file)
@@ -116,13 +116,12 @@ static void hdmi_wq_set_video(struct hdmi *hdmi)
                        deepcolor = hdmi->edid.deepcolor;
                }
                if ((hdmi->property->feature & SUPPORT_DEEP_10BIT) &&
-                   (deepcolor & HDMI_DEEP_COLOR_30BITS)) {
-                       if (hdmi->colordepth == HDMI_DEPP_COLOR_AUTO ||
-                           hdmi->colordepth == 10)
-                               video->color_output_depth = 10;
-               } else {
+                   (deepcolor & HDMI_DEEP_COLOR_30BITS) &&
+                   (hdmi->colordepth == HDMI_DEPP_COLOR_AUTO ||
+                    hdmi->colordepth == 10))
+                       video->color_output_depth = 10;
+               else
                        video->color_output_depth = 8;
-               }
        }
        pr_info("hdmi output corlor mode is %d\n", video->color_output);
        if ((hdmi->property->feature & SUPPORT_YCBCR_INPUT) &&