Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192960
b: refs/heads/master
c: dab7e31
h: refs/heads/master
v: v3
  • Loading branch information
Andreas Bombe authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent e2e4875 commit 34817d0
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 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: 0a062033f727dc041691bfd768f4cf0598f559a1
refs/heads/master: dab7e3106ddd6cbc3b55301228407b9d17ce7773
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1806,8 +1806,8 @@ buffer_setup(struct videobuf_queue *q, unsigned int *count, unsigned int *size)
*size = fh->fmt->depth*fh->width*fh->height >> 3;
if (0 == *count)
*count = gbuffers;
while (*size * *count > gbuffers * gbufsize)
(*count)--;
if (*size * *count > gbuffers * gbufsize)
*count = (gbuffers * gbufsize) / *size;
return 0;
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/cx23885/cx23885-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ static int buffer_setup(struct videobuf_queue *q, unsigned int *count,
*size = fh->fmt->depth*fh->width*fh->height >> 3;
if (0 == *count)
*count = 32;
while (*size * *count > vid_limit * 1024 * 1024)
(*count)--;
if (*size * *count > vid_limit * 1024 * 1024)
*count = (vid_limit * 1024 * 1024) / *size;
return 0;
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/cx88/cx88-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,8 @@ buffer_setup(struct videobuf_queue *q, unsigned int *count, unsigned int *size)
*size = fh->fmt->depth*fh->width*fh->height >> 3;
if (0 == *count)
*count = 32;
while (*size * *count > vid_limit * 1024 * 1024)
(*count)--;
if (*size * *count > vid_limit * 1024 * 1024)
*count = (vid_limit * 1024 * 1024) / *size;
return 0;
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/mx1_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ static int mx1_videobuf_setup(struct videobuf_queue *vq, unsigned int *count,
if (!*count)
*count = 32;

while (*size * *count > MAX_VIDEO_MEM * 1024 * 1024)
(*count)--;
if (*size * *count > MAX_VIDEO_MEM * 1024 * 1024)
*count = (MAX_VIDEO_MEM * 1024 * 1024) / *size;

dev_dbg(icd->dev.parent, "count=%d, size=%d\n", *count, *size);

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/omap24xxcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@ static int omap24xxcam_vbq_setup(struct videobuf_queue *vbq, unsigned int *cnt,
*size = fh->pix.sizeimage;

/* accessing fh->cam->capture_mem is ok, it's constant */
while (*size * *cnt > fh->cam->capture_mem)
(*cnt)--;
if (*size * *cnt > fh->cam->capture_mem)
*cnt = fh->cam->capture_mem / *size;

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/pxa_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ static int pxa_videobuf_setup(struct videobuf_queue *vq, unsigned int *count,

if (0 == *count)
*count = 32;
while (*size * *count > vid_limit * 1024 * 1024)
(*count)--;
if (*size * *count > vid_limit * 1024 * 1024)
*count = (vid_limit * 1024 * 1024) / *size;

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/s2255drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,8 @@ static int buffer_setup(struct videobuf_queue *vq, unsigned int *count,
if (0 == *count)
*count = S2255_DEF_BUFS;

while (*size * (*count) > vid_limit * 1024 * 1024)
(*count)--;
if (*size * *count > vid_limit * 1024 * 1024)
*count = (vid_limit * 1024 * 1024) / *size;

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/sh_mobile_ceu_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ static int sh_mobile_ceu_videobuf_setup(struct videobuf_queue *vq,
*count = 2;

if (pcdev->video_limit) {
while (PAGE_ALIGN(*size) * *count > pcdev->video_limit)
(*count)--;
if (PAGE_ALIGN(*size) * *count > pcdev->video_limit)
*count = pcdev->video_limit / PAGE_ALIGN(*size);
}

dev_dbg(icd->dev.parent, "count=%d, size=%d\n", *count, *size);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/vivi.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ buffer_setup(struct videobuf_queue *vq, unsigned int *count, unsigned int *size)
if (0 == *count)
*count = 32;

while (*size * *count > vid_limit * 1024 * 1024)
(*count)--;
if (*size * *count > vid_limit * 1024 * 1024)
*count = (vid_limit * 1024 * 1024) / *size;

dprintk(dev, 1, "%s, count=%d, size=%d\n", __func__,
*count, *size);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/zr364xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ static int buffer_setup(struct videobuf_queue *vq, unsigned int *count,
if (*count == 0)
*count = ZR364XX_DEF_BUFS;

while (*size * (*count) > ZR364XX_DEF_BUFS * 1024 * 1024)
(*count)--;
if (*size * *count > ZR364XX_DEF_BUFS * 1024 * 1024)
*count = (ZR364XX_DEF_BUFS * 1024 * 1024) / *size;

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/cx25821/cx25821-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,8 @@ int cx25821_buffer_setup(struct videobuf_queue *q, unsigned int *count,
if (0 == *count)
*count = 32;

while (*size * *count > vid_limit * 1024 * 1024)
(*count)--;
if (*size * *count > vid_limit * 1024 * 1024)
*count = (vid_limit * 1024 * 1024) / *size;

return 0;
}
Expand Down

0 comments on commit 34817d0

Please sign in to comment.