Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142485
b: refs/heads/master
c: 7136e70
h: refs/heads/master
i:
  142483: 7fd1f69
v: v3
  • Loading branch information
Erik Andr?n authored and Mauro Carvalho Chehab committed Apr 7, 2009
1 parent bc154ef commit 32b9422
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 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: 5a0489b3beb9de0c42f2a93113d6bd148473ac9b
refs/heads/master: 7136e705d8db46f22657523ee108be35c59ce3e9
9 changes: 2 additions & 7 deletions trunk/drivers/media/video/gspca/m5602/m5602_ov9650.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ const static struct ctrl ov9650_ctrls[] = {
.type = V4L2_CTRL_TYPE_INTEGER,
.name = "exposure",
.minimum = 0x00,
.maximum = 0xffff,
.step = 0x1,
.maximum = 0x1ff,
.step = 0x4,
.default_value = EXPOSURE_DEFAULT,
.flags = V4L2_CTRL_FLAG_SLIDER
},
Expand Down Expand Up @@ -407,11 +407,6 @@ int ov9650_get_exposure(struct gspca_dev *gspca_dev, __s32 *val)
u8 i2c_data;
int err;

err = m5602_read_sensor(sd, OV9650_COM1, &i2c_data, 1);
if (err < 0)
return err;
*val = i2c_data & 0x03;

err = m5602_read_sensor(sd, OV9650_AECH, &i2c_data, 1);
if (err < 0)
return err;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/gspca/m5602/m5602_ov9650.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
#define GAIN_DEFAULT 0x14
#define RED_GAIN_DEFAULT 0x70
#define BLUE_GAIN_DEFAULT 0x20
#define EXPOSURE_DEFAULT 0x5003
#define EXPOSURE_DEFAULT 0x1ff

/*****************************************************************************/

Expand Down

0 comments on commit 32b9422

Please sign in to comment.