aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/i2c/ov13858.c
diff options
context:
space:
mode:
authorChiranjeevi Rapolu <chiranjeevi.rapolu@intel.com>2017-09-18 19:47:43 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-04 17:22:37 -0300
commit58020c9f14c8d884fd48434fbdbc659257cf46f3 (patch)
tree303669f929830364d965c19cc8f813cad8b22f77 /drivers/media/i2c/ov13858.c
parent[media] media: ov13858: Calculate pixel-rate at runtime, use mode (diff)
downloadwireguard-linux-58020c9f14c8d884fd48434fbdbc659257cf46f3.tar.xz
wireguard-linux-58020c9f14c8d884fd48434fbdbc659257cf46f3.zip
[media] media: ov13858: Fix 4224x3136 video flickering at some vblanks
Previously, with crop (0, 0), (4255, 3167), VTS < 0xC9E was resulting in blank frames sometimes. This appeared as video flickering. But we need VTS < 0xC9E to get ~30fps. Omni Vision recommends to use crop (0,8), (4255, 3159) for 4224x3136. With this crop, VTS 0xC8E is supported and yields ~30fps. Signed-off-by: Chiranjeevi Rapolu <chiranjeevi.rapolu@intel.com> Reviewed-by: Tomasz Figa <tfiga@chromium.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/i2c/ov13858.c')
-rw-r--r--drivers/media/i2c/ov13858.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/i2c/ov13858.c b/drivers/media/i2c/ov13858.c
index 4e331b401a71..2bd659976c30 100644
--- a/drivers/media/i2c/ov13858.c
+++ b/drivers/media/i2c/ov13858.c
@@ -237,11 +237,11 @@ static const struct ov13858_reg mode_4224x3136_regs[] = {
{0x3800, 0x00},
{0x3801, 0x00},
{0x3802, 0x00},
- {0x3803, 0x00},
+ {0x3803, 0x08},
{0x3804, 0x10},
{0x3805, 0x9f},
{0x3806, 0x0c},
- {0x3807, 0x5f},
+ {0x3807, 0x57},
{0x3808, 0x10},
{0x3809, 0x80},
{0x380a, 0x0c},