Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 241902
b: refs/heads/master
c: 44facdc
h: refs/heads/master
v: v3
  • Loading branch information
Anatolij Gustschin authored and Mauro Carvalho Chehab committed Mar 21, 2011
1 parent 325c8c4 commit 5f33870
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5bccd60852fc0a5ccc1980c10266896df99b8bda
refs/heads/master: 44facdc8c43a8b5172d6cbe995845c9889561aa0
6 changes: 6 additions & 0 deletions trunk/drivers/media/video/mx3_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,12 @@ static int mx3_camera_set_fmt(struct soc_camera_device *icd,
pix->colorspace = mf.colorspace;
icd->current_fmt = xlate;

pix->bytesperline = soc_mbus_bytes_per_line(pix->width,
xlate->host_fmt);
if (pix->bytesperline < 0)
return pix->bytesperline;
pix->sizeimage = pix->height * pix->bytesperline;

dev_dbg(icd->dev.parent, "Sensor set %dx%d\n", pix->width, pix->height);

return ret;
Expand Down

0 comments on commit 5f33870

Please sign in to comment.