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>
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;
}
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;