linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Anatolij Gustschin <agust@denx.de>,
	linux-media@vger.kernel.org,
	Mauro Carvalho Chehab <mchehab@infradead.org>
Subject: Re: [PATCH 1/3] mt9v022: add v4l2 controls for blanking and other register settings
Date: Fri, 24 Aug 2012 17:44:08 +0200	[thread overview]
Message-ID: <m2fw7c47nb.fsf@lamuella.denx.de> (raw)
In-Reply-To: <Pine.LNX.4.64.1208241527370.20710@axis700.grange> (Guennadi Liakhovetski's message of "Fri, 24 Aug 2012 15:35:59 +0200 (CEST)")

Hi Guennadi,

> Hi Detlev
>
> On Fri, 24 Aug 2012, Detlev Zundel wrote:
>
>> Hello Guennadi,
>> 
>> > Hi Anatolij
>> >
>> > On Fri, 24 Aug 2012, Anatolij Gustschin wrote:
>> >
>> >> Add controls for horizontal and vertical blanking, analog control
>> >> and control for undocumented register 32.
>> >
>> > Sorry, I don't think this is a good idea to export an undocumented 
>> > register as a control.
>> 
>> Why exactly is that?  Even though it is not documented, we need to
>> fiddle with it to make our application work at all.  So we tend to
>> believe that other users of the chip will want to use it also.
>
> Below I asked to provide details about how you have to change this 
> register value: toggle dynamically at run-time or just set once at 
> initialisation? Even if toggle: are this certain moments, related to 
> standard camera activities (e.g., starting and stopping streaming, 
> changing geometry etc.) or you have to set this absolutely asynchronously 
> at moments of time, that only your application knows about?

Anatolij can answer those detail questions, all I know is that without
fiddling with the register we do not receive valid pictures at all.

>> Furthermore I don't see that we fundamentally reject patches for other
>> parts in the Linux kernel where people found out things not in the
>> official datasheets.
>
> The problem is not, that this register is undocumented, the problem rather 
> is, that IMHO exporting an API to user-space, setting an undocumented 
> register to arbitrary values is, hm, at least pretty dubious.

As I wrote above, without fiddling with the register, we do _not_
receive correct pictures at all.  So this is not dubious but shown by
experiment to be needed (at least in our setup).

Best wishes
  Detlev

-- 
A language that doesn't affect the way you think about programming, is
not worth knowing.             -- Alan Perlis, Epigrams on Programming

  reply	other threads:[~2012-08-24 15:44 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-24  9:10 [PATCH 0/3] various updates for mt9v022 driver Anatolij Gustschin
2012-08-24  9:10 ` [PATCH 1/3] mt9v022: add v4l2 controls for blanking and other register settings Anatolij Gustschin
2012-08-24 11:08   ` Guennadi Liakhovetski
2012-08-24 13:04     ` Detlev Zundel
2012-08-24 13:35       ` Guennadi Liakhovetski
2012-08-24 15:44         ` Detlev Zundel [this message]
2012-08-24 16:21         ` Anatolij Gustschin
2012-08-24 21:23           ` Guennadi Liakhovetski
2012-08-28 13:43             ` Anatolij Gustschin
2012-09-11  8:24               ` Guennadi Liakhovetski
2012-09-27 21:10                 ` Anatolij Gustschin
2012-08-24 13:28     ` Anatolij Gustschin
2012-09-27 22:03   ` [PATCH v2 1/3] mt9v022: add v4l2 controls for blanking Anatolij Gustschin
2012-10-06 11:00     ` Anatolij Gustschin
2012-10-09 10:32       ` Guennadi Liakhovetski
2012-08-24  9:10 ` [PATCH 2/3] mt9v022: fix the V4L2_CID_EXPOSURE control Anatolij Gustschin
2012-08-24 11:22   ` Guennadi Liakhovetski
2012-08-24 14:17     ` Anatolij Gustschin
2012-08-24 14:32       ` Guennadi Liakhovetski
2012-09-21  9:30         ` Anatolij Gustschin
2012-09-27 22:04   ` [PATCH v2 " Anatolij Gustschin
2012-08-24  9:10 ` [PATCH 3/3] mt9v022: set y_skip_top field to zero Anatolij Gustschin
2012-08-24 11:23   ` Guennadi Liakhovetski
2012-08-24 13:34     ` Anatolij Gustschin
2012-09-11  8:55       ` Guennadi Liakhovetski
2012-09-21  9:28         ` Anatolij Gustschin
2012-09-27 22:05   ` [PATCH v2 3/3] mt9v022: set y_skip_top field to zero as default Anatolij Gustschin
     [not found]     ` <Pine.LNX.4.64.1209281413220.5428@axis700.grange>
     [not found]       ` <Pine.LNX.4.64.1209281420420.5428@axis700.grange>
2012-09-29  2:21         ` Eric Miao

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=m2fw7c47nb.fsf@lamuella.denx.de \
    --to=dzu@denx.de \
    --cc=agust@denx.de \
    --cc=g.liakhovetski@gmx.de \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).