Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208119
b: refs/heads/master
c: 6e80cc5
h: refs/heads/master
i:
  208117: b82b93e
  208115: 9c2c66e
  208111: 175ae39
v: v3
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed Aug 9, 2010
1 parent 8a384ff commit 8b2ce0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 585d48812c66f3045b6cb51539bafe10b109882f
refs/heads/master: 6e80cc51b4419ca0f8162024ee2497d7ec8ba31c
12 changes: 7 additions & 5 deletions trunk/drivers/media/video/gspca/sq930x.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ enum sensors {
SENSOR_ICX098BQ,
SENSOR_LZ24BP,
SENSOR_MI0360,
SENSOR_MT9V111,
SENSOR_MT9V111, /* = MI360SOC */
SENSOR_OV7660,
SENSOR_OV9630,
};
Expand Down Expand Up @@ -279,7 +279,7 @@ static const struct i2c_write_cmd mt9v111_init_0[] = {
{0x01, 0x0001}, /* select IFP/SOC registers */
{0x06, 0x300c}, /* operating mode control */
{0x08, 0xcc00}, /* output format control (RGB) */
{0x01, 0x0004}, /* select core registers */
{0x01, 0x0004}, /* select sensor core registers */
};
static const struct i2c_write_cmd mt9v111_init_1[] = {
{0x03, 0x01e5}, /* window height */
Expand Down Expand Up @@ -321,6 +321,7 @@ static const struct ucbus_write_cmd ov9630_start_0[] = {
{0xf334, 0x3e}, {0xf335, 0xf8}, {0xf33f, 0x03}
};

/* start parameters indexed by [sensor][mode] */
static const struct cap_s {
u8 cc_sizeid;
u8 cc_bytes[32];
Expand Down Expand Up @@ -923,11 +924,12 @@ static void send_start(struct gspca_dev *gspca_dev)
reg_wb(gspca_dev, 0x0900 | SQ930_CTRL_CAP_START,
0x0a00 | cap->cc_sizeid,
cap->cc_bytes, 32);
};
}

static void send_stop(struct gspca_dev *gspca_dev)
{
reg_w(gspca_dev, SQ930_CTRL_CAP_STOP, 0);
};
}

/* function called at start time before URB creation */
static int sd_isoc_init(struct gspca_dev *gspca_dev)
Expand Down Expand Up @@ -1014,7 +1016,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
/* 1st start */
send_start(gspca_dev);
msleep(60);
reg_w(gspca_dev, SQ930_CTRL_CAP_STOP, 0x0000);
send_stop(gspca_dev);

i2c_write(sd,
mi0360_start_4, ARRAY_SIZE(mi0360_start_4));
Expand Down

0 comments on commit 8b2ce0a

Please sign in to comment.