Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124511
b: refs/heads/master
c: 3da3dce
h: refs/heads/master
i:
  124509: 2b08436
  124507: 2de19c4
  124503: 3ff66a6
  124495: 6e39e90
  124479: 2d3701b
v: v3
  • Loading branch information
Erik Andrén authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent 083bc66 commit c4ad660
Show file tree
Hide file tree
Showing 3 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: 7d292de890a2367ddb605f9a52b015e45c10e322
refs/heads/master: 3da3dce5afd267d354427042090aaf6370ebc15c
3 changes: 3 additions & 0 deletions trunk/drivers/media/video/gspca/m5602/m5602_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ static int m5602_start_transfer(struct gspca_dev *gspca_dev)
/* Send start command to the camera */
const u8 buffer[4] = {0x13, 0xf9, 0x0f, 0x01};

if (sd->sensor->start)
sd->sensor->start(sd);

memcpy(buf, buffer, sizeof(buffer));
err = usb_control_msg(gspca_dev->dev,
usb_sndctrlpipe(gspca_dev->dev, 0),
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/media/video/gspca/m5602/m5602_sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ struct m5602_sensor {
/* Performs a initialization sequence */
int (*init)(struct sd *sd);

/* Executed when the camera starts to send data */
int (*start)(struct sd *sd);

/* Performs a power down sequence */
int (*power_down)(struct sd *sd);

Expand Down

0 comments on commit c4ad660

Please sign in to comment.