aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/videodev2.h
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2012-05-11 05:37:03 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-14 13:30:26 -0400
commit2272ab657b508ece04bf015da6c23f61711bac81 (patch)
tree74f8f45630875037015b7fcbcd1a470d15006318 /include/linux/videodev2.h
parentfc162a099e7b34bfe3501028c919ff5d43e5e3d3 (diff)
[media] V4L: Add camera auto focus controls
Add following auto focus controls: - V4L2_CID_AUTO_FOCUS_START - single-shot auto focus start - V4L2_CID_AUTO_FOCUS_STOP - single-shot auto focus stop - V4L2_CID_AUTO_FOCUS_STATUS - automatic focus status - V4L2_CID_AUTO_FOCUS_RANGE - automatic focus scan range selection Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/videodev2.h')
-rw-r--r--include/linux/videodev2.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index a9b03ae44037..dc3e3ea28f99 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -1763,6 +1763,22 @@ enum v4l2_scene_mode {
1763#define V4L2_LOCK_WHITE_BALANCE (1 << 1) 1763#define V4L2_LOCK_WHITE_BALANCE (1 << 1)
1764#define V4L2_LOCK_FOCUS (1 << 2) 1764#define V4L2_LOCK_FOCUS (1 << 2)
1765 1765
1766#define V4L2_CID_AUTO_FOCUS_START (V4L2_CID_CAMERA_CLASS_BASE+28)
1767#define V4L2_CID_AUTO_FOCUS_STOP (V4L2_CID_CAMERA_CLASS_BASE+29)
1768#define V4L2_CID_AUTO_FOCUS_STATUS (V4L2_CID_CAMERA_CLASS_BASE+30)
1769#define V4L2_AUTO_FOCUS_STATUS_IDLE (0 << 0)
1770#define V4L2_AUTO_FOCUS_STATUS_BUSY (1 << 0)
1771#define V4L2_AUTO_FOCUS_STATUS_REACHED (1 << 1)
1772#define V4L2_AUTO_FOCUS_STATUS_FAILED (1 << 2)
1773
1774#define V4L2_CID_AUTO_FOCUS_RANGE (V4L2_CID_CAMERA_CLASS_BASE+31)
1775enum v4l2_auto_focus_range {
1776 V4L2_AUTO_FOCUS_RANGE_AUTO = 0,
1777 V4L2_AUTO_FOCUS_RANGE_NORMAL = 1,
1778 V4L2_AUTO_FOCUS_RANGE_MACRO = 2,
1779 V4L2_AUTO_FOCUS_RANGE_INFINITY = 3,
1780};
1781
1766/* FM Modulator class control IDs */ 1782/* FM Modulator class control IDs */
1767#define V4L2_CID_FM_TX_CLASS_BASE (V4L2_CTRL_CLASS_FM_TX | 0x900) 1783#define V4L2_CID_FM_TX_CLASS_BASE (V4L2_CTRL_CLASS_FM_TX | 0x900)
1768#define V4L2_CID_FM_TX_CLASS (V4L2_CTRL_CLASS_FM_TX | 1) 1784#define V4L2_CID_FM_TX_CLASS (V4L2_CTRL_CLASS_FM_TX | 1)