diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-08-25 10:44:15 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:18:39 -0400 |
commit | 2840d2497b912f25d2957477faa1c922ddd733e0 (patch) | |
tree | 0cb0fe8ced5e55236c448ab001c4c50faeaa3411 /include | |
parent | a813d01f823259d1b27668c2149785515843a7eb (diff) |
V4L/DVB (12513): soc-camera: add support for camera-host controls
Until now soc-camera only supported client (sensor) controls. This patch
enables camera-host drivers to implement their own controls too.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/soc_camera.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index 3bc5b6b20f64..2d116bbbcce1 100644 --- a/include/media/soc_camera.h +++ b/include/media/soc_camera.h | |||
@@ -83,7 +83,11 @@ struct soc_camera_host_ops { | |||
83 | int (*reqbufs)(struct soc_camera_file *, struct v4l2_requestbuffers *); | 83 | int (*reqbufs)(struct soc_camera_file *, struct v4l2_requestbuffers *); |
84 | int (*querycap)(struct soc_camera_host *, struct v4l2_capability *); | 84 | int (*querycap)(struct soc_camera_host *, struct v4l2_capability *); |
85 | int (*set_bus_param)(struct soc_camera_device *, __u32); | 85 | int (*set_bus_param)(struct soc_camera_device *, __u32); |
86 | int (*get_ctrl)(struct soc_camera_device *, struct v4l2_control *); | ||
87 | int (*set_ctrl)(struct soc_camera_device *, struct v4l2_control *); | ||
86 | unsigned int (*poll)(struct file *, poll_table *); | 88 | unsigned int (*poll)(struct file *, poll_table *); |
89 | const struct v4l2_queryctrl *controls; | ||
90 | int num_controls; | ||
87 | }; | 91 | }; |
88 | 92 | ||
89 | #define SOCAM_SENSOR_INVERT_PCLK (1 << 0) | 93 | #define SOCAM_SENSOR_INVERT_PCLK (1 << 0) |