vpp: if vinfo mode is null or invalid, not update post2_matirx [1/1]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Thu, 1 Aug 2019 08:16:24 +0000 (16:16 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 2 Aug 2019 06:42:43 +0000 (23:42 -0700)
PD#SWPL-11561

Problem:
UI display abnormal when switch from sdr tv to dv tv,
issue happened when dv tv support hdr also, it first
switch to hdr mode, then switch agian to dv mode.

Solution:
if vinfo mode is null or invalid, not update post2_matirx

Verify:
Verify on sm1

Change-Id: I6cc87ae2d5569d66b312bf47508e626298f9f98a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
drivers/amlogic/media/enhancement/amvecm/amcsc.c

index e9c930b..f1278c8 100644 (file)
@@ -6839,7 +6839,8 @@ static void video_process(
        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
+               else if (!(vinfo->mode == VMODE_NULL ||
+                       vinfo->mode == VMODE_INVALID))
                        mtx_setting(POST2_MTX,
                                MATRIX_YUV709_RGB, MTX_ON);
        }