diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-07-05 09:58:06 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-13 15:05:27 -0400 |
commit | 777f4f85b75f1430c85c7d796220c82033b31268 (patch) | |
tree | 0b684104ae39144913c1c38abb7978c60919c980 /include/linux/v4l2-subdev.h | |
parent | faedc36377258dc2d7e5b847db403e6e13794b1c (diff) |
[media] v4l2 core: add the missing pieces to support DVI/HDMI/DisplayPort
These new controls and two new ioctls make it possible to properly support
VGA, DVI-A/D/I, HDMI and DisplayPort connectors. All these controls and the
ioctls are all at the sub-device level. They are meant for V4L2 bridge/platform
drivers or to be accessed on embedded systems through /dev/v4l-subdev* device
nodes.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/v4l2-subdev.h')
-rw-r--r-- | include/linux/v4l2-subdev.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/v4l2-subdev.h b/include/linux/v4l2-subdev.h index 8c57ee9872bb..a33c4daadce3 100644 --- a/include/linux/v4l2-subdev.h +++ b/include/linux/v4l2-subdev.h | |||
@@ -148,6 +148,14 @@ struct v4l2_subdev_selection { | |||
148 | __u32 reserved[8]; | 148 | __u32 reserved[8]; |
149 | }; | 149 | }; |
150 | 150 | ||
151 | struct v4l2_subdev_edid { | ||
152 | __u32 pad; | ||
153 | __u32 start_block; | ||
154 | __u32 blocks; | ||
155 | __u32 reserved[5]; | ||
156 | __u8 __user *edid; | ||
157 | }; | ||
158 | |||
151 | #define VIDIOC_SUBDEV_G_FMT _IOWR('V', 4, struct v4l2_subdev_format) | 159 | #define VIDIOC_SUBDEV_G_FMT _IOWR('V', 4, struct v4l2_subdev_format) |
152 | #define VIDIOC_SUBDEV_S_FMT _IOWR('V', 5, struct v4l2_subdev_format) | 160 | #define VIDIOC_SUBDEV_S_FMT _IOWR('V', 5, struct v4l2_subdev_format) |
153 | #define VIDIOC_SUBDEV_G_FRAME_INTERVAL \ | 161 | #define VIDIOC_SUBDEV_G_FRAME_INTERVAL \ |
@@ -166,5 +174,7 @@ struct v4l2_subdev_selection { | |||
166 | _IOWR('V', 61, struct v4l2_subdev_selection) | 174 | _IOWR('V', 61, struct v4l2_subdev_selection) |
167 | #define VIDIOC_SUBDEV_S_SELECTION \ | 175 | #define VIDIOC_SUBDEV_S_SELECTION \ |
168 | _IOWR('V', 62, struct v4l2_subdev_selection) | 176 | _IOWR('V', 62, struct v4l2_subdev_selection) |
177 | #define VIDIOC_SUBDEV_G_EDID _IOWR('V', 40, struct v4l2_subdev_edid) | ||
178 | #define VIDIOC_SUBDEV_S_EDID _IOWR('V', 41, struct v4l2_subdev_edid) | ||
169 | 179 | ||
170 | #endif | 180 | #endif |