summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorrINanDO <rinando_@hotmail.com>2015-07-11 23:23:35 +0200
committerEthan Chen <intervigil@gmail.com>2015-07-17 11:59:23 -0700
commit579d2a4204cd42524740b88fe436dae19ab95668 (patch)
tree4de6291aea432c994d344dd813da208d91cd240b /camera
parent3b878ff5a999b3de55c5e922a130d4bf9443b614 (diff)
downloaddevice_samsung_galaxys2-common-579d2a4204cd42524740b88fe436dae19ab95668.zip
device_samsung_galaxys2-common-579d2a4204cd42524740b88fe436dae19ab95668.tar.gz
device_samsung_galaxys2-common-579d2a4204cd42524740b88fe436dae19ab95668.tar.bz2
camera: activate continuous focus on video recording
Change-Id: Icd88df24a34c1bd49dce1e4fd67d7db95304f802
Diffstat (limited to 'camera')
-rw-r--r--camera/exynos_camera.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/camera/exynos_camera.c b/camera/exynos_camera.c
index 00c2daa..3261904 100644
--- a/camera/exynos_camera.c
+++ b/camera/exynos_camera.c
@@ -2235,6 +2235,12 @@ int exynos_camera_recording_start(struct exynos_camera *exynos_camera)
}
}
+ rc = exynos_v4l2_s_ctrl(exynos_camera, 0, V4L2_CID_CAMERA_FOCUS_MODE, FOCUS_MODE_CONTINOUS);
+ if (rc < 0) {
+ ALOGE("%s: s ctrl failed!", __func__);
+ goto error;
+ }
+
rc = exynos_v4l2_s_ctrl(exynos_camera, 2, V4L2_CID_ROTATION,
exynos_camera->camera_rotation);
if (rc < 0) {
@@ -2291,6 +2297,11 @@ void exynos_camera_recording_stop(struct exynos_camera *exynos_camera)
pthread_mutex_lock(&exynos_camera->preview_mutex);
+ rc = exynos_v4l2_s_ctrl(exynos_camera, 0, V4L2_CID_CAMERA_FOCUS_MODE, FOCUS_MODE_AUTO);
+ if (rc < 0) {
+ ALOGE("%s: s ctrl failed!", __func__);
+ }
+
rc = exynos_v4l2_streamoff_cap(exynos_camera, 2);
if (rc < 0) {
ALOGE("%s: streamoff failed!", __func__);