}
if ((hdmi->property->feature & SUPPORT_DEEP_10BIT) &&
(deepcolor & HDMI_DEEP_COLOR_30BITS) &&
- (hdmi->colordepth == HDMI_DEPP_COLOR_AUTO ||
- hdmi->colordepth == 10))
+ hdmi->colordepth == 10)
video->color_output_depth = 10;
}
pr_info("hdmi output corlor mode is %d\n", video->color_output);
if (!strncmp(buf, "mode", 4)) {
if (sscanf(buf, "mode=%d", &value) == -1)
return -1;
- pr_debug("current mode is %d input mode is %d\n",
+ pr_debug("current mode is %d input mode is %x\n",
hdmi->colormode, value);
- if (hdmi->colormode != value)
- hdmi->colormode = value;
+ if (hdmi->colormode != (value & 0xff))
+ hdmi->colormode = value & 0xff;
+ if (hdmi->colordepth != ((value >> 8) & 0xff)) {
+ pr_debug("current depth is %d input mode is %d\n",
+ hdmi->colordepth, ((value >> 8) & 0xff));
+ hdmi->colordepth = ((value >> 8) & 0xff);
+ }
} else if (!strncmp(buf, "depth", 5)) {
if (sscanf(buf, "depth=%d", &value) == -1)
return -1;