diff options
Diffstat (limited to 'include/uapi/linux/videodev2.h')
| -rw-r--r-- | include/uapi/linux/videodev2.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index ea468ee8fe21..168ff507bf75 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h | |||
| @@ -649,7 +649,6 @@ struct v4l2_plane { | |||
| 649 | * @length: size in bytes of the buffer (NOT its payload) for single-plane | 649 | * @length: size in bytes of the buffer (NOT its payload) for single-plane |
| 650 | * buffers (when type != *_MPLANE); number of elements in the | 650 | * buffers (when type != *_MPLANE); number of elements in the |
| 651 | * planes array for multi-plane buffers | 651 | * planes array for multi-plane buffers |
| 652 | * @input: input number from which the video data has has been captured | ||
| 653 | * | 652 | * |
| 654 | * Contains data exchanged by application and driver using one of the Streaming | 653 | * Contains data exchanged by application and driver using one of the Streaming |
| 655 | * I/O methods. | 654 | * I/O methods. |
| @@ -1107,12 +1106,15 @@ struct v4l2_dv_timings { | |||
| 1107 | 1106 | ||
| 1108 | /** struct v4l2_enum_dv_timings - DV timings enumeration | 1107 | /** struct v4l2_enum_dv_timings - DV timings enumeration |
| 1109 | * @index: enumeration index | 1108 | * @index: enumeration index |
| 1109 | * @pad: the pad number for which to enumerate timings (used with | ||
| 1110 | * v4l-subdev nodes only) | ||
| 1110 | * @reserved: must be zeroed | 1111 | * @reserved: must be zeroed |
| 1111 | * @timings: the timings for the given index | 1112 | * @timings: the timings for the given index |
| 1112 | */ | 1113 | */ |
| 1113 | struct v4l2_enum_dv_timings { | 1114 | struct v4l2_enum_dv_timings { |
| 1114 | __u32 index; | 1115 | __u32 index; |
| 1115 | __u32 reserved[3]; | 1116 | __u32 pad; |
| 1117 | __u32 reserved[2]; | ||
| 1116 | struct v4l2_dv_timings timings; | 1118 | struct v4l2_dv_timings timings; |
| 1117 | }; | 1119 | }; |
| 1118 | 1120 | ||
| @@ -1150,11 +1152,14 @@ struct v4l2_bt_timings_cap { | |||
| 1150 | 1152 | ||
| 1151 | /** struct v4l2_dv_timings_cap - DV timings capabilities | 1153 | /** struct v4l2_dv_timings_cap - DV timings capabilities |
| 1152 | * @type: the type of the timings (same as in struct v4l2_dv_timings) | 1154 | * @type: the type of the timings (same as in struct v4l2_dv_timings) |
| 1155 | * @pad: the pad number for which to query capabilities (used with | ||
| 1156 | * v4l-subdev nodes only) | ||
| 1153 | * @bt: the BT656/1120 timings capabilities | 1157 | * @bt: the BT656/1120 timings capabilities |
| 1154 | */ | 1158 | */ |
| 1155 | struct v4l2_dv_timings_cap { | 1159 | struct v4l2_dv_timings_cap { |
| 1156 | __u32 type; | 1160 | __u32 type; |
| 1157 | __u32 reserved[3]; | 1161 | __u32 pad; |
| 1162 | __u32 reserved[2]; | ||
| 1158 | union { | 1163 | union { |
| 1159 | struct v4l2_bt_timings_cap bt; | 1164 | struct v4l2_bt_timings_cap bt; |
| 1160 | __u32 raw_data[32]; | 1165 | __u32 raw_data[32]; |
| @@ -1765,6 +1770,7 @@ struct v4l2_streamparm { | |||
| 1765 | #define V4L2_EVENT_EOS 2 | 1770 | #define V4L2_EVENT_EOS 2 |
| 1766 | #define V4L2_EVENT_CTRL 3 | 1771 | #define V4L2_EVENT_CTRL 3 |
| 1767 | #define V4L2_EVENT_FRAME_SYNC 4 | 1772 | #define V4L2_EVENT_FRAME_SYNC 4 |
| 1773 | #define V4L2_EVENT_SOURCE_CHANGE 5 | ||
| 1768 | #define V4L2_EVENT_PRIVATE_START 0x08000000 | 1774 | #define V4L2_EVENT_PRIVATE_START 0x08000000 |
| 1769 | 1775 | ||
| 1770 | /* Payload for V4L2_EVENT_VSYNC */ | 1776 | /* Payload for V4L2_EVENT_VSYNC */ |
| @@ -1796,12 +1802,19 @@ struct v4l2_event_frame_sync { | |||
| 1796 | __u32 frame_sequence; | 1802 | __u32 frame_sequence; |
| 1797 | }; | 1803 | }; |
| 1798 | 1804 | ||
| 1805 | #define V4L2_EVENT_SRC_CH_RESOLUTION (1 << 0) | ||
| 1806 | |||
| 1807 | struct v4l2_event_src_change { | ||
| 1808 | __u32 changes; | ||
| 1809 | }; | ||
| 1810 | |||
| 1799 | struct v4l2_event { | 1811 | struct v4l2_event { |
| 1800 | __u32 type; | 1812 | __u32 type; |
| 1801 | union { | 1813 | union { |
| 1802 | struct v4l2_event_vsync vsync; | 1814 | struct v4l2_event_vsync vsync; |
| 1803 | struct v4l2_event_ctrl ctrl; | 1815 | struct v4l2_event_ctrl ctrl; |
| 1804 | struct v4l2_event_frame_sync frame_sync; | 1816 | struct v4l2_event_frame_sync frame_sync; |
| 1817 | struct v4l2_event_src_change src_change; | ||
| 1805 | __u8 data[64]; | 1818 | __u8 data[64]; |
| 1806 | } u; | 1819 | } u; |
| 1807 | __u32 pending; | 1820 | __u32 pending; |
