di: fix the garbage in ColorBar.mp4 [1/1]
authorBencheng Jing <bencheng.jing@amlogic.com>
Wed, 19 Jun 2019 13:10:22 +0000 (21:10 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 25 Jun 2019 05:29:18 +0000 (22:29 -0700)
PD#SWPL-7071

Problem:
reg_dnr_dm_chrmen not follow db

Solution:
disable chroma dm for ott according to vlsi-baozheng

Verify:
u212

Change-Id: If530c5c5f47e132b01a2cb31a96347f2f465afda
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
drivers/amlogic/media/deinterlace/nr_drv.c

index 76a1ba2..2e37325 100644 (file)
@@ -284,7 +284,8 @@ static void dnr_config(struct DNR_PARM_s *dnr_parm_p,
                DI_Wr(DNR_CTRL, 0x1df00 | (0x03 << 18)); //5 line
        else
                DI_Wr(DNR_CTRL, 0x1df00);
-       if (is_meson_gxlx_cpu()) {
+       if (is_meson_gxlx_cpu() || is_meson_g12a_cpu() ||
+               is_meson_g12b_cpu() || is_meson_sm1_cpu()) {
                /* disable chroma dm according to baozheng */
                DI_Wr_reg_bits(DNR_DM_CTRL, 0, 8, 1);
                DI_Wr(DNR_CTRL, 0x1dd00);