Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192864
b: refs/heads/master
c: a8e68c3
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Corbet authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent e4d1429 commit 279b683
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 467142093de1507833a08c50740d74b3b8c8eaca
refs/heads/master: a8e68c37c846236499ac05e95af76dff2e9aa1eb
6 changes: 5 additions & 1 deletion trunk/drivers/media/video/ov7670.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,12 @@ static int ov7670_s_fmt(struct v4l2_subdev *sd, struct v4l2_format *fmt)
* the other parameters or the image looks poor. If we're *not*
* doing RGB565, we must not rewrite clkrc or the image looks
* *really* poor.
*
* (Update) Now that we retain clkrc state, we should be able
* to write it unconditionally, and that will make the frame
* rate persistent too.
*/
if (fmt->fmt.pix.pixelformat == V4L2_PIX_FMT_RGB565 && ret == 0)
if (ret == 0)
ret = ov7670_write(sd, REG_CLKRC, info->clkrc);
return ret;
}
Expand Down

0 comments on commit 279b683

Please sign in to comment.