diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-08-25 16:44:15 +0200 |
---|---|---|
committer | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-08-25 16:44:15 +0200 |
commit | ac97b8b24a867c8c2d3dd71d3c3d12b078b8091c (patch) | |
tree | 703c5229ce74cc31678b7d549c87aa837fb2f8d0 /linux/include | |
parent | 4e4ce6d0b364f6dcab06b9f80942339fbfef9e0a (diff) | |
download | mediapointer-dvb-s2-ac97b8b24a867c8c2d3dd71d3c3d12b078b8091c.tar.gz mediapointer-dvb-s2-ac97b8b24a867c8c2d3dd71d3c3d12b078b8091c.tar.bz2 |
soc-camera: add support for camera-host controls
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
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>
Priority: low
---
drivers/media/video/soc_camera.c | 24 ++++++++++++++++++++++++
include/media/soc_camera.h | 4 ++++
2 files changed, 28 insertions(+), 0 deletions(-)
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/media/soc_camera.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/include/media/soc_camera.h b/linux/include/media/soc_camera.h index 3bc5b6b20..2d116bbbc 100644 --- a/linux/include/media/soc_camera.h +++ b/linux/include/media/soc_camera.h @@ -83,7 +83,11 @@ struct soc_camera_host_ops { int (*reqbufs)(struct soc_camera_file *, struct v4l2_requestbuffers *); int (*querycap)(struct soc_camera_host *, struct v4l2_capability *); int (*set_bus_param)(struct soc_camera_device *, __u32); + int (*get_ctrl)(struct soc_camera_device *, struct v4l2_control *); + int (*set_ctrl)(struct soc_camera_device *, struct v4l2_control *); unsigned int (*poll)(struct file *, poll_table *); + const struct v4l2_queryctrl *controls; + int num_controls; }; #define SOCAM_SENSOR_INVERT_PCLK (1 << 0) |