OSDN Git Service

msm: camera: isp: Reset frameskip range during streamoff
authorRamesh V <ramev@codeaurora.org>
Fri, 6 Oct 2017 06:52:23 +0000 (12:22 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Fri, 6 Oct 2017 07:01:17 +0000 (00:01 -0700)
Frameskip range will not get reset if session ends at
max_frameid, in next session same frame will get skip.
to avoid this reset in every streamoff.

Change-Id: Ic363d8d53e96379f9d69f4a0adc079d20a9e87bb
Signed-off-by: Ramesh V <ramev@codeaurora.org>
drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c

index 63f5497..ced61f8 100644 (file)
@@ -2909,6 +2909,8 @@ static void __msm_isp_stop_axi_streams(struct vfe_device *vfe_dev,
                 * those state transitions instead of directly forcing stream to
                 * be INACTIVE
                 */
+               memset(&stream_info->sw_skip, 0,
+                       sizeof(struct msm_isp_sw_framskip));
                intf = SRC_TO_INTF(stream_info->stream_src);
                if (stream_info->lpm_mode == 0 &&
                        stream_info->state != PAUSED) {