summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/zc3xx.c
diff options
context:
space:
mode:
authorJean-François Moine <moinejf@free.fr>2012-02-27 12:49:49 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-08 12:05:13 +0100
commita2d2b25ce623757a87b35ef336d2d2c3b0a6fa13 (patch)
treea7b7f3c75394d75510df6925fa334e2bd33d2822 /drivers/media/video/gspca/zc3xx.c
parent[media] gspca - zc3xx: Fix bad sensor values when changing autogain (diff)
downloadlinux-a2d2b25ce623757a87b35ef336d2d2c3b0a6fa13.tar.xz
linux-a2d2b25ce623757a87b35ef336d2d2c3b0a6fa13.zip
[media] gspca - zc3xx: Set the exposure at start of hv7131r
The exposure was not set when autogain was set. 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/zc3xx.c')
-rw-r--r--drivers/media/video/gspca/zc3xx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c
index 091000611528..c10bdb422271 100644
--- a/drivers/media/video/gspca/zc3xx.c
+++ b/drivers/media/video/gspca/zc3xx.c
@@ -6875,8 +6875,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
reg_w(gspca_dev, 0x40, 0x0117);
break;
case SENSOR_HV7131R:
- if (!sd->ctrls[AUTOGAIN].val)
- setexposure(gspca_dev);
+ setexposure(gspca_dev);
reg_w(gspca_dev, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN);
break;
case SENSOR_GC0305: