diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-01-24 02:42:05 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-05 15:00:00 -0500 |
commit | 28718152e0a78085297ec7705f53869e41d1ae73 (patch) | |
tree | df19fa1f287c97746711aa6baa2f73c24ae06e6b /include/uapi | |
parent | 56bc911ac3b94c731db3a6de20258827f1a61c20 (diff) |
[media] Move DV-class control IDs from videodev2.h to v4l2-controls.h
When the control IDs were split off from videodev2.h to v4l2-controls.h
these new Digital Video controls were forgotten (the two patches may
have crossed one another).
Move these controls to their proper place in v4l2-controls.h.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/v4l2-controls.h | 24 | ||||
-rw-r--r-- | include/uapi/linux/videodev2.h | 22 |
2 files changed, 24 insertions, 22 deletions
diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index 4dc0822700fe..0bece06792d7 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h | |||
@@ -778,6 +778,7 @@ enum v4l2_jpeg_chroma_subsampling { | |||
778 | #define V4L2_JPEG_ACTIVE_MARKER_DQT (1 << 17) | 778 | #define V4L2_JPEG_ACTIVE_MARKER_DQT (1 << 17) |
779 | #define V4L2_JPEG_ACTIVE_MARKER_DHT (1 << 18) | 779 | #define V4L2_JPEG_ACTIVE_MARKER_DHT (1 << 18) |
780 | 780 | ||
781 | |||
781 | /* Image source controls */ | 782 | /* Image source controls */ |
782 | #define V4L2_CID_IMAGE_SOURCE_CLASS_BASE (V4L2_CTRL_CLASS_IMAGE_SOURCE | 0x900) | 783 | #define V4L2_CID_IMAGE_SOURCE_CLASS_BASE (V4L2_CTRL_CLASS_IMAGE_SOURCE | 0x900) |
783 | #define V4L2_CID_IMAGE_SOURCE_CLASS (V4L2_CTRL_CLASS_IMAGE_SOURCE | 1) | 784 | #define V4L2_CID_IMAGE_SOURCE_CLASS (V4L2_CTRL_CLASS_IMAGE_SOURCE | 1) |
@@ -796,4 +797,27 @@ enum v4l2_jpeg_chroma_subsampling { | |||
796 | #define V4L2_CID_PIXEL_RATE (V4L2_CID_IMAGE_PROC_CLASS_BASE + 2) | 797 | #define V4L2_CID_PIXEL_RATE (V4L2_CID_IMAGE_PROC_CLASS_BASE + 2) |
797 | #define V4L2_CID_TEST_PATTERN (V4L2_CID_IMAGE_PROC_CLASS_BASE + 3) | 798 | #define V4L2_CID_TEST_PATTERN (V4L2_CID_IMAGE_PROC_CLASS_BASE + 3) |
798 | 799 | ||
800 | |||
801 | /* DV-class control IDs defined by V4L2 */ | ||
802 | #define V4L2_CID_DV_CLASS_BASE (V4L2_CTRL_CLASS_DV | 0x900) | ||
803 | #define V4L2_CID_DV_CLASS (V4L2_CTRL_CLASS_DV | 1) | ||
804 | |||
805 | #define V4L2_CID_DV_TX_HOTPLUG (V4L2_CID_DV_CLASS_BASE + 1) | ||
806 | #define V4L2_CID_DV_TX_RXSENSE (V4L2_CID_DV_CLASS_BASE + 2) | ||
807 | #define V4L2_CID_DV_TX_EDID_PRESENT (V4L2_CID_DV_CLASS_BASE + 3) | ||
808 | #define V4L2_CID_DV_TX_MODE (V4L2_CID_DV_CLASS_BASE + 4) | ||
809 | enum v4l2_dv_tx_mode { | ||
810 | V4L2_DV_TX_MODE_DVI_D = 0, | ||
811 | V4L2_DV_TX_MODE_HDMI = 1, | ||
812 | }; | ||
813 | #define V4L2_CID_DV_TX_RGB_RANGE (V4L2_CID_DV_CLASS_BASE + 5) | ||
814 | enum v4l2_dv_rgb_range { | ||
815 | V4L2_DV_RGB_RANGE_AUTO = 0, | ||
816 | V4L2_DV_RGB_RANGE_LIMITED = 1, | ||
817 | V4L2_DV_RGB_RANGE_FULL = 2, | ||
818 | }; | ||
819 | |||
820 | #define V4L2_CID_DV_RX_POWER_PRESENT (V4L2_CID_DV_CLASS_BASE + 100) | ||
821 | #define V4L2_CID_DV_RX_RGB_RANGE (V4L2_CID_DV_CLASS_BASE + 101) | ||
822 | |||
799 | #endif | 823 | #endif |
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 928799c2e2d9..234d1d870914 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h | |||
@@ -1354,28 +1354,6 @@ struct v4l2_querymenu { | |||
1354 | #define V4L2_CID_PRIVATE_BASE 0x08000000 | 1354 | #define V4L2_CID_PRIVATE_BASE 0x08000000 |
1355 | 1355 | ||
1356 | 1356 | ||
1357 | /* DV-class control IDs defined by V4L2 */ | ||
1358 | #define V4L2_CID_DV_CLASS_BASE (V4L2_CTRL_CLASS_DV | 0x900) | ||
1359 | #define V4L2_CID_DV_CLASS (V4L2_CTRL_CLASS_DV | 1) | ||
1360 | |||
1361 | #define V4L2_CID_DV_TX_HOTPLUG (V4L2_CID_DV_CLASS_BASE + 1) | ||
1362 | #define V4L2_CID_DV_TX_RXSENSE (V4L2_CID_DV_CLASS_BASE + 2) | ||
1363 | #define V4L2_CID_DV_TX_EDID_PRESENT (V4L2_CID_DV_CLASS_BASE + 3) | ||
1364 | #define V4L2_CID_DV_TX_MODE (V4L2_CID_DV_CLASS_BASE + 4) | ||
1365 | enum v4l2_dv_tx_mode { | ||
1366 | V4L2_DV_TX_MODE_DVI_D = 0, | ||
1367 | V4L2_DV_TX_MODE_HDMI = 1, | ||
1368 | }; | ||
1369 | #define V4L2_CID_DV_TX_RGB_RANGE (V4L2_CID_DV_CLASS_BASE + 5) | ||
1370 | enum v4l2_dv_rgb_range { | ||
1371 | V4L2_DV_RGB_RANGE_AUTO = 0, | ||
1372 | V4L2_DV_RGB_RANGE_LIMITED = 1, | ||
1373 | V4L2_DV_RGB_RANGE_FULL = 2, | ||
1374 | }; | ||
1375 | |||
1376 | #define V4L2_CID_DV_RX_POWER_PRESENT (V4L2_CID_DV_CLASS_BASE + 100) | ||
1377 | #define V4L2_CID_DV_RX_RGB_RANGE (V4L2_CID_DV_CLASS_BASE + 101) | ||
1378 | |||
1379 | /* | 1357 | /* |
1380 | * T U N I N G | 1358 | * T U N I N G |
1381 | */ | 1359 | */ |