It seems the mt9v112 init sequence has vflip and hflip enabled by default in it I attached a patch that should turn them off by default (which they should be) that should at least ix the flipping when using that sensor, however since your sensor is really the mt9m111 fixing that is really the better option. So i'm also attaching another patch that uses the default window sizes for the mt9m111 sensor see if that makes the colors look any better when using that sensor.
On Wed, Feb 4, 2009 at 5:38 AM, Korvin <[email protected]> wrote: > > On Wednesday 04 February 2009 04:17:26 Vasily Khoruzhick wrote: > >> Did you try patch that I've send to you? It should fix your problems with >> color > > Yes, but it doesn't fix the problem. > > So, these are three shots from exactly the same position: > > 1) using original MT9M111 code: > http://img152.imageshack.us/my.php?image=mt9m111pm9.png > - color mismatch, pixel grid, > > 2) using patched MT9M111: > http://img6.imageshack.us/my.php?image=mt9m111patchcf2.png > - color mismatch, no grid (ok), shifted image (black space on the left) > > 3) using MT9V112 (!!): > http://img443.imageshack.us/my.php?image=mt9v112nz3.png > - correct colors (!!!), image is rotated, black space, and.... zoom enabled?! > you can see that shot contains.. em... top left quarter of the image rotated > by 270 gedrees. > > > > > > > --~--~---------~--~----~------------~-------~--~----~ Lets make microdia webcams plug'n play, (currently plug'n pray) To post to this group, send email to [email protected] Visit us online https://groups.google.com/group/microdia -~----------~----~----~----~------~----~------~--~---
From d4f74c9bac048fa7e6c97258661836ed31af2f3c Mon Sep 17 00:00:00 2001 From: Brian Johnson <[email protected]> Date: Wed, 4 Feb 2009 08:23:12 -0500 Subject: [PATCH] MT9V112 sensor shuld not have vflip and hflip set by default Signed-off-by: Brian Johnson <[email protected]> --- micron.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/micron.c b/micron.c index 8b36188..a830962 100644 --- a/micron.c +++ b/micron.c @@ -32,7 +32,7 @@ struct sn9c20x_i2c_regs mt9v112_init[] = { {0x0d, 0x0021}, {0x0d, 0x0020}, {0xf0, 0x0000}, {0x34, 0xc019}, {0x0a, 0x0011}, {0x0b, 0x000b}, - {0x20, 0x0703}, {0x35, 0x2022}, {0xf0, 0x0001}, + {0x20, 0x0700}, {0x35, 0x2022}, {0xf0, 0x0001}, {0x05, 0x0000}, {0x06, 0x340c}, {0x3b, 0x042a}, {0x3c, 0x0400}, {0xf0, 0x0002}, {0x2e, 0x0c58}, {0x5b, 0x0001}, {0xc8, 0x9f0b}, {0xf0, 0x0001}, @@ -40,7 +40,7 @@ struct sn9c20x_i2c_regs mt9v112_init[] = { {0x2c, 0x002a}, {0x2d, 0x0032}, {0x2e, 0x0020}, {0x09, 0x01dc}, {0x01, 0x000c}, {0x02, 0x0020}, {0x03, 0x01e0}, {0x04, 0x0280}, {0x06, 0x000c}, - {0x05, 0x0098}, {0x20, 0x0703}, {0x09, 0x01f2}, + {0x05, 0x0098}, {0x20, 0x0700}, {0x09, 0x01f2}, {0x2b, 0x00a0}, {0x2c, 0x00a0}, {0x2d, 0x00a0}, {0x2e, 0x00a0}, {0x01, 0x000c}, {0x02, 0x0020}, {0x03, 0x01e0}, {0x04, 0x0280}, {0x06, 0x000c}, -- 1.5.6.3
From 0593c67832c3ddefa7b28997cb21ca05f6446d24 Mon Sep 17 00:00:00 2001 From: Brian Johnson <[email protected]> Date: Wed, 4 Feb 2009 08:29:26 -0500 Subject: [PATCH] set mt9m111 to use default window size Signed-off-by: Brian Johnson <[email protected]> --- micron.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/micron.c b/micron.c index a830962..8876e94 100644 --- a/micron.c +++ b/micron.c @@ -300,13 +300,13 @@ struct sn9c20x_i2c_regs mt9m111_init[] = { /* The following set the resoutiona and window size. * It's a bit more than SXGA. * VSTART */ - {0x01, 0x000e}, + {0x01, 0x000c}, /* HSTART */ - {0x02, 0x0014}, + {0x02, 0x001e}, /* VSIZE */ - {0x03, 0x03c4}, + {0x03, 0x0400}, /* HSIZE */ - {0x04, 0x0514}, + {0x04, 0x0500}, /* Blanking */ {0xc8, 0x0003}, {0x0a, 0x0001}, @@ -326,6 +326,7 @@ struct sn9c20x_i2c_regs mt9m111_init[] = { {0x2d, 0x0188}, /* Green 2 gain */ {0x2e, 0x0188}, + {0x0d, 0x0008}, /* Blanking (again?) */ {0x0a, 0x0001}, {0x06, 0x0029}, -- 1.5.6.3
