[email protected] schrieb:
Under the windows Xp the webcam worked perfectly.

I tried all 4 usb ports in my possession with no extension. But it
still does not work.


I tried in two different ways for each door.

First way,      sequence of commands from terminal:
sudo make rmmod
sudo insmod sn9c20x.ko
dmesg

output ---->  
http://groups.google.com/group/microdia/web/output%20only%20sn9c201.ko


Second way, sequence of commands from terminal:
sudo make rmmod
sudo insmod sn9c20x.ko log_level=15
dmesg

output ---->  
http://groups.google.com/group/microdia/web/output%20insmod_sn9c20x.ko_log_level%3D15

but nothing changes with mplayer: appears only a green image. ----->
as here  --->  http://groups.google.com/group/microdia/web/mplayer.png

Sorry my disorder, but I do not know what else to do unless you ask
for help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---


Please test the attached patch.
1. Go into the microdia directory.
2. apply the patch with:
$ git am <patchfile>

3. Recompile and insert into kernel
4. run mplayer with libv4l -> see if it works.

GWater
From bbd6eb890680fbbf783476b0ebea81508c7ae5b2 Mon Sep 17 00:00:00 2001
From: Josua Grawitter <[email protected]>
Date: Sun, 25 Jan 2009 13:34:10 +0100
Subject: [PATCH] Fix mt9m001 initilization

Signed-off-by: Josua Grawitter <[email protected]>
---
 micron.c |   57 ++++++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 42 insertions(+), 15 deletions(-)

diff --git a/micron.c b/micron.c
index 8b36188..06c3797 100644
--- a/micron.c
+++ b/micron.c
@@ -334,21 +334,48 @@ struct sn9c20x_i2c_regs mt9m111_init[] = {
 };
 
 struct sn9c20x_i2c_regs mt9m001_init[] = {
-       {0x07, 0x0000}, {0x07, 0x0002}, {0x0d, 0x0001}, {0x0d, 0x0000},
-       {0x01, 0x000e}, {0x02, 0x0014}, {0x03, 0x03c1}, {0x04, 0x0501},
-       {0x05, 0x0083}, {0x06, 0x0006}, {0x0d, 0x0002}, {0x09, 0x0000},
-       {0x0a, 0x0000}, {0x0b, 0x0000}, {0x0c, 0x0000}, {0x11, 0x0000},
-       {0x1e, 0x8000}, {0x20, 0x1105}, {0x2b, 0x0008}, {0x2c, 0x0010},
-       {0x2d, 0x0014}, {0x2e, 0x0008}, {0x5f, 0x8904}, {0x60, 0x0000},
-       {0x61, 0x0000}, {0x62, 0x0498}, {0x63, 0x0000}, {0x68, 0x0000},
-       {0x20, 0x111d}, {0x06, 0x00f2}, {0x05, 0x0013}, {0x20, 0x111d},
-       {0x20, 0x111d}, {0x07, 0x0003}, {0x2b, 0x0010}, {0x2c, 0x0010},
-       {0x2d, 0x0010}, {0x2e, 0x0010}, {0x07, 0x0002}, {0x07, 0x0003},
-       {0x2c, 0x001d}, {0x2d, 0x001d}, {0x07, 0x0002}, {0x06, 0x00f2},
-       {0x05, 0x0013}, {0x09, 0x0387}, {0x07, 0x0003}, {0x2b, 0x0028},
-       {0x2c, 0x003f}, {0x2d, 0x003f}, {0x2e, 0x0028}, {0x07, 0x0002},
-       {0x09, 0x04f1}, {0x07, 0x0003}, {0x2b, 0x0024}, {0x2c, 0x0039},
-       {0x2d, 0x0039}, {0x2e, 0x0024}, {0x07, 0x0002}, {0xff, 0xffff},
+       {0x07, 0x0000}, /* reset sensor */
+       {0x07, 0x0002},
+       {0x0d, 0x0001},
+       {0x0d, 0x0000},
+
+       {0x01, 0x000e}, /* VSTART */
+       {0x02, 0x0014}, /* HSTART */
+       {0x03, 0x03c1}, /* VSIZE */
+       {0x04, 0x0501}, /* HSIZE */
+       /* 640x480 (row skip is enabled)*/
+
+//     {0x0d, 0x0002}, /* ??? */
+
+/*     {0x09, 0x0000}, / Pixel Integration Time /
+       {0x0a, 0x0000}, / ??? /
+       {0x0b, 0x0000}, / ??? / */
+       {0x0c, 0x0000}, /* Shutter delay */
+
+       {0x11, 0x0000}, /* ??? */
+
+       {0x1e, 0x8000}, /* Read Mode */
+       {0x20, 0x111d}, /* output bad frames skip every 2 columns and rows */
+
+       {0x5f, 0x8904}, /* BLC */
+       {0x60, 0x0000},
+       {0x61, 0x0000},
+       {0x62, 0x0498},
+       {0x63, 0x0000},
+       {0x64, 0x0000},
+
+       {0x06, 0x00f2}, /* Blanking Control */
+       {0x05, 0x0013},
+
+       {0x09, 0x04f1}, /* Pixel Integration control */
+
+       {0x07, 0x0003}, /* freeze */
+       {0x2b, 0x0024},
+       {0x2c, 0x0039},
+       {0x2d, 0x0039},
+       {0x2e, 0x0024},
+       {0x07, 0x0002}, /* unfreeze */
+       /* {0xff, 0xffff},*/
 };
 
 int mt9v111_select_address_space(struct usb_sn9c20x *dev, __u8 address_space)
-- 
1.6.0.6

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to