From: Hans de Goede <hdegoede@redhat.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org
Subject: Re: [RFC PATCH 2/3] v4l2-ctrls: add v4l2_ctrl_auto_cluster to simplify autogain/gain scenarios
Date: Tue, 25 Jan 2011 21:36:59 +0100 [thread overview]
Message-ID: <4D3F346B.9000102@redhat.com> (raw)
In-Reply-To: <201101231713.33776.hverkuil@xs4all.nl>
Hi,
On 01/23/2011 05:13 PM, Hans Verkuil wrote:
> On Sunday, January 23, 2011 16:15:03 Hans de Goede wrote:
<snip>
>> This is what the UVC spec for example mandates and what the current UVC driver
>> does. Combining this with an app which honors the update and the read only
>> flag (try gtk-v4l), results in a nice experience. User enables auto exposure
>> -> exposure control gets grayed out, put exposure back manual -> control
>> is ungrayed.
>>
>> So this new auto_cluster behavior would be a behavioral change (for both the
>> uvc driver and several gspca drivers), and more over an unwanted one IMHO
>> setting one control should not change another as a side effect.
>
> Actually, I've been converting a whole list of subdev drivers recently (soc_camera,
> ov7670) and they all behaved like this. So I didn't change anything.
Hmm, interesting.
> There is nothing preventing other drivers from doing something different.
>
> That said, changing the behavior to your proposal may not be such a bad idea.
Yes and AFAIK this is what we agreed on when we discussed auto control a
couple of months ago.
> But then I need the OK from all driver authors involved, since this would
> mean a change of behavior for them.
>
> The good news is that once they use the new framework function I only need
> to change what that function does and I don't need to change any of those
> drivers.
>
> So I will proceed for now by converting those drivers to use this new function,
> and at the same time I can contact the authors and ask what their opinion is
> of this change. I'm hoping for more feedback as well from what others think.
>
Yes, contacting the authors to discuss this further sounds like a good idea.
> BTW, if I understand the gspca code correctly then it seems that if an e.g.
> autogain control is set to 1, then the gain control effectively disappears.
> I think queryctrl will just never return it. That can't be right.
Erm, it should not disappear, but just get disabled. But this may have
(accidentally) changed with the drivers which were converted to the new
control framework. Anyways, we should discuss this with involved driver
authors and agree on a standard way to handle this. Once we have agreement
on how to handle this converting the drivers should be relatively easy.
Regards,
Hans
next prev parent reply other threads:[~2011-01-25 20:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-22 11:05 [RFC PATCH 0/3] v4l2-ctrls: add new functionality Hans Verkuil
2011-01-22 11:05 ` [RFC PATCH 1/3] v4l2-ctrls: must be able to enable/disable controls Hans Verkuil
2011-01-22 11:06 ` [RFC PATCH 2/3] v4l2-ctrls: add v4l2_ctrl_auto_cluster to simplify autogain/gain scenarios Hans Verkuil
2011-01-23 15:15 ` Hans de Goede
2011-01-23 16:13 ` Hans Verkuil
2011-01-25 20:36 ` Hans de Goede [this message]
2011-01-25 20:53 ` Hans Verkuil
2011-01-22 11:06 ` [RFC PATCH 3/3] v4l2-ctrls: update control framework documentation Hans Verkuil
2011-01-23 11:08 ` Sylwester Nawrocki
2011-01-23 14:53 ` Kim HeungJun
2011-01-22 16:11 ` [RFC PATCH 1/3] v4l2-ctrls: must be able to enable/disable controls Andy Walls
2011-01-22 17:12 ` Hans Verkuil
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=4D3F346B.9000102@redhat.com \
--to=hdegoede@redhat.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.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