From: Zheng Yang Date: Thu, 10 May 2012 06:17:17 +0000 (+0800) Subject: rk30 hdmi: disable csc when output color mode is same to input color mode. X-Git-Tag: firefly_0821_release~9208 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=507e8161a9c9e277dab95769af0e456d057cc155;p=firefly-linux-kernel-4.4.55.git rk30 hdmi: disable csc when output color mode is same to input color mode. --- diff --git a/drivers/video/rockchip/hdmi/rk30_hdmi_hw.c b/drivers/video/rockchip/hdmi/rk30_hdmi_hw.c index 9c75c3031c41..364caad800ec 100755 --- a/drivers/video/rockchip/hdmi/rk30_hdmi_hw.c +++ b/drivers/video/rockchip/hdmi/rk30_hdmi_hw.c @@ -299,6 +299,7 @@ static void rk30_hdmi_config_csc(struct rk30_hdmi_video_para *vpara) if( ((vpara->input_color == VIDEO_INPUT_COLOR_RGB) && (vpara->output_color == VIDEO_OUTPUT_RGB444)) || ((vpara->input_color == VIDEO_INPUT_COLOR_YCBCR) && (vpara->output_color != VIDEO_OUTPUT_RGB444) )) { + HDMIWrReg(AV_CTRL2, v_CSC_ENABLE(0)); HDMIWrReg(CSC_CONFIG1, v_CSC_MODE(CSC_MODE_AUTO) | v_CSC_BRSWAP_DIABLE(1)); return; }