diff options
author | Jean-François Moine <moinejf@free.fr> | 2010-07-26 11:58:18 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-09 04:42:52 +0200 |
commit | b3c0af6e1f870dc1ade19382177f931f47499d86 (patch) | |
tree | 17cf3c3ab817e6f9dc19801573f30ece5b8c8ce4 /drivers/media/video/gspca/sq930x.c | |
parent | V4L/DVB: gspca - sq930x: Bad init sequence for sensor mt9v111 (diff) | |
download | linux-b3c0af6e1f870dc1ade19382177f931f47499d86.tar.xz linux-b3c0af6e1f870dc1ade19382177f931f47499d86.zip |
V4L/DVB: gspca - sq930x: Change the gain value for Micron sensors
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>
Diffstat (limited to 'drivers/media/video/gspca/sq930x.c')
-rw-r--r-- | drivers/media/video/gspca/sq930x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/sq930x.c b/drivers/media/video/gspca/sq930x.c index 8032190cd12a..04516b42283a 100644 --- 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; |