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