V4L/DVB (11638): gspca - m5602-ov7660: Make an educated guess on the proper hsync...
authorErik Andrén <erik.andren@gmail.com>
Wed, 21 Jan 2009 16:46:58 +0000 (13:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:20:47 +0000 (18:20 -0300)
Based on how the ov9650 is configured, make an educated guess on the hsync/vsync setup for the ov7660

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_ov7660.h

index 71103ed..34652bc 100644 (file)
@@ -335,7 +335,7 @@ static const unsigned char init_ov7660[][4] =
        {BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
        {BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
        {BRIDGE, M5602_XB_VSYNC_PARA, 0x01},
-       {BRIDGE, M5602_XB_VSYNC_PARA, 0xec}, /* 492 */
+       {BRIDGE, M5602_XB_VSYNC_PARA, 0xe0}, /* 480 */
        {BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
        {BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
        {BRIDGE, M5602_XB_SIG_INI, 0x00},
@@ -343,7 +343,7 @@ static const unsigned char init_ov7660[][4] =
        {BRIDGE, M5602_XB_VSYNC_PARA, 0x00},
        {BRIDGE, M5602_XB_VSYNC_PARA, 0x27}, /* 39 */
        {BRIDGE, M5602_XB_VSYNC_PARA, 0x02},
-       {BRIDGE, M5602_XB_VSYNC_PARA, 0xae}, /* 686 */
+       {BRIDGE, M5602_XB_VSYNC_PARA, 0xa7}, /* 679 */
        {BRIDGE, M5602_XB_SIG_INI, 0x00},
 
        {SENSOR, OV7660_BLUE_GAIN, 0x80},