summaryrefslogtreecommitdiffstats
path: root/libcamera
diff options
context:
space:
mode:
authorMichael Brehm <djp952@gmail.com>2012-09-15 02:18:42 -0500
committerjt1134 <jt1134@gmail.com>2012-09-15 02:18:42 -0500
commitb661312dc3ef806feffd212f94269f93454b30b9 (patch)
treec7d670c701c8c6a89a93d43c8307e20e763590f3 /libcamera
parentf67a7ab28b6b61c75e4f1b8b6e9676ce72a27743 (diff)
downloaddevice_samsung_aries-common-b661312dc3ef806feffd212f94269f93454b30b9.zip
device_samsung_aries-common-b661312dc3ef806feffd212f94269f93454b30b9.tar.gz
device_samsung_aries-common-b661312dc3ef806feffd212f94269f93454b30b9.tar.bz2
libcamera: Fix initial flash mode in camera HAL
77f18056d9766012d3be1c7863063f49a4569f85 Change-Id: I9a4c29a40daf919472d7e0942078cf68cddd383b
Diffstat (limited to 'libcamera')
-rwxr-xr-xlibcamera/SecCamera.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcamera/SecCamera.cpp b/libcamera/SecCamera.cpp
index a7ecea5..598f732 100755
--- a/libcamera/SecCamera.cpp
+++ b/libcamera/SecCamera.cpp
@@ -840,6 +840,11 @@ int SecCamera::startPreview(void)
CHECK(ret);
}
+#ifdef HAVE_FLASH
+ ret = fimc_v4l2_s_ctrl(m_cam_fd, V4L2_CID_CAMERA_FLASH_MODE, m_params->flash_mode);
+ CHECK(ret);
+#endif
+
// It is a delay for a new frame, not to show the previous bigger ugly picture frame.
ret = fimc_poll(&m_events_c);
CHECK(ret);