From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Jacopo Mondi <jacopo@jmondi.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Hans Verkuil <hverkuil-cisco@xs4all.nl>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
tfiga@google.com,
"open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB)"
<linux-media@vger.kernel.org>
Subject: Re: [PATCH v2 05/10] media: v4l2-ctrl: Add V4L2_CID_CAMERA_SENSOR_ROTATION
Date: Tue, 27 Aug 2019 16:07:10 +0300 [thread overview]
Message-ID: <20190827130710.GW5054@pendragon.ideasonboard.com> (raw)
In-Reply-To: <20190827092339.8858-7-jacopo@jmondi.org>
Hi Jacopo,
Thank you for the patch.
On Tue, Aug 27, 2019 at 11:23:32AM +0200, Jacopo Mondi wrote:
> Add support for the newly defined V4L2_CID_CAMERA_SENSOR_ROTATION
> read-only control used to report the camera device mounting rotation.
>
> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
(although I would squash it with the previous patch)
> ---
> drivers/media/v4l2-core/v4l2-ctrls.c | 2 ++
> include/uapi/linux/v4l2-controls.h | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c
> index db7124494530..b7af47a25125 100644
> --- a/drivers/media/v4l2-core/v4l2-ctrls.c
> +++ b/drivers/media/v4l2-core/v4l2-ctrls.c
> @@ -995,6 +995,7 @@ const char *v4l2_ctrl_get_name(u32 id)
> case V4L2_CID_PAN_SPEED: return "Pan, Speed";
> case V4L2_CID_TILT_SPEED: return "Tilt, Speed";
> case V4L2_CID_CAMERA_SENSOR_LOCATION: return "Camera Sensor Location";
> + case V4L2_CID_CAMERA_SENSOR_ROTATION: return "Camera Sensor Rotation";
>
> /* FM Radio Modulator controls */
> /* Keep the order of the 'case's the same as in v4l2-controls.h! */
> @@ -1320,6 +1321,7 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type,
> case V4L2_CID_MIN_BUFFERS_FOR_CAPTURE:
> case V4L2_CID_MIN_BUFFERS_FOR_OUTPUT:
> case V4L2_CID_CAMERA_SENSOR_LOCATION:
> + case V4L2_CID_CAMERA_SENSOR_ROTATION:
> *type = V4L2_CTRL_TYPE_INTEGER;
> *flags |= V4L2_CTRL_FLAG_READ_ONLY;
> break;
> diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h
> index 387c2c8553cb..f2be7a99818e 100644
> --- a/include/uapi/linux/v4l2-controls.h
> +++ b/include/uapi/linux/v4l2-controls.h
> @@ -917,6 +917,8 @@ enum v4l2_auto_focus_range {
> #define V4L2_LOCATION_BACK 1
> #define V4L2_LOCATION_EXTERNAL 2
>
> +#define V4L2_CID_CAMERA_SENSOR_ROTATION (V4L2_CID_CAMERA_CLASS_BASE+35)
> +
> /* FM Modulator class control IDs */
>
> #define V4L2_CID_FM_TX_CLASS_BASE (V4L2_CTRL_CLASS_FM_TX | 0x900)
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2019-08-27 13:07 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-27 9:23 [PATCH v2 00/10] media: Report camera sensor properties Jacopo Mondi
2019-08-27 9:23 ` [PATCH v2 01/10] media: dt-bindings: Document 'location' property Jacopo Mondi
2019-08-27 12:21 ` Laurent Pinchart
2019-08-29 12:46 ` Jacopo Mondi
2019-09-02 13:38 ` Rob Herring
2019-09-02 16:40 ` Jacopo Mondi
2019-09-02 16:49 ` Laurent Pinchart
2019-09-02 19:48 ` Jacopo Mondi
2019-09-03 13:22 ` Laurent Pinchart
2019-09-12 12:51 ` Mauro Carvalho Chehab
2019-09-12 16:36 ` Jacopo Mondi
2019-08-27 9:23 ` [PATCH v2 02/10] media: v4l2-ctrl: Document V4L2_CID_CAMERA_SENSOR_LOCATION Jacopo Mondi
2019-08-27 12:50 ` Laurent Pinchart
2019-08-29 12:47 ` Jacopo Mondi
2019-08-27 9:23 ` [PATCH v2 03/10] media: v4l2-ctrl: Document V4L2_CID_CAMERA_SENSOR_ROTATION Jacopo Mondi
2019-08-27 12:51 ` Laurent Pinchart
2019-09-02 11:20 ` Jacopo Mondi
2019-09-02 16:43 ` Laurent Pinchart
2019-09-03 4:16 ` Tomasz Figa
2019-09-03 13:17 ` Laurent Pinchart
2019-09-03 15:22 ` Jacopo Mondi
2019-08-27 9:23 ` [PATCH v2 04/10] media: v4l2-ctrl: Add V4L2_CID_CAMERA_SENSOR_LOCATION Jacopo Mondi
2019-08-27 12:53 ` Laurent Pinchart
2019-08-27 9:23 ` [PATCH v2 04/10] media: v4l2-ctrls: " Jacopo Mondi
2019-08-27 9:36 ` Jacopo Mondi
2019-08-27 9:23 ` [PATCH v2 05/10] media: v4l2-ctrl: Add V4L2_CID_CAMERA_SENSOR_ROTATION Jacopo Mondi
2019-08-27 13:07 ` Laurent Pinchart [this message]
2019-08-27 9:23 ` [PATCH v2 05/10] media: v4l2-ctrls: " Jacopo Mondi
2019-08-27 9:36 ` Jacopo Mondi
2019-08-27 9:23 ` [PATCH v2 06/10] media: v4l2-fwnode: Add helper to register controls from fw Jacopo Mondi
2019-08-27 13:16 ` Laurent Pinchart
2019-08-29 12:55 ` Jacopo Mondi
2019-08-29 10:31 ` Hans Verkuil
2019-08-29 12:45 ` Jacopo Mondi
2019-08-29 13:04 ` Hans Verkuil
2019-08-29 15:05 ` Laurent Pinchart
2019-08-29 15:32 ` Hans Verkuil
2019-09-02 9:39 ` Jacopo Mondi
2019-09-02 9:46 ` Laurent Pinchart
2019-08-27 9:23 ` [PATCH v2 07/10] media: i2c: ov5670: Register controls from firmware Jacopo Mondi
2019-08-27 9:23 ` [PATCH v2 08/10] media: i2c: ov13858: " Jacopo Mondi
2019-08-27 9:23 ` [PATCH v2 09/10] media: i2c: ov5670: Report native size and crop bounds Jacopo Mondi
2019-08-29 10:20 ` Hans Verkuil
2019-08-29 12:40 ` Jacopo Mondi
2019-08-29 12:55 ` Hans Verkuil
2019-08-29 13:18 ` Jacopo Mondi
2019-08-29 13:39 ` Hans Verkuil
2019-08-29 16:43 ` Jacopo Mondi
2019-09-02 10:05 ` Laurent Pinchart
2019-09-03 13:06 ` Sakari Ailus
2019-09-03 16:49 ` Jacopo Mondi
2019-09-26 8:11 ` Hans Verkuil
2019-09-26 18:56 ` Jacopo Mondi
2019-10-07 14:23 ` Tomasz Figa
2019-08-27 9:23 ` [PATCH v2 10/10] media: i2c: ov13858: " Jacopo Mondi
2019-08-27 9:23 ` [DO NOT MERGE] mb/google/poppy/variant/soraka: Add camera properties Jacopo Mondi
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=20190827130710.GW5054@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=hverkuil-cisco@xs4all.nl \
--cc=jacopo@jmondi.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=tfiga@google.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