aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ov772x.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2008-12-23 03:54:45 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:40:17 -0500
commitbd73b36f0c41b0c02ef4b10a307db1c43537e006 (patch)
tree5dabc2aadde5e873d4d1cba136376ae55826f273 /drivers/media/video/ov772x.c
parent5ca11fa3e0025864df930d6d97470b87c35919ed (diff)
V4L/DVB (10072): soc-camera: Add signal inversion flags to be used by camera drivers
As reported by Antonio Ospite <ospite@studenti.unina.it> two platforms with a mt9m111 camera require opposite pixel clock polarity, which means one of them inverts it. This patch adds support for inversion flags and switches all available camera drivers to using them. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ov772x.c')
-rw-r--r--drivers/media/video/ov772x.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/ov772x.c b/drivers/media/video/ov772x.c
index 99dd943aacf..110cb9be09d 100644
--- a/drivers/media/video/ov772x.c
+++ b/drivers/media/video/ov772x.c
@@ -716,12 +716,12 @@ static int ov772x_set_bus_param(struct soc_camera_device *icd,
716static unsigned long ov772x_query_bus_param(struct soc_camera_device *icd) 716static unsigned long ov772x_query_bus_param(struct soc_camera_device *icd)
717{ 717{
718 struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd); 718 struct ov772x_priv *priv = container_of(icd, struct ov772x_priv, icd);
719 719 struct soc_camera_link *icl = priv->client->dev.platform_data;
720 return SOCAM_PCLK_SAMPLE_RISING | 720 unsigned long flags = SOCAM_PCLK_SAMPLE_RISING | SOCAM_MASTER |
721 SOCAM_HSYNC_ACTIVE_HIGH | 721 SOCAM_VSYNC_ACTIVE_HIGH | SOCAM_HSYNC_ACTIVE_HIGH |
722 SOCAM_VSYNC_ACTIVE_HIGH |
723 SOCAM_MASTER |
724 priv->info->buswidth; 722 priv->info->buswidth;
723
724 return soc_camera_apply_sensor_flags(icl, flags);
725} 725}
726 726
727static int ov772x_get_chip_id(struct soc_camera_device *icd, 727static int ov772x_get_chip_id(struct soc_camera_device *icd,