From: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
To: Volodymyr Kharuk <vkh@melexis.com>, <linux-media@vger.kernel.org>
Cc: Andrii Kyselov <ays@melexis.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
<devicetree@vger.kernel.org>,
Hans Verkuil <hverkuil-cisco@xs4all.nl>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Dave Stevenson <dave.stevenson@raspberrypi.com>
Subject: Re: [PATCH v6 01/10] media: uapi: ctrls: Add camera trigger controls
Date: Mon, 20 May 2024 11:19:39 +0200 [thread overview]
Message-ID: <c717987e-a5cd-4dae-bec7-9b946ee10b1e@foss.st.com> (raw)
In-Reply-To: <de44db636f0e3f5bea2357aa6a34531fe0c34f08.1715871189.git.vkh@melexis.com>
Hi Volodymyr,
Thank you for your patch.
On 5/16/24 18:41, Volodymyr Kharuk wrote:
> Add V4L2_CID_CAMERA_TRIGGER_MODE as a menu item control to set
> trigger mode. Also proposed some standard modes.
> Another item is V4L2_CID_CAMERA_TRIGGER as a button to send
> trigger in V4L2_TRIGGER_MODE_INTERNAL mode.
>
> Signed-off-by: Volodymyr Kharuk <vkh@melexis.com>
This is very interesting.
As I understand this control allows to change what triggers sensor
acquisition.
May I ask what the different modes do ?
We had a discussion previously with Laurent, Sakari and Dave (adding him
as cc btw) about a "slave mode" control [1] for the vgxy61, is it
something similar to the trigger mode ?
[1]
https://lore.kernel.org/linux-media/c610a2c9-31b1-1950-00fa-a6b3fd3517a1@foss.st.com/
> ---
> include/uapi/linux/v4l2-controls.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h
> index 99c3f5e99da7..7901f40a1bd8 100644
> --- a/include/uapi/linux/v4l2-controls.h
> +++ b/include/uapi/linux/v4l2-controls.h
> @@ -1087,6 +1087,14 @@ enum v4l2_auto_focus_range {
>
> #define V4L2_CID_HDR_SENSOR_MODE (V4L2_CID_CAMERA_CLASS_BASE+36)
>
> +#define V4L2_CID_CAMERA_TRIGGER (V4L2_CID_CAMERA_CLASS_BASE + 37)
> +#define V4L2_CID_CAMERA_TRIGGER_MODE (V4L2_CID_CAMERA_CLASS_BASE + 38)
> +enum v4l2_trigger_mode {
> + V4L2_TRIGGER_MODE_CONTINUOUS = 0,
> + V4L2_TRIGGER_MODE_INTERNAL = 1,
> + V4L2_TRIGGER_MODE_EXTERNAL = 2,
> +};
> +
> /* FM Modulator class control IDs */
>
> #define V4L2_CID_FM_TX_CLASS_BASE (V4L2_CTRL_CLASS_FM_TX | 0x900)
--
Regards,
Benjamin
next prev parent reply other threads:[~2024-05-20 9:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-16 16:41 [PATCH v6 00/10] media: i2c: mlx7502x ToF camera support Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 01/10] media: uapi: ctrls: Add camera trigger controls Volodymyr Kharuk
2024-05-20 9:19 ` Benjamin Mugnier [this message]
2024-05-20 9:45 ` Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 02/10] media: v4l: " Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 03/10] media: uapi: ctrls: Add Time of Flight class controls Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 04/10] media: v4l: ctrls: Fill V4L2_CID_TOF_CLASS controls Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 05/10] media: Documentation: v4l: Add TOF class controls Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 06/10] media: v4l: ctrls-api: Allow array update in __v4l2_ctrl_modify_range Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 07/10] media: v4l: ctrls: Add user control base for mlx7502x Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 08/10] media: uapi: Add mlx7502x header file Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 09/10] media: dt-bindings: Add mlx7502x camera sensor Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 10/10] media: i2c: Add driver for mlx7502x ToF sensor Volodymyr Kharuk
2024-05-18 3:52 ` kernel test robot
2024-05-23 13:14 ` Dan Carpenter
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=c717987e-a5cd-4dae-bec7-9b946ee10b1e@foss.st.com \
--to=benjamin.mugnier@foss.st.com \
--cc=ays@melexis.com \
--cc=dave.stevenson@raspberrypi.com \
--cc=devicetree@vger.kernel.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh+dt@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=vkh@melexis.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;
as well as URLs for NNTP newsgroup(s).