dv: set g12a/b core run_mode_delay as 0 [1/1]
authorYi Zhou <yi.zhou@amlogic.com>
Tue, 8 Jan 2019 05:59:32 +0000 (13:59 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 8 Jan 2019 12:11:35 +0000 (04:11 -0800)
PD#SWPL-3890

Problem:
when starting to play video, the manu bar shakes

Solution:
stb core don't need run mode delay.

Verify:
u212

Change-Id: If8634cfd33598343cef84b93d4757f5d5c9c72e5
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c

index 6cef2bf..3de6b3a 100644 (file)
@@ -2166,7 +2166,7 @@ static void apply_stb_core_settings(
                        24, 256 * 5,
                        (uint32_t *)&new_dovi_setting.dm_reg2,
                        (uint32_t *)&new_dovi_setting.dm_lut2,
-                       graphics_w, graphics_h, 1, 1);
+                       graphics_h, graphics_w, 1, 1);
        v_size = vinfo->height;
        if (((vinfo->width == 720) &&
                (vinfo->height == 480) &&
@@ -5967,11 +5967,10 @@ int register_dv_functions(const struct dolby_vision_func_s *func)
                        ("efuse_mode=%d reg_value = 0x%x\n",
                        efuse_mode,
                        reg_value);
-               /* r321 stb core doesn't need run mode*/
+               /*stb core doesn't need run mode*/
                /*TV core need run mode and the value is 2*/
-               if (is_meson_gxm() || is_meson_g12())
-                       dolby_vision_run_mode_delay = 3;
-               else if (force_stb_mode || is_meson_txlx_stbmode())
+               if (is_meson_gxm() || is_meson_g12() ||
+                       is_meson_txlx_stbmode() || force_stb_mode)
                        dolby_vision_run_mode_delay = 0;
                else
                        dolby_vision_run_mode_delay = RUN_MODE_DELAY;