V4L/DVB (10371): gspca - spca561: Fix image problem in the 352x288 mode of rev72a.
With the wrong clock value, the image had two moving colored lines. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
8fee845396
commit
a48196a2f7
@@ -648,8 +648,10 @@ static int sd_start_72a(struct gspca_dev *gspca_dev)
|
|||||||
mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv;
|
mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv;
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
default:
|
default:
|
||||||
/* case 0:
|
case 0:
|
||||||
case 1: */
|
Clck = 0x27; /* ms-win 0x87 */
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
Clck = 0x25;
|
Clck = 0x25;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
@@ -659,8 +661,9 @@ static int sd_start_72a(struct gspca_dev *gspca_dev)
|
|||||||
Clck = 0x21;
|
Clck = 0x21;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
reg_w_val(dev, 0x8500, mode); /* mode */
|
|
||||||
reg_w_val(dev, 0x8700, Clck); /* 0x27 clock */
|
reg_w_val(dev, 0x8700, Clck); /* 0x27 clock */
|
||||||
|
reg_w_val(dev, 0x8702, 0x81);
|
||||||
|
reg_w_val(dev, 0x8500, mode); /* mode */
|
||||||
write_sensor_72a(gspca_dev, rev72a_init_sensor2);
|
write_sensor_72a(gspca_dev, rev72a_init_sensor2);
|
||||||
setcontrast(gspca_dev);
|
setcontrast(gspca_dev);
|
||||||
/* setbrightness(gspca_dev); * fixme: bad values */
|
/* setbrightness(gspca_dev); * fixme: bad values */
|
||||||
|
Reference in New Issue
Block a user