libcamera: for setting fixed frame rate on only camcording mode

Camera sensor change its frame rate by brightness.
It makes video that have too low fps in the dark.
So it use fixed frame rate on camcording mode.

Change-Id: I293c480ffdc4daed138ad9a11231f16c6c2b2f8b
Signed-off-by: Jeong-Seok Yang <jseok.yang@samsung.com>
diff --git a/libcamera/SecCamera.cpp b/libcamera/SecCamera.cpp
index 6998a5d..68e29fa 100755
--- a/libcamera/SecCamera.cpp
+++ b/libcamera/SecCamera.cpp
@@ -929,6 +929,10 @@
                           m_recording_height, V4L2_PIX_FMT_NV12T, 0);
     CHECK(ret);
 
+    ret = fimc_v4l2_s_ctrl(m_cam_fd, V4L2_CID_CAMERA_FRAME_RATE,
+                            m_params->capture.timeperframe.denominator);
+    CHECK(ret);
+
     ret = fimc_v4l2_reqbufs(m_cam_fd2, V4L2_BUF_TYPE_VIDEO_CAPTURE, MAX_BUFFERS);
     CHECK(ret);
 
@@ -974,6 +978,10 @@
     ret = fimc_v4l2_streamoff(m_cam_fd2);
     CHECK(ret);
 
+    ret = fimc_v4l2_s_ctrl(m_cam_fd, V4L2_CID_CAMERA_FRAME_RATE,
+                            FRAME_RATE_AUTO);
+    CHECK(ret);
+
     return 0;
 }