From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Michael Riesch <michael.riesch@wolfvision.net>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
libcamera-devel@lists.libcamera.org,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Hans Verkuil <hverkuil-cisco@xs4all.nl>,
Matthias Fend <Matthias.Fend@wolfvision.net>,
Dave Stevenson <dave.stevenson@raspberrypi.com>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC v2 1/6] media: v4l2-ctrls: fix documentation of V4L2_CID_FOCUS_ABSOLUTE unit
Date: Wed, 7 Jun 2023 09:49:44 +0300 [thread overview]
Message-ID: <20230607064944.GA4663@pendragon.ideasonboard.com> (raw)
In-Reply-To: <20230606103421.GA25774@pendragon.ideasonboard.com>
On Tue, Jun 06, 2023 at 01:34:21PM +0300, Laurent Pinchart wrote:
> On Tue, Apr 25, 2023 at 11:45:11AM +0200, Michael Riesch wrote:
> > The current unit description of the V4L2_CID_FOCUS_ABSOLUTE does not
> > make sense and was probably copy-pasted from V4L2_CID_FOCUS_RELATIVE.
> > Fix the unit description in the documentation.
> >
> > Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
> > ---
> > Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst
> > index daa4f40869f8..df29150dce7b 100644
> > --- a/Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst
> > +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-camera.rst
> > @@ -140,8 +140,8 @@ enum v4l2_exposure_metering -
> >
> > ``V4L2_CID_FOCUS_ABSOLUTE (integer)``
> > This control sets the focal point of the camera to the specified
> > - position. The unit is undefined. Positive values set the focus
> > - closer to the camera, negative values towards infinity.
> > + position. The unit is undefined. Larger values move the focus closer to
> > + the camera, smaller values move the focus to infinity.
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
I just noticed that the UVC specification states
4.2.2.1.6 Focus (Absolute) Control
The Focus (Absolute) Control is used to specify the distance to the
optimally focused target. This value is expressed in millimeters. The
default value is implementation-specific.
This is the opposite of the V4L2_CID_FOCUS_ABSOLUTE control :-( I
suppose this will need to be solved in the uvcvideo driver by converting
the value.
> >
> > ``V4L2_CID_FOCUS_RELATIVE (integer)``
> > This control moves the focal point of the camera by the specified
> >
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2023-06-07 6:50 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-25 9:45 [PATCH RFC v2 0/6] media: v4l2-ctrls: add controls for complex lens controller devices Michael Riesch
2023-04-25 9:45 ` [PATCH RFC v2 1/6] media: v4l2-ctrls: fix documentation of V4L2_CID_FOCUS_ABSOLUTE unit Michael Riesch
2023-06-06 10:31 ` Hans Verkuil
2023-06-06 10:34 ` Laurent Pinchart
2023-06-07 6:49 ` Laurent Pinchart [this message]
2023-04-25 9:45 ` [PATCH RFC v2 2/6] media: v4l2-ctrls: clarify documentation of V4L2_CID_FOCUS_RELATIVE Michael Riesch
2023-06-06 10:36 ` Laurent Pinchart
2023-06-06 13:15 ` Michael Riesch
2023-06-07 6:42 ` Laurent Pinchart
2023-06-07 6:55 ` Laurent Pinchart
2023-06-08 13:41 ` Sakari Ailus
2023-04-25 9:45 ` [PATCH RFC v2 3/6] media: v4l2-ctrls: add lens group status controls for zoom and focus Michael Riesch
2023-06-06 10:20 ` Hans Verkuil
2023-06-07 7:03 ` Laurent Pinchart
2023-06-13 7:36 ` Michael Riesch
2023-04-25 9:45 ` [PATCH RFC v2 4/6] media: v4l2-ctrls: add lens group speed " Michael Riesch
2023-06-07 7:07 ` Laurent Pinchart
2023-06-13 7:49 ` Michael Riesch
2023-04-25 9:45 ` [PATCH RFC v2 5/6] media: v4l2-ctrls: add lens calibration controls Michael Riesch
2023-06-06 10:25 ` Hans Verkuil
2023-06-06 10:57 ` Dave Stevenson
2023-06-07 7:10 ` Laurent Pinchart
2023-04-25 9:45 ` [PATCH RFC v2 6/6] media: v4l2-ctrls: add controls for individual zoom lenses Michael Riesch
2023-06-06 10:29 ` Hans Verkuil
2023-06-13 9:19 ` Michael Riesch
2023-05-16 19:34 ` [PATCH RFC v2 0/6] media: v4l2-ctrls: add controls for complex lens controller devices Kieran Bingham
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=20230607064944.GA4663@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=Matthias.Fend@wolfvision.net \
--cc=dave.stevenson@raspberrypi.com \
--cc=hverkuil-cisco@xs4all.nl \
--cc=libcamera-devel@lists.libcamera.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=michael.riesch@wolfvision.net \
--cc=sakari.ailus@linux.intel.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