summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/spca561.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-01-18 18:24:52 +0100
committerJean-Francois Moine <moinejf@free.fr>2009-01-18 18:24:52 +0100
commitc1c20ef1d4eb6515fd12b715aade9be9012a0723 (patch)
tree866110e39898bc7a9799a0126e6f2a6bf3c3747e /linux/drivers/media/video/gspca/spca561.c
parent5da98ad023d302d16ec64a0c6dfbf7028cb6e878 (diff)
downloadmediapointer-dvb-s2-c1c20ef1d4eb6515fd12b715aade9be9012a0723.tar.gz
mediapointer-dvb-s2-c1c20ef1d4eb6515fd12b715aade9be9012a0723.tar.bz2
gspca - spca561: Fix image problem in the 352x288 mode of rev72a.
From: Jean-Francois Moine <moinejf@free.fr> With the wrong clock value, the image had two moving colored lines. Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca/spca561.c')
-rw-r--r--linux/drivers/media/video/gspca/spca561.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/linux/drivers/media/video/gspca/spca561.c b/linux/drivers/media/video/gspca/spca561.c
index f92cb0e4a..c8dd036a6 100644
--- a/linux/drivers/media/video/gspca/spca561.c
+++ b/linux/drivers/media/video/gspca/spca561.c
@@ -679,8 +679,10 @@ static int sd_start_72a(struct gspca_dev *gspca_dev)
mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv;
switch (mode) {
default:
-/* case 0:
- case 1: */
+ case 0:
+ Clck = 0x27; /* ms-win 0x87 */
+ break;
+ case 1:
Clck = 0x25;
break;
case 2:
@@ -690,8 +692,9 @@ static int sd_start_72a(struct gspca_dev *gspca_dev)
Clck = 0x21;
break;
}
- reg_w_val(dev, 0x8500, mode); /* mode */
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);
setcontrast(gspca_dev);
/* setbrightness(gspca_dev); * fixme: bad values */