Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124553
b: refs/heads/master
c: bf50715
h: refs/heads/master
i:
  124551: 56cc18e
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent 1770aa6 commit b79081a
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 64f5905ee74906643e22657bd20e2f11443053f0
refs/heads/master: bf507158eb27ea94aca300b28ecee60fdbb40007
8 changes: 7 additions & 1 deletion trunk/drivers/media/video/pxa_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,7 @@ static int pxa_camera_try_fmt(struct soc_camera_device *icd,
const struct soc_camera_format_xlate *xlate;
struct v4l2_pix_format *pix = &f->fmt.pix;
__u32 pixfmt = pix->pixelformat;
int ret;

xlate = soc_camera_xlate_by_fourcc(icd, pixfmt);
if (!xlate) {
Expand All @@ -1240,8 +1241,13 @@ static int pxa_camera_try_fmt(struct soc_camera_device *icd,
DIV_ROUND_UP(xlate->host_fmt->depth, 8);
pix->sizeimage = pix->height * pix->bytesperline;

/* camera has to see its format, but the user the original one */
pix->pixelformat = xlate->cam_fmt->fourcc;
/* limit to sensor capabilities */
return icd->ops->try_fmt(icd, f);
ret = icd->ops->try_fmt(icd, f);
pix->pixelformat = xlate->host_fmt->fourcc;

return ret;
}

static int pxa_camera_reqbufs(struct soc_camera_file *icf,
Expand Down

0 comments on commit b79081a

Please sign in to comment.