aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2015-12-14 05:25:32 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-24 08:46:09 -0400
commit10d5509c8d50a2c2f761a08a616530dced35e2d8 (patch)
treee3140b6d25f56cce9fa4a7df00e7e14bb762f54f /include/media
parent65d9e14a659520c554feea8ef17ee3109bd67ebd (diff)
[media] v4l2: remove g/s_crop from video ops
Replace all calls to g/s_crop by calls to the get/set_selection pad ops. Remove the old g/s_crop video ops since they are now no longer used. The cropcap video op is now only used to pass pixelaspect information, and is only needed if the pixelaspect is not 1:1. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/soc_camera.h7
-rw-r--r--include/media/v4l2-subdev.h6
2 files changed, 2 insertions, 11 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index 97aa13314bfd..1a15c3e4efd3 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -105,16 +105,13 @@ struct soc_camera_host_ops {
105 int (*get_formats)(struct soc_camera_device *, unsigned int, 105 int (*get_formats)(struct soc_camera_device *, unsigned int,
106 struct soc_camera_format_xlate *); 106 struct soc_camera_format_xlate *);
107 void (*put_formats)(struct soc_camera_device *); 107 void (*put_formats)(struct soc_camera_device *);
108 int (*cropcap)(struct soc_camera_device *, struct v4l2_cropcap *);
109 int (*get_crop)(struct soc_camera_device *, struct v4l2_crop *);
110 int (*set_crop)(struct soc_camera_device *, const struct v4l2_crop *);
111 int (*get_selection)(struct soc_camera_device *, struct v4l2_selection *); 108 int (*get_selection)(struct soc_camera_device *, struct v4l2_selection *);
112 int (*set_selection)(struct soc_camera_device *, struct v4l2_selection *); 109 int (*set_selection)(struct soc_camera_device *, struct v4l2_selection *);
113 /* 110 /*
114 * The difference to .set_crop() is, that .set_livecrop is not allowed 111 * The difference to .set_selection() is, that .set_liveselection is not allowed
115 * to change the output sizes 112 * to change the output sizes
116 */ 113 */
117 int (*set_livecrop)(struct soc_camera_device *, const struct v4l2_crop *); 114 int (*set_liveselection)(struct soc_camera_device *, struct v4l2_selection *);
118 int (*set_fmt)(struct soc_camera_device *, struct v4l2_format *); 115 int (*set_fmt)(struct soc_camera_device *, struct v4l2_format *);
119 int (*try_fmt)(struct soc_camera_device *, struct v4l2_format *); 116 int (*try_fmt)(struct soc_camera_device *, struct v4l2_format *);
120 void (*init_videobuf)(struct videobuf_queue *, 117 void (*init_videobuf)(struct videobuf_queue *,
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
index 2a2240c99b30..22ea819ada95 100644
--- a/include/media/v4l2-subdev.h
+++ b/include/media/v4l2-subdev.h
@@ -360,10 +360,6 @@ struct v4l2_mbus_frame_desc {
360 * 360 *
361 * @cropcap: callback for %VIDIOC_CROPCAP ioctl handler code. 361 * @cropcap: callback for %VIDIOC_CROPCAP ioctl handler code.
362 * 362 *
363 * @g_crop: callback for %VIDIOC_G_CROP ioctl handler code.
364 *
365 * @s_crop: callback for %VIDIOC_S_CROP ioctl handler code.
366 *
367 * @g_parm: callback for %VIDIOC_G_PARM ioctl handler code. 363 * @g_parm: callback for %VIDIOC_G_PARM ioctl handler code.
368 * 364 *
369 * @s_parm: callback for %VIDIOC_S_PARM ioctl handler code. 365 * @s_parm: callback for %VIDIOC_S_PARM ioctl handler code.
@@ -403,8 +399,6 @@ struct v4l2_subdev_video_ops {
403 int (*g_input_status)(struct v4l2_subdev *sd, u32 *status); 399 int (*g_input_status)(struct v4l2_subdev *sd, u32 *status);
404 int (*s_stream)(struct v4l2_subdev *sd, int enable); 400 int (*s_stream)(struct v4l2_subdev *sd, int enable);
405 int (*cropcap)(struct v4l2_subdev *sd, struct v4l2_cropcap *cc); 401 int (*cropcap)(struct v4l2_subdev *sd, struct v4l2_cropcap *cc);
406 int (*g_crop)(struct v4l2_subdev *sd, struct v4l2_crop *crop);
407 int (*s_crop)(struct v4l2_subdev *sd, const struct v4l2_crop *crop);
408 int (*g_parm)(struct v4l2_subdev *sd, struct v4l2_streamparm *param); 402 int (*g_parm)(struct v4l2_subdev *sd, struct v4l2_streamparm *param);
409 int (*s_parm)(struct v4l2_subdev *sd, struct v4l2_streamparm *param); 403 int (*s_parm)(struct v4l2_subdev *sd, struct v4l2_streamparm *param);
410 int (*g_frame_interval)(struct v4l2_subdev *sd, 404 int (*g_frame_interval)(struct v4l2_subdev *sd,