From: Hans Verkuil <hverkuil@xs4all.nl>
To: Richard Leitner <richard.leitner@linux.dev>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>,
Dave Stevenson <dave.stevenson@raspberrypi.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Lee Jones <lee@kernel.org>, Pavel Machek <pavel@kernel.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-leds@vger.kernel.org
Subject: Re: [PATCH v2 4/8] Documentation: uAPI: media: add V4L2_CID_FLASH_DURATION
Date: Fri, 14 Mar 2025 11:36:12 +0100 [thread overview]
Message-ID: <0fd2cbfa-8804-456f-891d-ecd06e828bc6@xs4all.nl> (raw)
In-Reply-To: <4w7s6g32rol2ptkchczhyhgvytyeq6baqvz4h7ikurzg2tygnr@a3q7cgeagzk4>
On 14/03/2025 11:28, Richard Leitner wrote:
> Hi Hans,
>
> thanks for your quick feedback!
>
> On Fri, Mar 14, 2025 at 10:41:04AM +0100, Hans Verkuil wrote:
>> On 14/03/2025 09:49, Richard Leitner wrote:
>>> Add the new strobe_duration control to v4l uAPI documentation.
>>>
>>> Signed-off-by: Richard Leitner <richard.leitner@linux.dev>
>>> ---
>>> Documentation/userspace-api/media/v4l/ext-ctrls-flash.rst | 5 +++++
>>> 1 file changed, 5 insertions(+)
>>>
>>> diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-flash.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-flash.rst
>>> index d22c5efb806a183a3ad67ec3e6550b002a51659a..03a58ef94be7c870f55d5a9bb09503995dbfb402 100644
>>> --- a/Documentation/userspace-api/media/v4l/ext-ctrls-flash.rst
>>> +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-flash.rst
>>> @@ -186,3 +186,8 @@ Flash Control IDs
>>> charged before strobing. LED flashes often require a cooldown period
>>> after strobe during which another strobe will not be possible. This
>>> is a read-only control.
>>> +
>>> +``V4L2_CID_FLASH_DURATION (integer)``
>>> + Duration the flash should be on when the flash LED is in flash mode
>>> + (V4L2_FLASH_LED_MODE_FLASH). The unit should be microseconds (µs)
>>> + if possible.
>>>
>>
>> If this control is present, does that mean that the flash duration always have
>> to be set manually? Or can there be an 'Auto' mode as well? And if so, how is
>> that set?
>
> To be honest I haven't thought about automatic flash duration. Is this
> something which is required?
No idea, it was just something I was wondering about. Sakari probably knows a lot
more about this.
Regards,
Hans
>
> At least for the ov9282 sensor (which I've implemented this control for
> in this series) there is no "auto" mode AFAIK.
>
> If it's required: What would be the best solution?
> Extending V4L2_CID_FLASH_LED_MODE with a new menu option? E.g.
> V4L2_FLASH_LED_MODE_FLASH_{MANUAL,AUTO}?
>
>>
>> Regards,
>>
>> Hans
>
> Thanks!
> Richard
next prev parent reply other threads:[~2025-03-14 10:36 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-14 8:49 [PATCH v2 0/8] Add strobe/flash duration v4l2 ctrl & use it for ov9282 Richard Leitner
2025-03-14 8:49 ` [PATCH v2 1/8] media: v4l: ctrls: add a control for flash/strobe duration Richard Leitner
2025-03-14 9:20 ` Sakari Ailus
2025-03-14 10:25 ` Richard Leitner
2025-03-14 13:34 ` Sakari Ailus
2025-03-14 16:08 ` Richard Leitner
2025-03-18 13:28 ` Sakari Ailus
2025-03-18 13:42 ` Richard Leitner
2025-03-18 14:06 ` Sakari Ailus
2025-03-18 14:46 ` Richard Leitner
2025-03-18 15:11 ` Sakari Ailus
2025-03-18 16:39 ` Dave Stevenson
2025-03-19 10:06 ` Sakari Ailus
2025-03-25 8:20 ` Richard Leitner
2025-04-03 7:16 ` Sakari Ailus
2025-03-14 8:49 ` [PATCH v2 2/8] media: v4l2-flash: add support for flash/stobe duration Richard Leitner
2025-03-14 9:51 ` Lee Jones
2025-03-14 10:29 ` Richard Leitner
2025-03-14 8:49 ` [PATCH v2 3/8] media: v4l2-flash: fix flash_timeout comment Richard Leitner
2025-03-14 8:49 ` [PATCH v2 4/8] Documentation: uAPI: media: add V4L2_CID_FLASH_DURATION Richard Leitner
2025-03-14 9:41 ` Hans Verkuil
2025-03-14 10:28 ` Richard Leitner
2025-03-14 10:36 ` Hans Verkuil [this message]
2025-03-25 8:24 ` Richard Leitner
2025-04-03 7:15 ` Sakari Ailus
2025-03-14 8:49 ` [PATCH v2 5/8] media: i2c: ov9282: add output enable register definitions Richard Leitner
2025-03-14 8:50 ` [PATCH v2 6/8] media: i2c: ov9282: add led_mode v4l2 control Richard Leitner
2025-03-14 8:50 ` [PATCH v2 7/8] media: i2c: ov9282: add strobe_duration " Richard Leitner
2025-03-14 8:50 ` [PATCH v2 8/8] media: i2c: ov9282: add strobe_source " Richard Leitner
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=0fd2cbfa-8804-456f-891d-ecd06e828bc6@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=dave.stevenson@raspberrypi.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=pavel@kernel.org \
--cc=richard.leitner@linux.dev \
--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