dv: set stb core run_mode_delay as 0 [1/1]
authorYi Zhou <yi.zhou@amlogic.com>
Tue, 30 Oct 2018 08:56:00 +0000 (16:56 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 1 Nov 2018 08:15:31 +0000 (01:15 -0700)
PD#SWPL-781

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

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

Verify:
t962e (txlx)

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

index c422c98..5cf7982 100644 (file)
@@ -5935,9 +5935,15 @@ int register_dv_functions(const struct dolby_vision_func_s *func)
                        ("efuse_mode=%d reg_value = 0x%x\n",
                        efuse_mode,
                        reg_value);
-               if (is_meson_gxm() ||
-                       is_meson_g12())
+               /* r321 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())
+                       dolby_vision_run_mode_delay = 0;
+               else
+                       dolby_vision_run_mode_delay = RUN_MODE_DELAY;
+
                pq_config =  vmalloc(sizeof(struct pq_config_s));
                if (pq_config == NULL) {
                        pr_info("[amdolby_vision] vmalloc failed for pq_config_s error!\n");