public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: "Rémi Denis-Courmont" <remi@remlab.net>
Cc: Sylwester Nawrocki <snjw23@gmail.com>,
	linux-media <linux-media@vger.kernel.org>,
	Hans Verkuil <hverkuil@xs4all.nl>,
	Sakari Ailus <sakari.ailus@iki.fi>
Subject: Re: [Query] V4L2 Integer (?) menu control
Date: Thu, 24 Nov 2011 10:17:29 +0100	[thread overview]
Message-ID: <4ECE0BA9.90207@samsung.com> (raw)
In-Reply-To: <0acb6fa3fc87692f1f8ac7f1a908e1e7@chewa.net>

On 11/24/2011 07:24 AM, Rémi Denis-Courmont wrote:
> On Wed, 23 Nov 2011 23:26:22 +0100, Sylwester Nawrocki <snjw23@gmail.com>
> wrote:
>> I don't seem to find a way to implement this in current v4l2 control
>> framework.  Such functionality isn't there, or is it ?
> 
> You can use the menu control type, but you will need to remap the control
> values so they are continuous.

Yes, but what I'm missing is a method for the drivers to inform the application
how the mapping looks like. Something like custom queryctrl for standard control CID.

So for instance if we have a standard control V4L2_CID_CAMERA_ISO, two devices could
support different series of values, e.g.

50, 200, 400, 800, ..
100, 180, 300, 600, ...

Currently the menu items are hard coded in the kernel for standard controls,
and AFAIU we can only query the control names.

In fact the continuous enumeration in the driver might do, which would be then
mapped to register values. But the meaning of this values need to be made known
to the applications.

--
Thanks,
Sylwester

  reply	other threads:[~2011-11-24  9:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23 22:26 [Query] V4L2 Integer (?) menu control Sylwester Nawrocki
2011-11-24  6:24 ` Rémi Denis-Courmont
2011-11-24  9:17   ` Sylwester Nawrocki [this message]
2011-11-24  8:47 ` Hans Verkuil
2011-11-24  8:50 ` Sakari Ailus
2011-11-24  9:34   ` Sylwester Nawrocki
2011-11-24 20:57     ` Sakari Ailus
2011-11-24 23:53       ` Sylwester Nawrocki
2011-11-26  9:36         ` Sakari Ailus
2011-11-26 19:27           ` Sylwester Nawrocki
2011-12-12 21:08             ` Sakari Ailus

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=4ECE0BA9.90207@samsung.com \
    --to=s.nawrocki@samsung.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=remi@remlab.net \
    --cc=sakari.ailus@iki.fi \
    --cc=snjw23@gmail.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