Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357018
b: refs/heads/master
c: 6ec5575
h: refs/heads/master
v: v3
  • Loading branch information
Javier Martin authored and Mauro Carvalho Chehab committed Dec 20, 2012
1 parent 60af0c0 commit 9062e3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: b618b69c108b4fa792ff3dfe1ea95eeca7bc6af8
refs/heads/master: 6ec5575c381de50b17e68796435f20ce1b27de79
8 changes: 6 additions & 2 deletions trunk/drivers/media/platform/soc_camera/mx2_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -1394,8 +1394,6 @@ static int mx2_camera_try_fmt(struct soc_camera_device *icd,
return -EINVAL;
}

/* FIXME: implement MX27 limits */

/* limit to MX25 hardware capabilities */
if (cpu_is_mx25()) {
if (xlate->host_fmt->bits_per_sample <= 8)
Expand Down Expand Up @@ -1427,6 +1425,12 @@ static int mx2_camera_try_fmt(struct soc_camera_device *icd,
pix->sizeimage = soc_mbus_image_size(xlate->host_fmt,
pix->bytesperline, pix->height);
}
} else {
/*
* Width must be a multiple of 8 as requested by the CSI.
* (Table 39-2 in the i.MX27 Reference Manual).
*/
pix->width &= ~0x7;
}

/* limit to sensor capabilities */
Expand Down

0 comments on commit 9062e3f

Please sign in to comment.