diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-03-07 05:18:37 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-11 09:06:53 -0400 |
commit | dd519bb34a09d86db720f8a65e7dee1a85b2e90f (patch) | |
tree | dc68633c2a98b9bb5015c5c39c230cc6f766f794 /include | |
parent | 254a47770163f9322333660ebdabf99ba49873da (diff) |
[media] v4l2: add VIDIOC_G/S_EDID support to the v4l2 core
Support this ioctl as part of the v4l2 core. Use the new ioctl
name and struct v4l2_edid type in the existing core code.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/v4l2-ioctl.h | 2 | ||||
-rw-r--r-- | include/media/v4l2-subdev.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h index 8be32f5824bf..50cf7c110a70 100644 --- a/include/media/v4l2-ioctl.h +++ b/include/media/v4l2-ioctl.h | |||
@@ -273,6 +273,8 @@ struct v4l2_ioctl_ops { | |||
273 | struct v4l2_enum_dv_timings *timings); | 273 | struct v4l2_enum_dv_timings *timings); |
274 | int (*vidioc_dv_timings_cap) (struct file *file, void *fh, | 274 | int (*vidioc_dv_timings_cap) (struct file *file, void *fh, |
275 | struct v4l2_dv_timings_cap *cap); | 275 | struct v4l2_dv_timings_cap *cap); |
276 | int (*vidioc_g_edid) (struct file *file, void *fh, struct v4l2_edid *edid); | ||
277 | int (*vidioc_s_edid) (struct file *file, void *fh, struct v4l2_edid *edid); | ||
276 | 278 | ||
277 | int (*vidioc_subscribe_event) (struct v4l2_fh *fh, | 279 | int (*vidioc_subscribe_event) (struct v4l2_fh *fh, |
278 | const struct v4l2_event_subscription *sub); | 280 | const struct v4l2_event_subscription *sub); |
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index 1752530f69bc..855c928c29cd 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h | |||
@@ -507,8 +507,8 @@ struct v4l2_subdev_pad_ops { | |||
507 | struct v4l2_subdev_selection *sel); | 507 | struct v4l2_subdev_selection *sel); |
508 | int (*set_selection)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh, | 508 | int (*set_selection)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh, |
509 | struct v4l2_subdev_selection *sel); | 509 | struct v4l2_subdev_selection *sel); |
510 | int (*get_edid)(struct v4l2_subdev *sd, struct v4l2_subdev_edid *edid); | 510 | int (*get_edid)(struct v4l2_subdev *sd, struct v4l2_edid *edid); |
511 | int (*set_edid)(struct v4l2_subdev *sd, struct v4l2_subdev_edid *edid); | 511 | int (*set_edid)(struct v4l2_subdev *sd, struct v4l2_edid *edid); |
512 | #ifdef CONFIG_MEDIA_CONTROLLER | 512 | #ifdef CONFIG_MEDIA_CONTROLLER |
513 | int (*link_validate)(struct v4l2_subdev *sd, struct media_link *link, | 513 | int (*link_validate)(struct v4l2_subdev *sd, struct media_link *link, |
514 | struct v4l2_subdev_format *source_fmt, | 514 | struct v4l2_subdev_format *source_fmt, |