[9610] fimc-is2: add bts update for 480fps scenario
authorEunyoung Lee <ey470.lee@samsung.com>
Tue, 24 Oct 2017 01:47:31 +0000 (10:47 +0900)
committerEunyoung Lee <ey470.lee@samsung.com>
Tue, 19 Jun 2018 08:43:40 +0000 (17:43 +0900)
Change-Id: I936ab59a500d4b825ebe5d8f6c612fcf42f2b998
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-device-ischain.c
drivers/media/platform/exynos/fimc-is2/fimc-is-resourcemgr.c

index 58cb89d08357b2f73ed058b44bc5c1452189b7b9..d4a3024af951208159cc2de63f794a01229c52fb 100644 (file)
@@ -1773,6 +1773,13 @@ int fimc_is_itf_stream_on(struct fimc_is_device_ischain *device)
                                static_ctrl->scenarios[static_ctrl->cur_scenario_idx].scenario_nm);
                        fimc_is_set_dvfs((struct fimc_is_core *)device->interface->core, device, scenario_id);
                }
+#ifdef CONFIG_EXYNOS_BTS
+               if (scenario_id == FIMC_IS_SN_VIDEO_HIGH_SPEED_480FPS) {
+                       info("%s: re_call bts_update_scen(1)\n", __func__);
+                       bts_update_scen(BS_CAMERA_DEFAULT, 0);
+                       bts_update_scen(BS_FHD_480_ENCODING, 1);
+               }
+#endif
 
                mutex_unlock(&dvfs_ctrl->lock);
        }
index cc1717f4b9198d4621ffe13b4ca2bb919a4ed0fa..f34ed8966ba7bf696caeadbd6573abd26b160715 100644 (file)
@@ -1618,6 +1618,7 @@ int fimc_is_resource_put(struct fimc_is_resourcemgr *resourcemgr, u32 rsc_type)
 #ifdef CONFIG_EXYNOS_BTS
                        info("%s: call bts_update_scen(0)\n", __func__);
                        bts_update_scen(BS_CAMERA_DEFAULT, 0);
+                       bts_update_scen(BS_FHD_480_ENCODING, 0);
 #endif
                        break;
                default: