aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2012-06-22 12:40:08 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-15 16:37:39 -0400
commit3bfb41001da5740b1c65ff537dfbff5904a4915d (patch)
tree96eccfdd9ea9718610d4e1f61ca16c02da9be25c /include/media
parent1cb7cf28c0690852cfe5800e037fa0db9fba2432 (diff)
[media] V4L: soc-camera: add selection API host operations
Add .get_selection() and .set_selection() soc-camera host driver operations. Additionally check, that the user is not trying to change the output sizes during a running capture. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/soc_camera.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index 982bfc948414..435e7b8ad1c3 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -86,6 +86,8 @@ struct soc_camera_host_ops {
86 int (*cropcap)(struct soc_camera_device *, struct v4l2_cropcap *); 86 int (*cropcap)(struct soc_camera_device *, struct v4l2_cropcap *);
87 int (*get_crop)(struct soc_camera_device *, struct v4l2_crop *); 87 int (*get_crop)(struct soc_camera_device *, struct v4l2_crop *);
88 int (*set_crop)(struct soc_camera_device *, struct v4l2_crop *); 88 int (*set_crop)(struct soc_camera_device *, struct v4l2_crop *);
89 int (*get_selection)(struct soc_camera_device *, struct v4l2_selection *);
90 int (*set_selection)(struct soc_camera_device *, struct v4l2_selection *);
89 /* 91 /*
90 * The difference to .set_crop() is, that .set_livecrop is not allowed 92 * The difference to .set_crop() is, that .set_livecrop is not allowed
91 * to change the output sizes 93 * to change the output sizes