dmesg says

sn9c20x: SN9C20X USB 2.0 Webcam - 0C45:6270 plugged-in.
sn9c20x: Detected MT9V011 Sensor.

So the sensor is MT9V011. in that case sn9c20x_initialize_sensor is as
follows
    case MT9V011_SENSOR:
        sn9c20x_write_i2c_array(dev, mt9v011_init, 1);
        dev->camera.set_hvflip = mt9v011_set_hvflip;
        dev->camera.set_exposure = mt9v011_set_exposure;
        dev->camera.hstart = 2;
        dev->camera.vstart = 2;
        UDIA_INFO("Detected MT9V011 Sensor.\n");
        break;

So there is no autoexposure callback.
Still v4l2ucp offers this option(turning it of stops the oscillations but
it's not very useful) so I guess it goes for the defaut in-driver
autoexposure. Is there any use tinkering with that?

And still the contrast and brightness bars in v4l2ucp do nothing - that is
not an issue as I don't have need to change them but if they should work why
they do not.

2009/3/7 Brian Johnson <[email protected]>

>
> Contrast and brightness should work on all the cameras since they are
> controlled by the bridge which is the same for all cameras. Gain is
> only implemented for the Omnivision based sensors and your camera has
> a micron sensor so no that won't work. You can find out what sensor
> you have by typing dmesg right after you insert the driver module.
> There should be a line thats says something like "sn9c20x: Detected
> <name> Sensor"
>
> You probably have a mt9v111 but your camera could be any one of three
> different sensors.
> In regards to auto-exposure you could try siwthving your sensor to
> have the driver calculate
> the exposure settings based on the bridges AE window instead of
> letting the sensor do it and
> see if those results are any better. Do try that you need to edit
> sn9c20x-dev.c file and in the sn9c20x_initialize_sensor function find
> your sensor and remove the line that sets the autpexposure
> callback.
>
>
> On Sat, Mar 7, 2009 at 12:41 PM, Stefan Krastanov
> <[email protected]> wrote:
> > Hello again
> >
> > Few minutes with the documentation of your project showed me that I am
> lucky
> > and have one of the best supported cams. I played a bit with v4l2ucp and
> if
> > I switch off AE all works great - still I like the functionality of AE
> and
> > don't want to switch it of because of problem showing in only 10% of the
> > time. Also the brightness and contrast bars don't seem to change anything
> > nor the AWB seems to work - as I don't know the sensor chip I am not sure
> if
> > this is to be expected. And I get a warning "Invalid argument" when
> changing
> > the gain but as I don't know what it's for I don't care much.
> > I do not want to sound unthankfull - your work is great - but still, if
> > there is a way to make it better I would be happy to help (and have a
> better
> > AE,).
> >
> > Stefan Krastanov
> >
> > 2009/3/7 [email protected] <[email protected]>
> >>
> >> Hi all,
> >>
> >> After I installed your driver my cam works great but there is one
> >> annoyance that plagues the good experience. On mixed light or too high
> >> illumination the exposure starts changing from too bright to too dark
> >> few times per second. As I am not acquainted with the inner-workings
> >> of the driver I am not sure if this is some correction done in the
> >> chip or something done in the driver. If it's the later I am willing
> >> to pursue the mater my self, but I hope you can direct me to good
> >> documentation on the subject as I am little short on time and can not
> >> spend the effort to learn the whole architecture of the driver. As I
> >> am may be from a different background I am also not really acquainted
> >> with the git system, but I hope my coding skills will be enough (all
> >> this if the exposure correction is done in the driver and there is
> >> something to be done).
> >>
> >> Best regards
> >> Stefan Krastanov
> >>
> >> PS: my camera is  as reported by lsusb  0c45:6270 Microdia U-CAM PC
> >> Camera NE878
> >
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to