vpp: fix vd1 afbc mif regs overwritten by vd2 [1/1]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Tue, 10 Dec 2019 09:16:09 +0000 (17:16 +0800)
committerPengcheng Chen <pengcheng.chen@amlogic.com>
Thu, 12 Dec 2019 08:42:22 +0000 (01:42 -0700)
PD#SWPL-18101

Problem:
vd1 afbc mif regs overwritten by vd2

Solution:
set vd2 afbc mif regs correctly

Verify:
Verify on ab301

Change-Id: I1b761134dd24413ae2af569b6d35b247de21ebcb
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
drivers/amlogic/media/video_sink/video_hw.c

index 0a4c0e62f2d6d501951deef1f247135661434ed3..4c7a38ba49a8cc98a64d647a3883c118fe287d7b 100644 (file)
@@ -1721,7 +1721,7 @@ static s32 vd2_afbc_setting_tl1(struct mif_pos_s *setting)
                setting->start_x_lines;
 
        VSYNC_WR_MPEG_REG(
-               AFBC_MIF_HOR_SCOPE + afbc_off,
+               VD2_AFBC_MIF_HOR_SCOPE + afbc_off,
                (mif_blk_bgn_h << 16) |
                mif_blk_end_h);
 
@@ -1731,7 +1731,7 @@ static s32 vd2_afbc_setting_tl1(struct mif_pos_s *setting)
                        /* do nothing*/
        } else {
                VSYNC_WR_MPEG_REG(
-                       AFBC_PIXEL_HOR_SCOPE + afbc_off,
+                       VD2_AFBC_PIXEL_HOR_SCOPE + afbc_off,
                        ((pix_bgn_h << 16) |
                        pix_end_h));
        }