rk3288 hdmi: cancel the color depth of 12bit and 16bit mode for source is unsupported
authorzwl <zwl@rock-chips.com>
Thu, 24 Apr 2014 12:51:12 +0000 (20:51 +0800)
committerzwl <zwl@rock-chips.com>
Thu, 24 Apr 2014 12:51:32 +0000 (20:51 +0800)
drivers/video/rockchip/hdmi/chips/rk3288/rk3288_hdmi_hw.c
drivers/video/rockchip/hdmi/rk_hdmi_lcdc.c

index b7c4aacd59d4a42292aad7634b55ee12ba5964c3..8472702031dbd1b298e97b8f9127477c2be6cd5e 100644 (file)
@@ -184,7 +184,7 @@ int rk3288_hdmi_read_edid(struct hdmi *hdmi_drv, int block, unsigned char *buff)
                                        ret = 0;
                                        hdmi_dbg(hdmi_drv->dev, "[%s] edid read sucess\n", __FUNCTION__);
 
-                               #if 1//def HDMI_DEBUG
+                               #ifdef HDMI_DEBUG
                                        for(i = 0; i < 128; i++) {
                                                printk("%02x ,", buff[i]);
                                                if( (i + 1) % 16 == 0)
index 0e5976f5c2067e1fbfc6c17da6cd1b5fc1a5267a..7d5e7e7844cdb3970feeaf4a77169e7f1cd8f90d 100755 (executable)
@@ -559,11 +559,14 @@ int hdmi_init_video_para(struct hdmi *hdmi_drv, struct hdmi_video_para *video)
        video->format_3d = 0;   /*TODO modify according to EDID if need*/
        video->pixel_repet = 0;
 
+#ifdef SOURCE_ABOVE_10BIT
        if (hdmi_drv->edid.deepcolor & HDMI_COLOR_DEPTH_16BIT)
                video->color_depth = HDMI_COLOR_DEPTH_16BIT;
        else if (hdmi_drv->edid.deepcolor & HDMI_COLOR_DEPTH_12BIT)
                video->color_depth = HDMI_COLOR_DEPTH_12BIT;
-       else if (hdmi_drv->edid.deepcolor & HDMI_COLOR_DEPTH_10BIT)
+       else
+#endif
+       if (hdmi_drv->edid.deepcolor & HDMI_COLOR_DEPTH_10BIT)
                video->color_depth = HDMI_COLOR_DEPTH_10BIT;
        else
                video->color_depth = HDMI_COLOR_DEPTH_8BIT;