V4L/DVB (11539): gspca - m5602-ov9650: Be more strict during the hsync/vsync synthesis
authorErik Andr?n <erik.andren@gmail.com>
Mon, 19 Jan 2009 17:02:28 +0000 (14:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:20:34 +0000 (18:20 -0300)
Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/m5602/m5602_ov9650.c

index 89fb01c..d77ec97 100644 (file)
@@ -449,6 +449,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)
@@ -468,6 +476,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");