From 1683fd942491860988c5ea51dfd8ecd51bc6a68c Mon Sep 17 00:00:00 2001 From: Pengcheng Chen Date: Wed, 31 Jul 2019 14:22:19 +0800 Subject: [PATCH] hdr: fix cvbsout display green screen [1/1] PD#SWPL-11964 Problem: cvbsout display green screen Solution: add mtx_setting in video_post_process Verify: tm2 ab301 Change-Id: I6de1b4aeb08583a67f20317ee4ac6b3bc577d03b Signed-off-by: Pengcheng Chen --- drivers/amlogic/media/enhancement/amvecm/amcsc_pip.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/amlogic/media/enhancement/amvecm/amcsc_pip.c b/drivers/amlogic/media/enhancement/amvecm/amcsc_pip.c index e993e33..c9453a8 100644 --- a/drivers/amlogic/media/enhancement/amvecm/amcsc_pip.c +++ b/drivers/amlogic/media/enhancement/amvecm/amcsc_pip.c @@ -877,6 +877,15 @@ void video_post_process( break; } + if (get_cpu_type() >= MESON_CPU_MAJOR_ID_G12A) { + if (vinfo->viu_color_fmt != COLOR_FMT_RGB444) + mtx_setting(POST2_MTX, MATRIX_NULL, MTX_OFF); + else if (!(vinfo->mode == VMODE_NULL || + vinfo->mode == VMODE_INVALID)) + mtx_setting(POST2_MTX, + MATRIX_YUV709_RGB, MTX_ON); + } + if (cur_sdr_process_mode[vd_path] != sdr_process_mode[vd_path]) { if (cur_source_format[vd_path] == HDRTYPE_SDR) -- 2.7.4