summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-François Moine <moinejf@free.fr>2012-02-27 15:49:49 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-08 15:05:13 +0400
commita2d2b25ce623757a87b35ef336d2d2c3b0a6fa13 (patch)
treea7b7f3c75394d75510df6925fa334e2bd33d2822
parent6028c3268404c1323da09b1dc5bbff56b79364a1 (diff)
downloadlinux-a2d2b25ce623757a87b35ef336d2d2c3b0a6fa13.tar.xz
[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>
-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: