The patch number 8828 was added via Jean-Francois Moine <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Jean-Francois Moine  <[EMAIL PROTECTED]>
gspca: Set the clock at the end of initialization in sonixj.


Priority: high

Signed-off-by: Jean-Francois Moine <[EMAIL PROTECTED]>


---

 linux/drivers/media/video/gspca/sonixj.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff -r c144ad859a68 -r ccbaefe61186 linux/drivers/media/video/gspca/sonixj.c
--- a/linux/drivers/media/video/gspca/sonixj.c  Tue Aug 26 18:51:51 2008 +0200
+++ b/linux/drivers/media/video/gspca/sonixj.c  Tue Aug 26 19:45:11 2008 +0200
@@ -460,7 +460,7 @@ static const __u8 ov7630_sensor_init[][8
        {0xa1, 0x21, 0x2b, 0x34, 0x00, 0x00, 0x00, 0x10},
 /* */
        {0xa1, 0x21, 0x10, 0x83, 0x00, 0x00, 0x00, 0x10},
-       {0xb1, 0x21, 0x01, 0x88, 0x70, 0x00, 0x00, 0x10},
+/*     {0xb1, 0x21, 0x01, 0x88, 0x70, 0x00, 0x00, 0x10}, */
        {}
 };
 static const __u8 ov7660_sensor_init[][8] = {
@@ -833,12 +833,13 @@ static int configure_gpio(struct gspca_d
                reg_w1(gspca_dev, 0x17, 0xae);
                reg_w1(gspca_dev, 0x01, 0x42);
                break;
-#if 0
+#if 1
 /*jfm: from win trace */
        case SENSOR_OV7660:
                reg_w1(gspca_dev, 0x01, 0x61);
                reg_w1(gspca_dev, 0x17, 0x20);
                reg_w1(gspca_dev, 0x01, 0x60);
+               reg_w1(gspca_dev, 0x01, 0x40);
                break;
 #endif
        default:
@@ -1111,7 +1112,7 @@ static void setbrightcont(struct gspca_d
 {
        struct sd *sd = (struct sd *) gspca_dev;
        unsigned val;
-       __u8 reg84_full[13];
+       __u8 reg84_full[0x15];
 
        memset(reg84_full, 0, sizeof reg84_full);
        val = sd->contrast * 0x20 / CONTRAST_MAX + 0x10;        /* 10..30 */
@@ -1123,7 +1124,7 @@ static void setbrightcont(struct gspca_d
                        / BRIGHTNESS_MAX;
        else
                val = 0;
-       reg84_full[10] = val;                   /* 00..1f */
+       reg84_full[0x12] = val;                 /* 00..1f */
        reg_w(gspca_dev, 0x84, reg84_full, sizeof reg84_full);
 }
 
@@ -1219,7 +1220,6 @@ static void sd_start(struct gspca_dev *g
        sn9c1xx = sn_tb[(int) sd->sensor];
        configure_gpio(gspca_dev, sn9c1xx);
 
-/*     reg_w1(gspca_dev, 0x01, 0x44);          jfm from win trace*/
        reg_w1(gspca_dev, 0x15, sn9c1xx[0x15]);
        reg_w1(gspca_dev, 0x16, sn9c1xx[0x16]);
        reg_w1(gspca_dev, 0x12, sn9c1xx[0x12]);
@@ -1355,7 +1355,6 @@ static void sd_start(struct gspca_dev *g
        reg_w1(gspca_dev, 0x18, reg18);
 
        reg_w1(gspca_dev, 0x17, reg17);
-       reg_w1(gspca_dev, 0x01, reg1);
        switch (sd->sensor) {
        case SENSOR_HV7131R:
        case SENSOR_MI0360:
@@ -1369,6 +1368,7 @@ static void sd_start(struct gspca_dev *g
                break;
        }
        setautogain(gspca_dev);
+       reg_w1(gspca_dev, 0x01, reg1);
 }
 
 static void sd_stopN(struct gspca_dev *gspca_dev)


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/ccbaefe6118671f8e920d0279eaa983e718a2277

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to