projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4663117
)
V4L/DVB: gspca - sq930x: Change the gain value for Micron sensors
author
Jean-François Moine
<moinejf@free.fr>
Mon, 26 Jul 2010 09:58:18 +0000
(06:58 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 9 Aug 2010 02:42:52 +0000
(23:42 -0300)
The bit 7 of the sensor gain register multiplies the 7bits value by two.
It is now always set with half the user gain value.
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/sq930x.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/gspca/sq930x.c
b/drivers/media/video/gspca/sq930x.c
index
8032190
..
04516b4
100644
(file)
--- a/
drivers/media/video/gspca/sq930x.c
+++ b/
drivers/media/video/gspca/sq930x.c
@@
-862,7
+862,7
@@
static void setexposure(struct gspca_dev *gspca_dev)
buf[i++] = 0x35; /* reg = global gain */
buf[i++] = 0x00; /* val H */
buf[i++] = sensor->i2c_dum;
- buf[i++] =
sd->gain;
/* val L */
+ buf[i++] =
0x80 + sd->gain / 2;
/* val L */
buf[i++] = 0x00;
buf[i++] = 0x00;
buf[i++] = 0x00;