提交 eac8f5fa 编写于 作者: J Jean-Francois Moine 提交者: Mauro Carvalho Chehab

V4L/DVB (13927): gspca - sonixj: Fix bad video mode for all webcams.

The bug was introduced when adding the sensor adcm1700.
Signed-off-by: NJean-Francois Moine <moinejf@free.fr>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 cdf955cd
...@@ -1447,6 +1447,9 @@ static int sd_config(struct gspca_dev *gspca_dev, ...@@ -1447,6 +1447,9 @@ static int sd_config(struct gspca_dev *gspca_dev,
struct sd *sd = (struct sd *) gspca_dev; struct sd *sd = (struct sd *) gspca_dev;
struct cam *cam; struct cam *cam;
sd->bridge = id->driver_info >> 16;
sd->sensor = id->driver_info;
cam = &gspca_dev->cam; cam = &gspca_dev->cam;
if (sd->sensor == SENSOR_ADCM1700) { if (sd->sensor == SENSOR_ADCM1700) {
cam->cam_mode = cif_mode; cam->cam_mode = cif_mode;
...@@ -1457,9 +1460,6 @@ static int sd_config(struct gspca_dev *gspca_dev, ...@@ -1457,9 +1460,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
} }
cam->npkt = 24; /* 24 packets per ISOC message */ cam->npkt = 24; /* 24 packets per ISOC message */
sd->bridge = id->driver_info >> 16;
sd->sensor = id->driver_info;
sd->brightness = BRIGHTNESS_DEF; sd->brightness = BRIGHTNESS_DEF;
sd->contrast = CONTRAST_DEF; sd->contrast = CONTRAST_DEF;
sd->colors = COLOR_DEF; sd->colors = COLOR_DEF;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册