Some media devices (microscopes) may have one or many illuminators,
and most webcams have a status LED which is normally on when capture is active.
This patch makes them controlable by the applications.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
@@ -312,10 +312,27 @@ minimum value disables backlight compensation.</entry>
information and bits 24-31 must be zero.</entry>
</row>
<row>
+ <entry><constant>V4L2_CID_ILLUMINATORS</constant></entry>
+ <entry>integer</entry>
+ <entry>Switch on or off the illuminator(s) of the device
+ (usually a microscope).
+ The control type and values depend on the driver and may be either
+ a single boolean (0: off, 1:on) or defined by a menu type.</entry>
+ </row>
+ <row id="v4l2_status_led">
+ <entry><constant>V4L2_CID_STATUS_LED</constant></entry>
+ <entry>integer</entry>
+ <entry>Set the status LED behaviour. Possible values for
+<constant>enum v4l2_status_led</constant> are:
+<constant>V4L2_STATUS_LED_AUTO</constant> (0),
+<constant>V4L2_STATUS_LED_ON</constant> (1),
+<constant>V4L2_STATUS_LED_OFF</constant> (2).</entry>
+ </row>
+ <row>
<entry><constant>V4L2_CID_LASTP1</constant></entry>
<entry></entry>
<entry>End of the predefined control IDs (currently
-<constant>V4L2_CID_BG_COLOR</constant> + 1).</entry>
+<constant>V4L2_CID_STATUS_LED</constant> + 1).</entry>
</row>
<row>
<entry><constant>V4L2_CID_PRIVATE_BASE</constant></entry>
@@ -1045,8 +1045,16 @@ enum v4l2_colorfx {
#define V4L2_CID_CHROMA_GAIN (V4L2_CID_BASE+36)
+#define V4L2_CID_ILLUMINATORS (V4L2_CID_BASE+37)
+#define V4L2_CID_STATUS_LED (V4L2_CID_BASE+38)
+enum v4l2_status_led {
+ V4L2_STATUS_LED_AUTO = 0,
+ V4L2_STATUS_LED_ON = 1,
+ V4L2_STATUS_LED_OFF = 2,
+};
+
/* last CID + 1 */
-#define V4L2_CID_LASTP1 (V4L2_CID_BASE+37)
+#define V4L2_CID_LASTP1 (V4L2_CID_BASE+39)
/* MPEG-class control IDs defined by V4L2 */
#define V4L2_CID_MPEG_BASE (V4L2_CTRL_CLASS_MPEG | 0x900)