Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285715
b: refs/heads/master
c: ccd1a49
h: refs/heads/master
i:
  285713: de4798d
  285711: 916d918
v: v3
  • Loading branch information
Javier Martin authored and Mauro Carvalho Chehab committed Jan 6, 2012
1 parent 135a4dc commit c89f116
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f410991dcf1fc3ad1d3311b79b4f1b917224ebed
refs/heads/master: ccd1a499c1675fef5d2a138617507add63cb81db
5 changes: 4 additions & 1 deletion trunk/drivers/media/video/mx2_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ struct mx2_camera_dev {
dma_addr_t discard_buffer_dma;
size_t discard_size;
struct mx2_fmt_cfg *emma_prp;
u32 frame_count;
};

/* buffer for one video frame */
Expand Down Expand Up @@ -371,6 +372,7 @@ static int mx2_camera_add_device(struct soc_camera_device *icd)
writel(pcdev->csicr1, pcdev->base_csi + CSICR1);

pcdev->icd = icd;
pcdev->frame_count = 0;

dev_info(icd->parent, "Camera driver attached to camera %d\n",
icd->devnum);
Expand Down Expand Up @@ -1374,7 +1376,8 @@ static void mx27_camera_frame_done_emma(struct mx2_camera_dev *pcdev,
list_del(&vb->queue);
vb->state = state;
do_gettimeofday(&vb->ts);
vb->field_count++;
vb->field_count = pcdev->frame_count * 2;
pcdev->frame_count++;

wake_up(&vb->done);
}
Expand Down

0 comments on commit c89f116

Please sign in to comment.