summaryrefslogtreecommitdiff
path: root/drivers/media/video/gspca/pac_common.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-02-17 17:59:19 +0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 21:11:09 +0300
commit5fb2dde28122e74bbab9dae3cc04bcbc8c08b332 (patch)
treeaaea47e29bf8a3783d5112c5000b3d4974f27e67 /drivers/media/video/gspca/pac_common.h
parent0e4b91c30605ae030d4ff63c5160e54c1bc2682c (diff)
downloadlinux-5fb2dde28122e74bbab9dae3cc04bcbc8c08b332.tar.xz
V4L/DVB: gspca_pac7302: much improved exposure control
My experience with fixing up the controls for the PAS sensors in sonixb, has lead me to re-investigate the exposure control for the pac7302. I've now found a regular exposure register in register bank 3 (which seems to be the sensor registers bank), and with this added a proper fine grained exposure control. This patch also updates the do_autogain function to work properly with this new finer grained control. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/pac_common.h')
-rw-r--r--drivers/media/video/gspca/pac_common.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/video/gspca/pac_common.h b/drivers/media/video/gspca/pac_common.h
index 20f67d9b8c06..8462a7c1a338 100644
--- a/drivers/media/video/gspca/pac_common.h
+++ b/drivers/media/video/gspca/pac_common.h
@@ -24,11 +24,10 @@
*/
/* We calculate the autogain at the end of the transfer of a frame, at this
- moment a frame with the old settings is being transmitted, and a frame is
- being captured with the old settings. So if we adjust the autogain we must
- ignore atleast the 2 next frames for the new settings to come into effect
- before doing any other adjustments */
-#define PAC_AUTOGAIN_IGNORE_FRAMES 3
+ moment a frame with the old settings is being captured and transmitted. So
+ if we adjust the gain or exposure we must ignore atleast the next frame for
+ the new settings to come into effect before doing any other adjustments. */
+#define PAC_AUTOGAIN_IGNORE_FRAMES 2
static const unsigned char pac_sof_marker[5] =
{ 0xff, 0xff, 0x00, 0xff, 0x96 };