Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f28710e1 authored by Meera Gande's avatar Meera Gande Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: Reset frameid for RDI



Made changes to reset the frameid for
RDI at stop stream.

Change-Id: I465aee1cc4869e04311ee1b0d0e607244b2513e9
Signed-off-by: default avatarMeera Gande <mgande@codeaurora.org>
parent 5720340d
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -3034,6 +3034,13 @@ static int msm_isp_stop_axi_stream(struct vfe_device *vfe_dev,
			if (intf >= VFE_RAW_0 &&
				intf < VFE_SRC_MAX) {
				vfe_dev->axi_data.src_info[intf].active = 0;
				/* reset frame_id for RDI path */
				if (halt) {
					vfe_dev->
					axi_data.src_info[intf].frame_id = 0;
					vfe_dev->
					axi_data.src_info[intf].eof_id = 0;
				}
			}
		} else
			src_mask |= (1 << intf);
@@ -3078,6 +3085,13 @@ static int msm_isp_stop_axi_stream(struct vfe_device *vfe_dev,
		for (i = VFE_RAW_0; i < VFE_SRC_MAX; i++) {
			if (src_mask & (1 << i)) {
				vfe_dev->axi_data.src_info[i].active = 0;
				/* reset frame_id for RDI path */
				if (halt) {
					vfe_dev->
					axi_data.src_info[i].frame_id = 0;
					vfe_dev->
					axi_data.src_info[i].eof_id = 0;
				}
			}
		}
	}