linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@iki.fi>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org, Andy Walls <awalls@md.metrocast.net>,
	Mauro Carvalho Chehab <mchehab@infradead.org>,
	Manjunath Hadli <manjunath.hadli@ti.com>
Subject: Re: [GIT PULL FOR v3.5] Various fixes
Date: Fri, 20 Apr 2012 15:32:28 +0300	[thread overview]
Message-ID: <4F91575C.4070904@iki.fi> (raw)
In-Reply-To: <201204201415.18341.hverkuil@xs4all.nl>

Hi,

Hans Verkuil wrote:
> On Friday, April 20, 2012 13:57:00 Sakari Ailus wrote:
>> Hi Hans,
>>
>> On Thu, Apr 19, 2012 at 05:48:51PM +0200, Hans Verkuil wrote:
>>> While I was cleaning up some older drivers I came across a few bugs that are
>>> fixed here. The fixes are all trivial one-liners.
>>>
>>> Regards,
>>>
>>> 	Hans
>>>
>>> The following changes since commit f4d4e7656b26a6013bc5072c946920d2e2c44e8e:
>>>
>>>    [media] em28xx: Make em28xx-input.c a separate module (2012-04-10 20:45:41 -0300)
>>>
>>> are available in the git repository at:
>>>
>>>    git://linuxtv.org/hverkuil/media_tree.git fixes
>>>
>>> for you to fetch changes up to f85e735051e71410bfd695536a25c1013bceeabc:
>>>
>>>    vivi: fix duplicate line. (2012-04-19 17:38:52 +0200)
>>>
>>> ----------------------------------------------------------------
>>> Hans Verkuil (4):
>>>        V4L: fix incorrect refcounting.
>>>        V4L2: drivers implementing vidioc_default should also return -ENOTTY
>>>        v4l2-ctrls.c: zero min/max/step/def values for 64 bit integers.
>>
>> Thanks for the patches.
>>
>> I'd put the setting of the min/max/step values for 64-bit controls to
>> v4l2_ctrl_new() instead for two reasons:
>>
>> - All 64-bit controls require this for the time being, independent of the
>> purpose, at least until min/max/step are implemented for them and
>>
>> - that's where part of the string control initialisation is done as well.
>>
>> What do you think?
>
> I disagree :-)
>
> v4l2_ctrl_fill is the only function at the moment that fills in these fields.
> Doing it elsewhere just for that type is inconsistent.
>
> Also, v4l2_ctrl_fill is also called by some older drivers that do not use the
> control framework yet, so it really has to be done there.

Ok; after taking another look there I agree with you.

> Another matter is that ivtv-controls.c uses non-zero max and step values for
> these 64 bit controls, that should be fixed as well.

Right. Feel free to add to that patch:

Acked-by: Sakari Ailus <sakari.ailus@iki.fi>

>> I think that in the long run we'll need to add capability to get
>> min/max/step for 64-bit controls also to user space, but the information
>> could be added to the controls in the kernel already earlier.
>
> It wouldn't be difficult to make min/max/def of type s64. At this moment I do
> not see a compelling reason, but if we get more 64-bit integer controls that
> do need this, then we will have to add it.

The controls the SMIA++ driver uses these for are also read-only and so 
set by the driver. Once we get controls that would benefit from 
min/max/step they should be added at the same time.

Regards,

-- 
Sakari Ailus
sakari.ailus@iki.fi

      reply	other threads:[~2012-04-20 12:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-19 15:48 [GIT PULL FOR v3.5] Various fixes Hans Verkuil
2012-04-20  0:07 ` Andy Walls
2012-04-20 11:57 ` Sakari Ailus
2012-04-20 12:15   ` Hans Verkuil
2012-04-20 12:32     ` Sakari Ailus [this message]

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=4F91575C.4070904@iki.fi \
    --to=sakari.ailus@iki.fi \
    --cc=awalls@md.metrocast.net \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=manjunath.hadli@ti.com \
    --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).