summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorErik Andr?n <erik.andren@gmail.com>2009-01-19 18:02:28 +0100
committerErik Andr?n <erik.andren@gmail.com>2009-01-19 18:02:28 +0100
commitf7e4d336384ca30f8c58afe8286fae922c9a9eac (patch)
treebcfe5ac6ce18074bf8a294aab32d50f6f8a78ef3 /linux/drivers
parentcf3b00abbf2245ed507d3487203c9be334ef1fcc (diff)
downloadmediapointer-dvb-s2-f7e4d336384ca30f8c58afe8286fae922c9a9eac.tar.gz
mediapointer-dvb-s2-f7e4d336384ca30f8c58afe8286fae922c9a9eac.tar.bz2
gspca - m5602-ov9650: Be more strict during the hsync/vsync synthesis
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_ov9650.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c b/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
index d6a666b86..f0e335533 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
+++ b/linux/drivers/media/video/gspca/m5602/m5602_ov9650.c
@@ -451,6 +451,14 @@ int ov9650_start(struct sd *sd)
if (err < 0)
return err;
+ err = m5602_write_bridge(sd, M5602_XB_SIG_INI, 0);
+ if (err < 0)
+ return err;
+
+ err = m5602_write_bridge(sd, M5602_XB_SIG_INI, 2);
+ if (err < 0)
+ return err;
+
err = m5602_write_bridge(sd, M5602_XB_HSYNC_PARA,
(hor_offs >> 8) & 0xff);
if (err < 0)
@@ -470,6 +478,10 @@ int ov9650_start(struct sd *sd)
if (err < 0)
return err;
+ err = m5602_write_bridge(sd, M5602_XB_SIG_INI, 0);
+ if (err < 0)
+ return err;
+
switch (width) {
case 640:
PDEBUG(D_V4L2, "Configuring camera for VGA mode");