summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2017-04-20 16:10:22 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-20 16:10:21 -0700
commit661a45ee187da47b01664da9e55b1f1675fdba1a (patch)
tree6303af0afde6edc723df7029b3eb8a687662ac82 /drivers
parent6ee87610acf2927de5365f456ca0e6529f5c0d1a (diff)
parentb88c1f239000f22f7afc173e399f2e18ec478cb9 (diff)
Merge "msm: camera: isp: Use the frame id from correct source"
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c b/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c
index 5f1c9c2f9436..b9b0f3f0d5f3 100644
--- a/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c
+++ b/drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c
@@ -3432,22 +3432,21 @@ static int msm_isp_request_frame(struct vfe_device *vfe_dev,
/*
* If frame_id = 1 then no eof check is needed
*/
- if (vfe_dev->axi_data.src_info[VFE_PIX_0].active &&
- vfe_dev->axi_data.src_info[VFE_PIX_0].accept_frame == false) {
+ if (vfe_dev->axi_data.src_info[frame_src].active &&
+ frame_src == VFE_PIX_0 &&
+ vfe_dev->axi_data.src_info[frame_src].accept_frame == false) {
pr_debug("%s:%d invalid time to request frame %d\n",
__func__, __LINE__, frame_id);
goto error;
}
- if ((vfe_dev->axi_data.src_info[VFE_PIX_0].active && (frame_id !=
- vfe_dev->axi_data.src_info[VFE_PIX_0].frame_id + vfe_dev->
- axi_data.src_info[VFE_PIX_0].sof_counter_step)) ||
- ((!vfe_dev->axi_data.src_info[VFE_PIX_0].active) && (frame_id !=
+ if ((vfe_dev->axi_data.src_info[frame_src].active && (frame_id !=
vfe_dev->axi_data.src_info[frame_src].frame_id + vfe_dev->
- axi_data.src_info[frame_src].sof_counter_step))) {
+ axi_data.src_info[VFE_PIX_0].sof_counter_step)) ||
+ ((!vfe_dev->axi_data.src_info[frame_src].active))) {
pr_debug("%s:%d invalid frame id %d cur frame id %d pix %d\n",
__func__, __LINE__, frame_id,
- vfe_dev->axi_data.src_info[VFE_PIX_0].frame_id,
- vfe_dev->axi_data.src_info[VFE_PIX_0].active);
+ vfe_dev->axi_data.src_info[frame_src].frame_id,
+ vfe_dev->axi_data.src_info[frame_src].active);
goto error;
}
if (stream_info->undelivered_request_cnt >= MAX_BUFFERS_IN_HW) {