diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-12-02 10:58:57 +0100 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-12-02 10:58:57 +0100 |
commit | 18a1649ef4ce188d4f62e37be85055bdfa5d6c97 (patch) | |
tree | b3c530e27367b89873779373be59a9362e4dbe68 /linux/drivers/media/video/gspca | |
parent | ce9193f864e672d15847eac5e1c86e9c4094904d (diff) | |
download | mediapointer-dvb-s2-18a1649ef4ce188d4f62e37be85055bdfa5d6c97.tar.gz mediapointer-dvb-s2-18a1649ef4ce188d4f62e37be85055bdfa5d6c97.tar.bz2 |
gspca: Bad color control in sonixj.
From: Jean-Francois Moine <moinejf@free.fr>
Priority: normal
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca')
-rw-r--r-- | linux/drivers/media/video/gspca/sonixj.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/video/gspca/sonixj.c b/linux/drivers/media/video/gspca/sonixj.c index fb8b42daf..a0ff265cd 100644 --- a/linux/drivers/media/video/gspca/sonixj.c +++ b/linux/drivers/media/video/gspca/sonixj.c @@ -1220,17 +1220,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) |