Skip to content

Commit

Permalink
Merge "libcamera: Fix initial flash mode in camera HAL" into jellybean
Browse files Browse the repository at this point in the history
  • Loading branch information
pawitp authored and Gerrit Code Review committed Sep 15, 2012
2 parents 00a0bbf + b661312 commit fc0deb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libcamera/SecCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fc0deb7

Please sign in to comment.