mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
amvecm: fix SDR to HDR function has no effect [1/1]
PD#SWPL-16893 Problem: The SDR to HDR function has no effect Solution: add sdr_mode changed judgement Verify: on P212 Change-Id: Ie3f03a51797f23866a6a6d1fb2c3c750741032f1 Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
This commit is contained in:
@@ -7550,6 +7550,18 @@ int amvecm_matrix_process(
|
||||
vd_path + 1);
|
||||
}
|
||||
|
||||
/* gxl handle sdr_mode change bug fix. */
|
||||
if ((vinfo->hdr_info.hdr_support & 0x4) &&
|
||||
!cpu_after_eq(MESON_CPU_MAJOR_ID_G12A) &&
|
||||
vinfo->viu_color_fmt != COLOR_FMT_RGB444) {
|
||||
if (sdr_mode != cur_sdr_mode) {
|
||||
force_fake = true;
|
||||
cur_sdr_mode = sdr_mode;
|
||||
pr_csc(4, "vd%d: sdr_mode changed\n",
|
||||
vd_path + 1);
|
||||
}
|
||||
}
|
||||
|
||||
/* handle sdr_mode change */
|
||||
if (is_video_layer_on(vd_path) &&
|
||||
(vinfo->hdr_info.hdr_support & 0x4) &&
|
||||
|
||||
Reference in New Issue
Block a user