aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/video/gspca/sonixj.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-12-02 06:58:57 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 09:38:51 -0200
commitbd088835c78bd402711b16940b80bb761a74fa75 (patch)
treecd96c9a8a3a0f60413cdaf1acbdf06e8b0298d7f /drivers/media/video/gspca/sonixj.c
parentd7bb7317d4caca55de72e5bd2229d68ed7cce7af (diff)
V4L/DVB (9850): gspca: Bad color control in sonixj.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/sonixj.c')
-rw-r--r--drivers/media/video/gspca/sonixj.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c
index 698f200df23..1f94cfd32c0 100644
--- a/drivers/media/video/gspca/sonixj.c
+++ b/drivers/media/video/gspca/sonixj.c
@@ -1207,17 +1207,17 @@ static void setcolors(struct gspca_dev *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;
+ reg8a[i * 2] = v;
+ reg8a[i * 2 + 1] = (v >> 8) & 0x0f;
}
- reg_w(gspca_dev, 0x84, rega0, sizeof rega0);
+ reg_w(gspca_dev, 0x8a, reg8a, sizeof reg8a);
}
static void setredblue(struct gspca_dev *gspca_dev)