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