rk3288 hdmi: cancel the color depth of 12bit and 16bit mode for source is unsupported

This commit is contained in:
zwl
2014-04-24 20:51:12 +08:00
parent 7fe47454f2
commit c2f5ced935
2 changed files with 5 additions and 2 deletions

View 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)

View File

@@ -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;