From: Jean-François Moine Date: Mon, 27 Feb 2012 11:49:49 +0000 (-0300) Subject: [media] gspca - zc3xx: Set the exposure at start of hv7131r X-Git-Tag: firefly_0821_release~3680^2~275^2~2692 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a2d2b25ce623757a87b35ef336d2d2c3b0a6fa13;p=firefly-linux-kernel-4.4.55.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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: