Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124231
b: refs/heads/master
c: cc04342
h: refs/heads/master
i:
  124229: da6f88a
  124227: 812c93a
  124223: 7e782cc
v: v3
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Dec 29, 2008
1 parent 834f2ec commit 8c65134
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 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: dff369aad6407e7b123e239e9ea2f552299cf74c
refs/heads/master: cc043428e5869a629252665d3ecc86ee4c14db3d
22 changes: 12 additions & 10 deletions trunk/drivers/media/video/gspca/spca501.c
Original file line number Diff line number Diff line change
Expand Up @@ -1930,6 +1930,14 @@ static int sd_config(struct gspca_dev *gspca_dev,
sd->contrast = sd_ctrls[MY_CONTRAST].qctrl.default_value;
sd->colors = sd_ctrls[MY_COLOR].qctrl.default_value;

return 0;
}

/* this function is called at probe and resume time */
static int sd_init(struct gspca_dev *gspca_dev)
{
struct sd *sd = (struct sd *) gspca_dev;

switch (sd->subtype) {
case Arowana300KCMOSCamera:
case SmileIntlCamera:
Expand All @@ -1948,15 +1956,17 @@ static int sd_config(struct gspca_dev *gspca_dev,
goto error;
break;
}
PDEBUG(D_STREAM, "Initializing SPCA501 finished");
return 0;
error:
return -EINVAL;
}

/* this function is called at probe and resume time */
static int sd_init(struct gspca_dev *gspca_dev)
static int sd_start(struct gspca_dev *gspca_dev)
{
struct sd *sd = (struct sd *) gspca_dev;
struct usb_device *dev = gspca_dev->dev;
int mode;

switch (sd->subtype) {
case ThreeComHomeConnectLite:
Expand All @@ -1976,14 +1986,6 @@ static int sd_init(struct gspca_dev *gspca_dev)
/* Generic 501 open data */
write_vector(gspca_dev, spca501_open_data);
}
PDEBUG(D_STREAM, "Initializing SPCA501 finished");
return 0;
}

static int sd_start(struct gspca_dev *gspca_dev)
{
struct usb_device *dev = gspca_dev->dev;
int mode;

/* memorize the wanted pixel format */
mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv;
Expand Down

0 comments on commit 8c65134

Please sign in to comment.