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

Commit 9c7f7133 authored by Shubhraprakash Das's avatar Shubhraprakash Das Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: Program scratch buffer by sending right bit



Send only the ping or pong bit when calling the function that
programs scratch buffer.

CRs-Fixed: 999140
Change-Id: I12f109bf42306728f467d1710b681c7c74d30c57
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent 2198278e
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -3505,7 +3505,8 @@ void msm_isp_process_axi_irq(struct vfe_device *vfe_dev,
					if (comp_info->stream_composite_mask &
					if (comp_info->stream_composite_mask &
						(1 << wm))
						(1 << wm))
						msm_isp_cfg_wm_scratch(vfe_dev,
						msm_isp_cfg_wm_scratch(vfe_dev,
							wm, pingpong_status);
							wm, (pingpong_status >>
								wm) & 0x1);
				continue;
				continue;
			}
			}
			stream_idx = HANDLE_TO_IDX(comp_info->stream_handle);
			stream_idx = HANDLE_TO_IDX(comp_info->stream_handle);
@@ -3525,7 +3526,7 @@ void msm_isp_process_axi_irq(struct vfe_device *vfe_dev,
				pr_err("%s: Invalid handle for wm irq\n",
				pr_err("%s: Invalid handle for wm irq\n",
					__func__);
					__func__);
				msm_isp_cfg_wm_scratch(vfe_dev, i,
				msm_isp_cfg_wm_scratch(vfe_dev, i,
					pingpong_status);
					(pingpong_status >> i) & 0x1);
				continue;
				continue;
			}
			}
			stream_info = &axi_data->stream_info[stream_idx];
			stream_info = &axi_data->stream_info[stream_idx];
+1 −1
Original line number Original line Diff line number Diff line
@@ -113,7 +113,7 @@ static inline void msm_isp_cfg_stream_scratch(struct vfe_device *vfe_dev,
	pingpong_bit = (~(pingpong_status >> stream_info->wm[0]) & 0x1);
	pingpong_bit = (~(pingpong_status >> stream_info->wm[0]) & 0x1);
	for (i = 0; i < stream_info->num_planes; i++)
	for (i = 0; i < stream_info->num_planes; i++)
		msm_isp_cfg_wm_scratch(vfe_dev, stream_info->wm[i],
		msm_isp_cfg_wm_scratch(vfe_dev, stream_info->wm[i],
				~pingpong_bit);
				~pingpong_bit & 0x1);
	stream_info->buf[pingpong_bit] = NULL;
	stream_info->buf[pingpong_bit] = NULL;
}
}