aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-07-14 02:18:39 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-07-24 13:03:26 -0400
commitd36bb4e77257ed0df86deca3f69794f037f68c7d (patch)
tree0e9352299d3158eb6f9fff87a3dcff9a39e881f5 /drivers/media/video/em28xx/em28xx.h
parent2ea472ff704a8a94b3b9abec438db23e512be337 (diff)
V4L/DVB (12243): em28xx: allow specifying sensor xtal frequency
In order to properly estimate fps, mt9v011 sensor driver needs to know what is the used frequency on the sensor cristal. Adds the proper fields and initialization code for specifying the cristal frequency. Also, based on experimentation, it was noticed that the Silvercrest is outputing data at 7 fps. This means that it should be using a 6.3 MHz cristal. This information needs to be double checked later, by opening the device. Anyway, by using this value for xtal, at least now we have the correct fps report. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r--drivers/media/video/em28xx/em28xx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h
index 71444ddbe40c..ce76633786c8 100644
--- a/drivers/media/video/em28xx/em28xx.h
+++ b/drivers/media/video/em28xx/em28xx.h
@@ -478,8 +478,10 @@ struct em28xx {
478 struct v4l2_device v4l2_dev; 478 struct v4l2_device v4l2_dev;
479 struct em28xx_board board; 479 struct em28xx_board board;
480 480
481 /* Webcam specific fields */
481 enum em28xx_sensor em28xx_sensor; 482 enum em28xx_sensor em28xx_sensor;
482 int sensor_xres, sensor_yres; 483 int sensor_xres, sensor_yres;
484 int sensor_xtal;
483 485
484 unsigned int stream_on:1; /* Locks streams */ 486 unsigned int stream_on:1; /* Locks streams */
485 unsigned int has_audio_class:1; 487 unsigned int has_audio_class:1;