Commit b05a4ad9 authored by Erik Andr?n's avatar Erik Andr?n Committed by Mauro Carvalho Chehab

V4L/DVB (11539): gspca - m5602-ov9650: Be more strict during the hsync/vsync synthesis

Signed-off-by: default avatarErik Andr?n <erik.andren@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 92777460
...@@ -449,6 +449,14 @@ int ov9650_start(struct sd *sd) ...@@ -449,6 +449,14 @@ int ov9650_start(struct sd *sd)
if (err < 0) if (err < 0)
return err; 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, err = m5602_write_bridge(sd, M5602_XB_HSYNC_PARA,
(hor_offs >> 8) & 0xff); (hor_offs >> 8) & 0xff);
if (err < 0) if (err < 0)
...@@ -468,6 +476,10 @@ int ov9650_start(struct sd *sd) ...@@ -468,6 +476,10 @@ int ov9650_start(struct sd *sd)
if (err < 0) if (err < 0)
return err; return err;
err = m5602_write_bridge(sd, M5602_XB_SIG_INI, 0);
if (err < 0)
return err;
switch (width) { switch (width) {
case 640: case 640:
PDEBUG(D_V4L2, "Configuring camera for VGA mode"); PDEBUG(D_V4L2, "Configuring camera for VGA mode");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment