diff options
Diffstat (limited to 'drivers/media/video/gspca/sonixj.c')
-rw-r--r-- | drivers/media/video/gspca/sonixj.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index 698f200df233..1f94cfd32c00 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) | |||
1207 | { | 1207 | { |
1208 | struct sd *sd = (struct sd *) gspca_dev; | 1208 | struct sd *sd = (struct sd *) gspca_dev; |
1209 | int i, v; | 1209 | int i, v; |
1210 | __u8 rega0[12]; /* U & V gains */ | 1210 | __u8 reg8a[12]; /* U & V gains */ |
1211 | static __s16 uv[6] = { /* same as reg84 in signed decimal */ | 1211 | static __s16 uv[6] = { /* same as reg84 in signed decimal */ |
1212 | -24, -38, 64, /* UR UG UB */ | 1212 | -24, -38, 64, /* UR UG UB */ |
1213 | 62, -51, -9 /* VR VG VB */ | 1213 | 62, -51, -9 /* VR VG VB */ |
1214 | }; | 1214 | }; |
1215 | for (i = 0; i < 6; i++) { | 1215 | for (i = 0; i < 6; i++) { |
1216 | v = uv[i] * sd->colors / COLOR_DEF; | 1216 | v = uv[i] * sd->colors / COLOR_DEF; |
1217 | rega0[i * 2] = v; | 1217 | reg8a[i * 2] = v; |
1218 | rega0[i * 2 + 1] = (v >> 8) & 0x0f; | 1218 | reg8a[i * 2 + 1] = (v >> 8) & 0x0f; |
1219 | } | 1219 | } |
1220 | reg_w(gspca_dev, 0x84, rega0, sizeof rega0); | 1220 | reg_w(gspca_dev, 0x8a, reg8a, sizeof reg8a); |
1221 | } | 1221 | } |
1222 | 1222 | ||
1223 | static void setredblue(struct gspca_dev *gspca_dev) | 1223 | static void setredblue(struct gspca_dev *gspca_dev) |