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 <pengcheng.chen@amlogic.com>
This commit is contained in:
Pengcheng Chen
2019-07-31 14:22:19 +08:00
committed by Tao Zeng
parent 82a2501c93
commit 1683fd9424

View File

@@ -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)