Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330945
b: refs/heads/master
c: 5266c98
h: refs/heads/master
i:
  330943: 0ef200a
v: v3
  • Loading branch information
Laurent Pinchart authored and Mauro Carvalho Chehab committed Sep 13, 2012
1 parent 15e5d73 commit b4d1acd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 9ec670e2aad515bbb36c020a6ebdc707ace4f24d
refs/heads/master: 5266c98b15e682694e4d79590d39416ad3bde687
12 changes: 6 additions & 6 deletions trunk/drivers/media/i2c/mt9p031.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
#define MT9P031_HORIZONTAL_BLANK_MIN 0
#define MT9P031_HORIZONTAL_BLANK_MAX 4095
#define MT9P031_VERTICAL_BLANK 0x06
#define MT9P031_VERTICAL_BLANK_MIN 0
#define MT9P031_VERTICAL_BLANK_MAX 4095
#define MT9P031_VERTICAL_BLANK_DEF 25
#define MT9P031_VERTICAL_BLANK_MIN 1
#define MT9P031_VERTICAL_BLANK_MAX 4096
#define MT9P031_VERTICAL_BLANK_DEF 26
#define MT9P031_OUTPUT_CONTROL 0x07
#define MT9P031_OUTPUT_CONTROL_CEN 2
#define MT9P031_OUTPUT_CONTROL_SYN 1
Expand Down Expand Up @@ -368,13 +368,13 @@ static int mt9p031_set_params(struct mt9p031 *mt9p031)
/* Blanking - use minimum value for horizontal blanking and default
* value for vertical blanking.
*/
hblank = 346 * ybin + 64 + (80 >> max_t(unsigned int, xbin, 3));
hblank = 346 * ybin + 64 + (80 >> min_t(unsigned int, xbin, 3));
vblank = MT9P031_VERTICAL_BLANK_DEF;

ret = mt9p031_write(client, MT9P031_HORIZONTAL_BLANK, hblank);
ret = mt9p031_write(client, MT9P031_HORIZONTAL_BLANK, hblank - 1);
if (ret < 0)
return ret;
ret = mt9p031_write(client, MT9P031_VERTICAL_BLANK, vblank);
ret = mt9p031_write(client, MT9P031_VERTICAL_BLANK, vblank - 1);
if (ret < 0)
return ret;

Expand Down

0 comments on commit b4d1acd

Please sign in to comment.