The patch number 9850 was added via Jean-Francois Moine <moin...@free.fr>
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:
        v4l-dvb-maintai...@linuxtv.org

------

From: Jean-Francois Moine  <moin...@free.fr>
gspca: Bad color control in sonixj.


Priority: normal

Signed-off-by: Jean-Francois Moine <moin...@free.fr>


---

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

diff -r 159e643b8637 -r 51d8a2e93548 linux/drivers/media/video/gspca/sonixj.c
--- a/linux/drivers/media/video/gspca/sonixj.c  Tue Dec 02 10:56:47 2008 +0100
+++ b/linux/drivers/media/video/gspca/sonixj.c  Tue Dec 02 10:58:57 2008 +0100
@@ -1220,17 +1220,17 @@ static void setcolors(struct gspca_dev *
 {
        struct sd *sd = (struct sd *) gspca_dev;
        int i, v;
-       __u8 rega0[12];                 /* U & V gains */
+       __u8 reg8a[12];                 /* U & V gains */
        static __s16 uv[6] = {          /* same as reg84 in signed decimal */
                -24, -38, 64,           /* UR UG UB */
                 62, -51, -9            /* VR VG VB */
        };
        for (i = 0; i < 6; i++) {
                v = uv[i] * sd->colors / COLOR_DEF;
-               rega0[i * 2] = v;
-               rega0[i * 2 + 1] = (v >> 8) & 0x0f;
-       }
-       reg_w(gspca_dev, 0x84, rega0, sizeof rega0);
+               reg8a[i * 2] = v;
+               reg8a[i * 2 + 1] = (v >> 8) & 0x0f;
+       }
+       reg_w(gspca_dev, 0x8a, reg8a, sizeof reg8a);
 }
 
 static void setredblue(struct gspca_dev *gspca_dev)


---

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

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

Reply via email to