If you haven't try this attached post according to someone in an
ealrier post about the mt9m111 sensor based cameras it seems that that
sensor is curently sending back GRBG bayer data. This patch should
adjust the starting row if the sensor by one thereby starting with a
BG row giving you BGGR output which is what the driver expects. don't
know if this will fix things but hopefully it will.

On Mon, Jan 12, 2009 at 4:40 PM, GWater <[email protected]> wrote:
> WelshMark schrieb:
>>
>> Hopefully this is what you are looking for.
>>
>>  125.076691] microdia: Microdia USB 2.0 webcam driver loaded
>> [  125.076727] usbcore: registered new interface driver
>> usb_microdia_driver
>> [  125.076730] microdia: v2008.11 : Microdia USB 2.0 Webcam Driver
>> [  153.420012] usb 1-2: new high speed USB device using ehci_hcd and
>> address 6
>> [  153.555775] usb 1-2: configuration #1 chosen from 1 choice
>> [  153.556049] microdia: Microdia USB 2.0 Webcam - 0C45:6282 plugged-
>> in.
>> [  153.556060] microdia: Detected SN9C20X Bridge
>> [  153.575657] microdia: Detected MT9M111 Sensor
>> [  153.606878] microdia: Microdia USB 2.0 Webcam is now controlling
>> video device /dev/video1
>> [  153.611052] 6:2:1: cannot get freq at ep 0x84
>> [  154.184846] 6:2:1: cannot get freq at ep 0x84
>>
>> Thanks
>>
>> Mark
>>
>> On Jan 11, 4:49 pm, GWater <[email protected]> wrote:
>>>
>>> WelshMark schrieb:
>>>
>>>
>>>
>>>> I cabnt see to post directly to the group so I'm trying this.
>>>> I think this is what you're after
>>>> 117.535293] 3:2:1: cannot get freq at ep 0x84
>>>> [ 1240.387391] microdia: Microdia USB 2.0 webcam driver loaded
>>>> [ 1240.388038] microdia: Microdia USB 2.0 Webcam - 0C45:6282 plugged-
>>>> in.
>>>> [ 1240.388047] microdia: Detected SN9C20X Bridge
>>>> [ 1240.402263] microdia: Detected MT9M111 Sensor
>>>> [ 1240.433232] microdia: Microdia USB 2.0 Webcam is now controlling
>>>> video device /dev/video1
>>>> [ 1240.434037] usbcore: registered new interface driver
>>>> usb_microdia_driver
>>>> [ 1240.434044] microdia: v2008.11 : Microdia USB 2.0 Webcam Driver
>>>
>>> OK thanks,
>>>
>>> I need the output because it may contain errors and tels me which sensor
>>> your webcam contains.
>>>
>>> So it seems MT9M111 sensors need a bit image tweaking. However you are
>>> currently not able to do that yourself because there are no controls for
>>> that sensor implemented yet. I'll get on it.
>>>
>>> GWater
>>>
>>>  signature.asc
>>> < 1KViewDownload
>>
>> >>
>
> The one before was already fine. You can relax now because with this
> information it is my turn to provide you with the tools you need to fix the
> weird image. When I got that I'll get back to you and ask you to test some
> stuff. But for now everythings fine.
>
> GWater
>
>
>
>
>

--~--~---------~--~----~------------~-------~--~----~
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 ec441ae13848791afc2b6e6819d1f9c62cf0d562 Mon Sep 17 00:00:00 2001
From: Brian Johnson <[email protected]>
Date: Mon, 12 Jan 2009 20:49:18 -0500
Subject: [PATCH] Start mt9m111 sensor readout 1 row later

Signed-off-by: Brian Johnson <[email protected]>
---
 micron.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/micron.c b/micron.c
index d9394bb..fc7baf3 100644
--- a/micron.c
+++ b/micron.c
@@ -300,11 +300,11 @@ 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, 0x000f},
 	/* HSTART */
 	{0x02, 0x0014},
 	/* VSIZE */
-	{0x03, 0x03c4},
+	{0x03, 0x03c5},
 	/* HSIZE */
 	{0x04, 0x0514},
 	/* Blanking */
@@ -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

Reply via email to