Web lists-archives.com

Re: [Spca50x-devs] PATCH: gspca-mercurial OV7630 control settings




Andoni Zubimendi wrote:
> Hi!
> 
> With this patch, almost all the controls for my webcam (OV7630) works. The
> control that works are brightness, exposure and gain (based on Hans
> patches).
> 
> The auto gain control doesn't work, I don't know why, because it should be
> working.

I think I do know why, according to Documentation/video4linux/sn9c102.txt the 
place in the header for the measured avarage luminance is different for the 
sn9c103, instead of byte 8 and 9 it is byte 9 and 10, so if you change the 
following in sd_pkt_scan():
                               if (i < (len - 10)) {
                                        atomic_set(&sd->avg_lum, data[i + 8] +
                                                        (data[i + 9] << 8));
into:
                               if (sd->fr_h_sz == 12 && i < (len - 10)) {
                                       atomic_set(&sd->avg_lum, data[i + 8] +
                                                       (data[i + 9] << 8));
                               } else if (sd->fr_h_sz == 18 && i < (len - 11)) {
                                       atomic_set(&sd->avg_lum, data[i + 9] +
                                                       (data[i + 10] << 8));

You should get better results. Also I believe, reading the datasheets of the 
ov6645 (closed datasheet I can find to the ov6650) ans that of the ov7630, that 
reg10max for the ov7630 should be 41.

Regards,

Hans

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs