public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <snjw23@gmail.com>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>,
	linux-media@vger.kernel.org,
	Hans Verkuil <hans.verkuil@cisco.com>,
	Mauro Carvalho Chehab <mchehab@redhat.com>
Subject: Re: [PATCH 08/13 v3] ov6650: convert to the control framework.
Date: Fri, 09 Sep 2011 20:23:38 +0200	[thread overview]
Message-ID: <4E6A59AA.3060703@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1109091947540.915@axis700.grange>

Hi,

On 09/09/2011 08:01 PM, Guennadi Liakhovetski wrote:
> Hi Janusz
> 
> On Fri, 9 Sep 2011, Janusz Krzysztofik wrote:
> 
>> On Thu, 8 Sep 2011 at 10:44:01 Guennadi Liakhovetski wrote:
>>> From: Hans Verkuil<hans.verkuil@cisco.com>
>>>
>>> Signed-off-by: Hans Verkuil<hans.verkuil@cisco.com>
>>> [g.liakhovetski@gmx.de: simplified pointer arithmetic]
>>> Signed-off-by: Guennadi Liakhovetski<g.liakhovetski@gmx.de>
>>
>> Hi,
>> I've successfully tested this one for you, to the extent possible using
>> mplayer, i.e., only saturation, hue and brightness controls, and an
>> overall functionality.
> 
> Thanks for testing and reviewing!
> 
>> Modifications to other (not runtime tested) controls look good to me,
>> except for one copy-paste mistake, see below. With that erratic REG_BLUE
>> corrected:
>>
>> Acked-by: Janusz Krzysztofik<jkrzyszt@tis.icnet.pl>
>>
>> There are also a few minor comments for you to consider.
> 
> Well, some of them are not so minor, I would say;-) But I personally would
> be happy to have this just as an incremental patch. Would you like to
> prepare one or should I do it?
> 
> I basically agree with all your comments apart from maybe
> 
> [snip]
> 
>>> @@ -1176,9 +1021,11 @@ static int ov6650_probe(struct i2c_client *client,
>>>   	priv->colorspace  = V4L2_COLORSPACE_JPEG;
>>>
>>>   	ret = ov6650_video_probe(icd, client);
>>> +	if (!ret)
>>> +		ret = v4l2_ctrl_handler_setup(&priv->hdl);
>>
>> Are you sure the probe function should fail if v4l2_ctrl_handler_setup()
>> fails? Its usage is documented as optional.
> 
> Not sure what the standard really meant, but it looks like this is done in
> all patches in this series. So, we'd have to change this everywhere. Most
> other drivers indeed do not care.

The usage of v4l2_ctrl_handler_setup() is optional, but if this function
is not used, then AFAIU the driver writer needs to ensure the control's 
values after the device is initialized are exactly as those specified during
the control creation. Of course v4l2_ctrl_handler_setup() failure might
mean s_ctrl op failed, which might be caused by some H/W access errors.
So IMHO it is always a good idea to check the return value if we know
the batch controls setup shouldn't fail.

--
Regards,
Sylwester

  reply	other threads:[~2011-09-09 18:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08  8:43 [PATCH/RFC 00/13 v3] Converting soc_camera to the control framework Guennadi Liakhovetski
2011-09-08  8:43 ` [PATCH 01/13 v3] soc_camera: add control handler support Guennadi Liakhovetski
2011-09-08  8:43 ` [PATCH 02/13 v3] sh_mobile_ceu_camera: implement the control handler Guennadi Liakhovetski
2011-09-08  8:43 ` [PATCH 03/13 v3] ov9640: convert to the control framework Guennadi Liakhovetski
2011-09-08  8:43 ` [PATCH 04/13 v3] ov772x: " Guennadi Liakhovetski
2011-09-08  8:43 ` [PATCH 05/13 v3] rj54n1cb0c: " Guennadi Liakhovetski
2011-09-08  8:43 ` [PATCH 06/13 v3] mt9v022: " Guennadi Liakhovetski
2011-09-08  8:44 ` [PATCH 07/13 v3] ov2640: " Guennadi Liakhovetski
2011-09-08  8:44 ` [PATCH 08/13 v3] ov6650: " Guennadi Liakhovetski
2011-09-09 17:07   ` Janusz Krzysztofik
2011-09-09 18:01     ` Guennadi Liakhovetski
2011-09-09 18:23       ` Sylwester Nawrocki [this message]
2011-09-09 20:58         ` Janusz Krzysztofik
2011-09-10 10:30           ` Guennadi Liakhovetski
2011-09-10 11:14           ` Sylwester Nawrocki
2011-09-09 20:39       ` Janusz Krzysztofik
2011-09-09 21:00         ` Guennadi Liakhovetski
2011-09-08  8:44 ` [PATCH 09/13 v3] ov9740: " Guennadi Liakhovetski
2011-09-08  8:44 ` [PATCH 10/13 v3] mt9m001: " Guennadi Liakhovetski
2011-09-08  8:44 ` [PATCH 11/13 v3] mt9m111: " Guennadi Liakhovetski
2011-09-08  8:44 ` [PATCH 12/13 v3] mt9t031: " Guennadi Liakhovetski
2011-09-08  8:44 ` [PATCH 13/13 v3] soc_camera: remove the now obsolete struct soc_camera_ops Guennadi Liakhovetski

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=4E6A59AA.3060703@gmail.com \
    --to=snjw23@gmail.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=hans.verkuil@cisco.com \
    --cc=jkrzyszt@tis.icnet.pl \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@redhat.com \
    /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