projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdf955c
)
V4L/DVB (13927): gspca - sonixj: Fix bad video mode for all webcams.
author
Jean-Francois Moine
<
[email protected]
>
Tue, 12 Jan 2010 10:12:43 +0000
(07:12 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Fri, 26 Feb 2010 18:10:32 +0000
(15:10 -0300)
The bug was introduced when adding the sensor adcm1700.
Signed-off-by: Jean-Francois Moine <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/video/gspca/sonixj.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/gspca/sonixj.c
b/drivers/media/video/gspca/sonixj.c
index 8e4a627dc83f7285add338fee6cffcbbc5e10e2d..4ece1109d399724998b93d2f04391738ef458ce0 100644
(file)
--- a/
drivers/media/video/gspca/sonixj.c
+++ b/
drivers/media/video/gspca/sonixj.c
@@
-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;
@@
-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;