From ad284b5d68b69b67da78e84f8ad284865cb5b3a5 Mon Sep 17 00:00:00 2001 From: Zheng Yang Date: Fri, 8 Jul 2016 10:50:24 +0800 Subject: [PATCH] video: rockchip: hdmi: set default color depth to 8bit Change-Id: I2e4f8d9f980c4169e254ad56793503f76f091e7f Signed-off-by: Zheng Yang (cherry picked from commit 34468c2b30ae361ded2a8867e478c972bb5de5a6) --- drivers/video/rockchip/hdmi/rockchip-hdmi-core.c | 2 +- drivers/video/rockchip/hdmi/rockchip-hdmi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/rockchip/hdmi/rockchip-hdmi-core.c b/drivers/video/rockchip/hdmi/rockchip-hdmi-core.c index e7c7906faa6b..ece097f6054a 100644 --- a/drivers/video/rockchip/hdmi/rockchip-hdmi-core.c +++ b/drivers/video/rockchip/hdmi/rockchip-hdmi-core.c @@ -508,7 +508,7 @@ struct hdmi *rockchip_hdmi_register(struct hdmi_property *property, hdmi->vic = hdmi->property->defaultmode; } hdmi->colormode = HDMI_VIDEO_DEFAULT_COLORMODE; - hdmi->colordepth = HDMI_DEPP_COLOR_AUTO; + hdmi->colordepth = HDMI_VIDEO_DEFAULT_COLORDEPTH; hdmi->colorimetry = HDMI_COLORIMETRY_NO_DATA; hdmi->mode_3d = HDMI_3D_NONE; hdmi->audio.type = HDMI_AUDIO_DEFAULT_TYPE; diff --git a/drivers/video/rockchip/hdmi/rockchip-hdmi.h b/drivers/video/rockchip/hdmi/rockchip-hdmi.h index 4e09eef6a1c2..e514031890c3 100644 --- a/drivers/video/rockchip/hdmi/rockchip-hdmi.h +++ b/drivers/video/rockchip/hdmi/rockchip-hdmi.h @@ -488,7 +488,7 @@ struct hdmi { #define HDMI_VIDEO_DEFAULT_MODE HDMI_1280X720P_60HZ /*HDMI_1920X1080P_60HZ*/ #define HDMI_VIDEO_DEFAULT_COLORMODE HDMI_COLOR_AUTO -#define HDMI_VIDEO_DEFAULT_COLORDEPTH HDMI_DEPP_COLOR_AUTO +#define HDMI_VIDEO_DEFAULT_COLORDEPTH 8 /* HDMI default audio parameter */ #define HDMI_AUDIO_DEFAULT_TYPE HDMI_AUDIO_LPCM -- 2.34.1