Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: v4l: ctrls: add a control for flash/strobe duration

Add a V4L2_CID_FLASH_DURATION control to set the duration of a
flash/strobe pulse. This controls the length of the flash/strobe pulse
output by device (typically a camera sensor) and connected to the flash
controller. This is different to the V4L2_CID_FLASH_TIMEOUT control,
which is implemented by the flash controller and defines a limit after
which the flash is "forcefully" turned off again.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Richard Leitner <richard.leitner@linux.dev>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Richard Leitner and committed by
Hans Verkuil
d89ccbf3 59b9548e

+2
+1
drivers/media/v4l2-core/v4l2-ctrls-defs.c
··· 1135 1135 case V4L2_CID_FLASH_FAULT: return "Faults"; 1136 1136 case V4L2_CID_FLASH_CHARGE: return "Charge"; 1137 1137 case V4L2_CID_FLASH_READY: return "Ready to Strobe"; 1138 + case V4L2_CID_FLASH_DURATION: return "Strobe Duration"; 1138 1139 1139 1140 /* JPEG encoder controls */ 1140 1141 /* Keep the order of the 'case's the same as in v4l2-controls.h! */
+1
include/uapi/linux/v4l2-controls.h
··· 1192 1192 1193 1193 #define V4L2_CID_FLASH_CHARGE (V4L2_CID_FLASH_CLASS_BASE + 11) 1194 1194 #define V4L2_CID_FLASH_READY (V4L2_CID_FLASH_CLASS_BASE + 12) 1195 + #define V4L2_CID_FLASH_DURATION (V4L2_CID_FLASH_CLASS_BASE + 13) 1195 1196 1196 1197 1197 1198 /* JPEG-class control IDs */