From: MingLiang Dong Date: Wed, 8 May 2019 12:32:31 +0000 (+0800) Subject: hdr: fix sm1 hdr color abnormal [1/1] X-Git-Tag: hardkernel-4.9.236-104~1273 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41143ad0936d15dac33d2c6c9acc09c314a11a5d;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- diff --git a/drivers/amlogic/media/enhancement/amvecm/set_hdr2_v0.c b/drivers/amlogic/media/enhancement/amvecm/set_hdr2_v0.c index f28f665..1994dfe 100644 --- a/drivers/amlogic/media/enhancement/amvecm/set_hdr2_v0.c +++ b/drivers/amlogic/media/enhancement/amvecm/set_hdr2_v0.c @@ -1782,7 +1782,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)