mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
hdr: fix sm1 hdr color abnormal [1/1]
PD#SWPL-7932 Problem: sm1 play hdr video, color abnormal Solution: cgain coef1 set according to bitdepth Verify: verify on sm1 Change-Id: Ibef6e127dde57d47f9b9ec7a4233ee10fe8539d5 Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
This commit is contained in:
committed by
Chris KIM
parent
c3c23ba99a
commit
81a5c6f4e3
@@ -1803,7 +1803,7 @@ void set_c_gain(
|
||||
VSYNC_WR_MPEG_REG_BITS(hdr_ctrl, 0, 12, 1);
|
||||
VSYNC_WR_MPEG_REG_BITS(hdr_ctrl, hdr_lut_param->cgain_en, 0, 1);
|
||||
|
||||
if (cpu_after_eq(MESON_CPU_MAJOR_ID_TL1)) {
|
||||
if (cpu_after_eq(MESON_CPU_MAJOR_ID_SM1)) {
|
||||
if (hdr_lut_param->bitdepth == 10)
|
||||
VSYNC_WR_MPEG_REG_BITS(cgain_coef1, 0x400, 16, 13);
|
||||
else if (hdr_lut_param->bitdepth == 12)
|
||||
|
||||
Reference in New Issue
Block a user