Yes the ov7660 sensor that the 627b camera uses currently does not
have gain support please try this quick patch and see if it works
correctly for you.

On Tue, Jan 27, 2009 at 12:32 AM, Depaz <[email protected]> wrote:
>
>
>
> On 25 ene, 04:29, nhale25 <[email protected]> wrote:
>> Aha, you've got it.  I've installed everything to the right place and
>> am having success now!
>>
>> To completely document what I've done, for anybody else reading...
>>
>> * download at least version 0.5.8 of libv4l
>> * download this 
>> patch:http://groups.google.com/group/microdia/attach/b4b3d001b02f388a/0001-...
>> * place patch in the newly downloaded libv4l directory
>> * in a terminal :
>> patch -p1 < name-of-the-patch-you-just-downloaded
>> make
>>
>> * if it's a Debian based system (you want it to end up in /usr/lib),
>> in a terminal:
>> sudo make install PREFIX=/usr
>> * otherwise, in a terminal:
>> sudo make install
>>
>> Thats what worked for me, anyway.  Thanks Brian and GWater for your
>> help :)
>>
>> Nick
>
> I tried the current sn9c20x module after downloading/patching/
> compiling libv4l 0.5.8, and the flickering finally stopped, great :).
> Now I'm trying to improve the image quality using v4l2ucp, I have a
> brighter image and faster fps using the windows drivers (In low light
> conditions). I suppose that increasing the gain is the solution, but
> v4l2ucp gives me this error: Unable to set gain.
>
> If I load the sn9c20x module adding auto_gain=1, the lighting improves
> and the fps work nicely, but the image is too noisy and it's in
> grayscale. If I unload the module and I load it again without
> parameters, the grayscale problem dissapears, and the webcam continues
> using auto_gain... weird, but that's how I'm using it at night. The
> autogain is disabled only after restarting the computer.
> I've read that gain support has been added recently, but Is there a
> way to increase it without using auto_gain?
>
> Many thanks Brian and GWater for your great work with the driver :).
> And thanks to nhale25 too.
>
> --
> Again, sorry my english ;). If you need more information let me know.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 93745d0b3f54150d90f0770c3efe27cd7e131e1a Mon Sep 17 00:00:00 2001
From: Brian Johnson <[email protected]>
Date: Tue, 27 Jan 2009 01:55:06 -0500
Subject: [PATCH] Add gain for ov7660 sensors.

---
 sn9c20x-dev.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sn9c20x-dev.c b/sn9c20x-dev.c
index 2287d4f..9e6d6c2 100644
--- a/sn9c20x-dev.c
+++ b/sn9c20x-dev.c
@@ -172,6 +172,7 @@ int sn9c20x_initialize_sensor(struct usb_sn9c20x *dev)
 		sn9c20x_write_i2c_array(dev, ov7660_init, 0);
 		dev->camera.set_exposure = ov_set_exposure;
 		dev->camera.set_auto_gain = ov_set_autogain;
+		dev->camera.set_gain = ov9650_set_gain;
 		dev->camera.hstart = 1;
 		dev->camera.vstart = 1;
 		UDIA_INFO("Detected OV7660 Sensor.\n");
-- 
1.5.6.3

Reply via email to