dolby: fix tm2 end-to-end test [1/3]
authoryao liu <yao.liu@amlogic.com>
Fri, 12 Jul 2019 09:27:54 +0000 (05:27 -0400)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 18 Jul 2019 05:25:25 +0000 (22:25 -0700)
PD#SWPL-6631

Problem:
5213/5214/5217 480p graphic tests fail
due to g_vpotch is too small

Solution:
incread g_vpotch from 0x20 to 0x60 for resolution below 720p

Verify:
verified on tm2 t96e2

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

index 1d2c43a..c9eeabf 100644 (file)
@@ -2580,7 +2580,7 @@ static void apply_stb_core_settings(
                        g_vpotch = 0x60;
                else
                        g_vpotch = 0x20;
-       } else if (is_meson_g12()) {
+       } else if (is_meson_g12() || is_meson_tm2_stbmode()) {
                if (vinfo) {
                        if (debug_dolby & 2)
                                pr_dolby_dbg("vinfo %d %d %d\n",