Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153949
b: refs/heads/master
c: bc44fc0
h: refs/heads/master
i:
  153947: 305f310
v: v3
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Jun 23, 2009
1 parent 49c7b83 commit 8b29438
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: 4a6b8df2133c1f218a503e0432a9e6cc3d461a30
refs/heads/master: bc44fc061ea1f2b7918ec0bb55013b8054c81752
12 changes: 2 additions & 10 deletions trunk/drivers/media/video/sh_mobile_ceu_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,16 +689,8 @@ static int sh_mobile_ceu_try_fmt(struct soc_camera_device *icd,

/* FIXME: calculate using depth and bus width */

if (f->fmt.pix.height < 4)
f->fmt.pix.height = 4;
if (f->fmt.pix.height > 1920)
f->fmt.pix.height = 1920;
if (f->fmt.pix.width < 2)
f->fmt.pix.width = 2;
if (f->fmt.pix.width > 2560)
f->fmt.pix.width = 2560;
f->fmt.pix.width &= ~0x01;
f->fmt.pix.height &= ~0x03;
v4l_bound_align_image(&f->fmt.pix.width, 2, 2560, 1,
&f->fmt.pix.height, 4, 1920, 2, 0);

f->fmt.pix.bytesperline = f->fmt.pix.width *
DIV_ROUND_UP(xlate->host_fmt->depth, 8);
Expand Down

0 comments on commit 8b29438

Please sign in to comment.