aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mt9m111.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/mt9m111.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/mt9m111.c')
-rw-r--r--drivers/media/video/mt9m111.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/mt9m111.c b/drivers/media/video/mt9m111.c
index b4a238f49600..b0e6046ea967 100644
--- a/drivers/media/video/mt9m111.c
+++ b/drivers/media/video/mt9m111.c
@@ -415,9 +415,13 @@ static int mt9m111_stop_capture(struct soc_camera_device *icd)
415 415
416static unsigned long mt9m111_query_bus_param(struct soc_camera_device *icd) 416static unsigned long mt9m111_query_bus_param(struct soc_camera_device *icd)
417{ 417{
418 return SOCAM_MASTER | SOCAM_PCLK_SAMPLE_RISING | 418 struct mt9m111 *mt9m111 = container_of(icd, struct mt9m111, icd);
419 struct soc_camera_link *icl = mt9m111->client->dev.platform_data;
420 unsigned long flags = SOCAM_MASTER | SOCAM_PCLK_SAMPLE_RISING |
419 SOCAM_HSYNC_ACTIVE_HIGH | SOCAM_VSYNC_ACTIVE_HIGH | 421 SOCAM_HSYNC_ACTIVE_HIGH | SOCAM_VSYNC_ACTIVE_HIGH |
420 SOCAM_DATAWIDTH_8; 422 SOCAM_DATAWIDTH_8;
423
424 return soc_camera_apply_sensor_flags(icl, flags);
421} 425}
422 426
423static int mt9m111_set_bus_param(struct soc_camera_device *icd, unsigned long f) 427static int mt9m111_set_bus_param(struct soc_camera_device *icd, unsigned long f)