dv: osd display overexposure at 1080i [2/2]
authoryao liu <yao.liu@amlogic.com>
Mon, 21 Oct 2019 08:04:56 +0000 (16:04 +0800)
committerYao Liu <yao.liu@amlogic.com>
Mon, 21 Oct 2019 08:13:00 +0000 (01:13 -0700)
PD#SWPL-12495

Problem:
dv vertical potch is small

Solution:
increase vpotch to 0x60

Verify:
verify on sm1

Change-Id: I4be460eb130e3c8ab85c5743ae85af72c9b7de6b
Signed-off-by: yao liu <yao.liu@amlogic.com>
drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c

index 55b5d15..5c657fb 100644 (file)
@@ -2721,10 +2721,18 @@ static void adjust_vpotch(void)
                        else if ((vinfo->width == 1280) &&
                                 (vinfo->height == 720))
                                g_vpotch = 0x38;
+                       else if ((vinfo->width == 1280) &&
+                                (vinfo->height == 720) &&
+                                (vinfo->field_height < 720))
+                               g_vpotch = 0x60;
                        else if ((vinfo->width == 1920) &&
                                 (vinfo->height == 1080) &&
                                 (sync_duration_num < 30))
                                g_vpotch = 0x60;
+                       else if ((vinfo->width == 1920) &&
+                                (vinfo->height == 1080) &&
+                                (vinfo->field_height < 1080))
+                               g_vpotch = 0x60;
                        else
                                g_vpotch = 0x20;
                        if (vinfo->width > 1920)