Skip to content

Commit

Permalink
libcamera: Fix initial flash mode in camera HAL
Browse files Browse the repository at this point in the history
  77f18056d9766012d3be1c7863063f49a4569f85

Change-Id: I9a4c29a40daf919472d7e0942078cf68cddd383b
  • Loading branch information
djp952 authored and jt1134 committed Sep 15, 2012
1 parent f67a7ab commit b661312
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 b661312

Please sign in to comment.