|
@@ -236,6 +236,13 @@ const char * const *v4l2_ctrl_get_menu(u32 id)
|
|
|
"Spot",
|
|
|
NULL
|
|
|
};
|
|
|
+ static const char * const camera_auto_focus_range[] = {
|
|
|
+ "Auto",
|
|
|
+ "Normal",
|
|
|
+ "Macro",
|
|
|
+ "Infinity",
|
|
|
+ NULL
|
|
|
+ };
|
|
|
static const char * const colorfx[] = {
|
|
|
"None",
|
|
|
"Black & White",
|
|
@@ -459,6 +466,8 @@ const char * const *v4l2_ctrl_get_menu(u32 id)
|
|
|
return camera_exposure_auto;
|
|
|
case V4L2_CID_EXPOSURE_METERING:
|
|
|
return camera_exposure_metering;
|
|
|
+ case V4L2_CID_AUTO_FOCUS_RANGE:
|
|
|
+ return camera_auto_focus_range;
|
|
|
case V4L2_CID_COLORFX:
|
|
|
return colorfx;
|
|
|
case V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE:
|
|
@@ -646,7 +655,7 @@ const char *v4l2_ctrl_get_name(u32 id)
|
|
|
case V4L2_CID_TILT_ABSOLUTE: return "Tilt, Absolute";
|
|
|
case V4L2_CID_FOCUS_ABSOLUTE: return "Focus, Absolute";
|
|
|
case V4L2_CID_FOCUS_RELATIVE: return "Focus, Relative";
|
|
|
- case V4L2_CID_FOCUS_AUTO: return "Focus, Automatic";
|
|
|
+ case V4L2_CID_FOCUS_AUTO: return "Focus, Automatic Continuous";
|
|
|
case V4L2_CID_ZOOM_ABSOLUTE: return "Zoom, Absolute";
|
|
|
case V4L2_CID_ZOOM_RELATIVE: return "Zoom, Relative";
|
|
|
case V4L2_CID_ZOOM_CONTINUOUS: return "Zoom, Continuous";
|
|
@@ -662,6 +671,10 @@ const char *v4l2_ctrl_get_name(u32 id)
|
|
|
case V4L2_CID_EXPOSURE_METERING: return "Exposure, Metering Mode";
|
|
|
case V4L2_CID_SCENE_MODE: return "Scene Mode";
|
|
|
case V4L2_CID_3A_LOCK: return "3A Lock";
|
|
|
+ case V4L2_CID_AUTO_FOCUS_START: return "Auto Focus, Start";
|
|
|
+ case V4L2_CID_AUTO_FOCUS_STOP: return "Auto Focus, Stop";
|
|
|
+ case V4L2_CID_AUTO_FOCUS_STATUS: return "Auto Focus, Status";
|
|
|
+ case V4L2_CID_AUTO_FOCUS_RANGE: return "Auto Focus, Range";
|
|
|
|
|
|
/* FM Radio Modulator control */
|
|
|
/* Keep the order of the 'case's the same as in videodev2.h! */
|
|
@@ -774,6 +787,8 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type,
|
|
|
case V4L2_CID_TILT_RESET:
|
|
|
case V4L2_CID_FLASH_STROBE:
|
|
|
case V4L2_CID_FLASH_STROBE_STOP:
|
|
|
+ case V4L2_CID_AUTO_FOCUS_START:
|
|
|
+ case V4L2_CID_AUTO_FOCUS_STOP:
|
|
|
*type = V4L2_CTRL_TYPE_BUTTON;
|
|
|
*flags |= V4L2_CTRL_FLAG_WRITE_ONLY;
|
|
|
*min = *max = *step = *def = 0;
|
|
@@ -797,6 +812,7 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type,
|
|
|
case V4L2_CID_MPEG_STREAM_TYPE:
|
|
|
case V4L2_CID_MPEG_STREAM_VBI_FMT:
|
|
|
case V4L2_CID_EXPOSURE_AUTO:
|
|
|
+ case V4L2_CID_AUTO_FOCUS_RANGE:
|
|
|
case V4L2_CID_COLORFX:
|
|
|
case V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE:
|
|
|
case V4L2_CID_TUNE_PREEMPHASIS:
|
|
@@ -851,6 +867,7 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type,
|
|
|
case V4L2_CID_FLASH_FAULT:
|
|
|
case V4L2_CID_JPEG_ACTIVE_MARKER:
|
|
|
case V4L2_CID_3A_LOCK:
|
|
|
+ case V4L2_CID_AUTO_FOCUS_STATUS:
|
|
|
*type = V4L2_CTRL_TYPE_BITMASK;
|
|
|
break;
|
|
|
case V4L2_CID_MIN_BUFFERS_FOR_CAPTURE:
|
|
@@ -913,6 +930,7 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type,
|
|
|
*flags |= V4L2_CTRL_FLAG_WRITE_ONLY;
|
|
|
break;
|
|
|
case V4L2_CID_FLASH_STROBE_STATUS:
|
|
|
+ case V4L2_CID_AUTO_FOCUS_STATUS:
|
|
|
case V4L2_CID_FLASH_READY:
|
|
|
*flags |= V4L2_CTRL_FLAG_READ_ONLY;
|
|
|
break;
|