This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-dvb.git tree:

Subject: V4L/DVB: gspca - ov534: Fix and document setting manual exposure
Author:  Antonio Ospite <[email protected]>
Date:    Mon Mar 1 08:53:34 2010 -0300

Document that even if the state is a u8 value, both MSB and LSB are set
as sd->exposure represents half of the value we are going to set into
registers.

Skip setting exposure when AEC is enabled.

Signed-off-by: Antonio Ospite <[email protected]>
Signed-off-by: Jean-François Moine <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/video/gspca/ov534.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

---

http://git.linuxtv.org/v4l-dvb.git?a=commitdiff;h=c8b4264e60b378aa73dc59d434c930bc9345c890

diff --git a/drivers/media/video/gspca/ov534.c 
b/drivers/media/video/gspca/ov534.c
index 2d89650..4fda098 100644
--- a/drivers/media/video/gspca/ov534.c
+++ b/drivers/media/video/gspca/ov534.c
@@ -686,6 +686,15 @@ static void setexposure(struct gspca_dev *gspca_dev)
        struct sd *sd = (struct sd *) gspca_dev;
        u8 val;
 
+       if (sd->aec)
+               return;
+
+       /* 'val' is one byte and represents half of the exposure value we are
+        * going to set into registers, a two bytes value:
+        * 
+        *    MSB: ((u16) val << 1) >> 8   == val >> 7
+        *    LSB: ((u16) val << 1) & 0xff == val << 1
+        */
        val = sd->exposure;
        sccb_reg_write(gspca_dev, 0x08, val >> 7);
        sccb_reg_write(gspca_dev, 0x10, val << 1);

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to