From: Jean-Francois Moine <moinejf@free.fr>
To: Luiz Ramos <lramos.prof@yahoo.com.br>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH] Fix wrong register mask in gspca/sonixj.c
Date: Wed, 20 Jul 2011 13:12:12 +0200 [thread overview]
Message-ID: <20110720131212.13a9f8d2@tele> (raw)
In-Reply-To: <1311039554.88024.YahooMailClassic@web121815.mail.ne1.yahoo.com>
On Mon, 18 Jul 2011 18:39:14 -0700 (PDT)
Luiz Ramos <lramos.prof@yahoo.com.br> wrote:
[snip]
> I noticed that in 640x480 the device worked fine, but in 320x240 and
> 160x120 it didn't (I mean: the image is dark). Or'ing reg17 with 0x04
> in line 2535 (as it's currently done for VGA) is sufficient to make
> the webcam work again. The change could be like that:
[snip]
> However, the frame rates get limited to 10 fps. Without that change,
> and in 320x240 and 160x120, they reach 20 fps (of darkness).
>
> I can't see what or'ing that register means, and what's the
> relationship between this and the webcam darkness. It seems that
> these bits control some kind of clock; this can be read in the
> program comments. One other argument in favour of this assumption is
> the fact that the frame rate changes accordingly to the value of
> these bits. But I can't see how this relates to exposure.
>
> For my purposes, I'll stay with that change; it's sufficient for my
> purposes. If you know what I did, please advise me. :-)
Hi Luiz,
You changed the sensor clock from 24MHz to 12MHz.
The clocks of the sensor and the bridge may have different values.
In 640x480, the bridge clock is 48MHz (reg01) and the sensor clock is
12MHz (reg17: clock / 4). Previously, in 320x240, the bridge clock was
48MHz and the sensor clock 24 MHz (reg17: clock / 2).
I think that the sensor clock must stay the same for a same frame rate.
So, what about changing the bridge clock only, i.e. bridge clock 24MHZ
(reg01) and sensor clock 24MHz (reg17: clock / 1)?
That's what I coded in the last gspca test version (2.13.3) which is
available in my web site (see below). May you try it?
Best regards.
--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
next prev parent reply other threads:[~2011-07-20 11:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-15 2:08 [PATCH] Fix wrong register mask in gspca/sonixj.c Luiz Ramos
2011-07-15 7:48 ` Jean-Francois Moine
2011-07-15 9:57 ` Luiz Ramos
2011-07-15 17:44 ` Jean-Francois Moine
2011-07-19 1:39 ` Luiz Ramos
2011-07-20 11:12 ` Jean-Francois Moine [this message]
2011-07-21 10:43 ` Luiz Ramos
2011-07-21 11:27 ` Jean-Francois Moine
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110720131212.13a9f8d2@tele \
--to=moinejf@free.fr \
--cc=linux-media@vger.kernel.org \
--cc=lramos.prof@yahoo.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox