aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-01-29 08:05:10 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-25 11:37:57 -0400
commit0349f6a5f18e929ca88c6db7def5e02f5ae0a416 (patch)
tree930f2686172e7f64f06e4c8fb04e8204f223ba52 /include/uapi/linux
parent523d63eb67e23a2b89d6357013257b0759292a0d (diff)
[media] v4l: Add pad-level DV timings subdev operations
The dv_timings_cap and enum_dv_timings subdev operations are implemented at the device level, but apply to pads. Create new variants of those operations at the pad level. The device level variants will be removed once all drivers are ported to the pad level DT timings operations. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/videodev2.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index 00259d2baa10..168ff507bf75 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -1106,12 +1106,15 @@ struct v4l2_dv_timings {
1106 1106
1107/** struct v4l2_enum_dv_timings - DV timings enumeration 1107/** struct v4l2_enum_dv_timings - DV timings enumeration
1108 * @index: enumeration index 1108 * @index: enumeration index
1109 * @pad: the pad number for which to enumerate timings (used with
1110 * v4l-subdev nodes only)
1109 * @reserved: must be zeroed 1111 * @reserved: must be zeroed
1110 * @timings: the timings for the given index 1112 * @timings: the timings for the given index
1111 */ 1113 */
1112struct v4l2_enum_dv_timings { 1114struct v4l2_enum_dv_timings {
1113 __u32 index; 1115 __u32 index;
1114 __u32 reserved[3]; 1116 __u32 pad;
1117 __u32 reserved[2];
1115 struct v4l2_dv_timings timings; 1118 struct v4l2_dv_timings timings;
1116}; 1119};
1117 1120
@@ -1149,11 +1152,14 @@ struct v4l2_bt_timings_cap {
1149 1152
1150/** struct v4l2_dv_timings_cap - DV timings capabilities 1153/** struct v4l2_dv_timings_cap - DV timings capabilities
1151 * @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)
1152 * @bt: the BT656/1120 timings capabilities 1157 * @bt: the BT656/1120 timings capabilities
1153 */ 1158 */
1154struct v4l2_dv_timings_cap { 1159struct v4l2_dv_timings_cap {
1155 __u32 type; 1160 __u32 type;
1156 __u32 reserved[3]; 1161 __u32 pad;
1162 __u32 reserved[2];
1157 union { 1163 union {
1158 struct v4l2_bt_timings_cap bt; 1164 struct v4l2_bt_timings_cap bt;
1159 __u32 raw_data[32]; 1165 __u32 raw_data[32];