osd: display abnormal when 2nd osd laysers scope > 1080 [1/1]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Thu, 13 Jun 2019 10:18:12 +0000 (18:18 +0800)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 07:00:26 +0000 (15:00 +0800)
PD#OTT-4277

Problem:
osd display abnormal when 2nd osd laysers scope > 1080
default osd scope value in disable channel is too small

Solution:
set default osd scope value in disable channel to 0xffffffff

Verify:
verified by S905D2-U200

Change-Id: I9983928d91c1ac4285f2a5acdffa5438722e4ab4
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
drivers/amlogic/media/osd/osd_hw.c

index e5cd109..37dac2f 100644 (file)
@@ -8100,7 +8100,8 @@ static void set_blend_reg(struct layer_blend_reg_s *blend_reg)
                }
                else {
                        if ((blend_reg->osd_blend_din_scope_v[i] & 0xffff) == 0)
-                               blend_reg->osd_blend_din_scope_v[i] = 0x43a0439;
+                               blend_reg->osd_blend_din_scope_v[i] =
+                                       0xffffffff;
                        VSYNCOSD_WR_MPEG_REG(
                                VIU_OSD_BLEND_DIN0_SCOPE_V + reg_offset * i,
                                blend_reg->osd_blend_din_scope_v[i]);