summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDmitry Lavnikevich <d.lavnikevich@sam-solutions.net>2013-05-03 21:25:49 +0300
committerJustin Waters <justin.waters@timesys.com>2013-11-07 12:19:30 -0500
commitfc35bae9a23509e181cb5f1ac437208f79be40b5 (patch)
tree4791888deb17c451e8bf5934c2ba060cf00e6e3d /include
parentc064b6895b4ad23d8d2c30aa8c18c95bed8c5df3 (diff)
Added base implementation of tw9910.
* soc_camera driver now tries to call enum_input, g_input and s_input handlers from host camera driver if such exists; * tw9910 v4l device type redefined from V4L2_INPUT_TYPE_TUNER to V4L2_INPUT_TYPE_CAMERA; * added basic implementation of g_input and s_input for managing current videoinput handlers to tw9910 driver; Note: currently deinterlacing is disabled by default in the mxc_ipu driver so tw9910 returns interlaced image. Deinterlacing mode can be hardcoded on in the csi_enc_setup(struct mxc_camera_dev *cam) from drivers/media/video/mxc_ipu_csi_enc.c. Signed-off-by: Uladzimir Bely <u.bely@sam-solutions.net> Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Diffstat (limited to 'include')
-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 68520c6611eb..cdc8022d2169 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -212,6 +212,8 @@ struct soc_camera_ops {
unsigned long (*query_bus_param)(struct soc_camera_device *);
int (*set_bus_param)(struct soc_camera_device *, unsigned long);
int (*enum_input)(struct soc_camera_device *, struct v4l2_input *);
+ int (*g_input)(struct soc_camera_device *, unsigned int *);
+ int (*s_input)(struct soc_camera_device *, unsigned int);
const struct v4l2_queryctrl *controls;
int num_controls;
};