Skip to content

Commit

Permalink
V4L/DVB (13927): gspca - sonixj: Fix bad video mode for all webcams.
Browse files Browse the repository at this point in the history
The bug was introduced when adding the sensor adcm1700.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent cdf955c commit eac8f5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/video/gspca/sonixj.c
Original file line number Diff line number Diff line change
Expand Up @@ -1447,6 +1447,9 @@ static int sd_config(struct gspca_dev *gspca_dev,
struct sd *sd = (struct sd *) gspca_dev;
struct cam *cam;

sd->bridge = id->driver_info >> 16;
sd->sensor = id->driver_info;

cam = &gspca_dev->cam;
if (sd->sensor == SENSOR_ADCM1700) {
cam->cam_mode = cif_mode;
Expand All @@ -1457,9 +1460,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
}
cam->npkt = 24; /* 24 packets per ISOC message */

sd->bridge = id->driver_info >> 16;
sd->sensor = id->driver_info;

sd->brightness = BRIGHTNESS_DEF;
sd->contrast = CONTRAST_DEF;
sd->colors = COLOR_DEF;
Expand Down

0 comments on commit eac8f5f

Please sign in to comment.