[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>
This commit is contained in:
Jean-François Moine 2012-02-27 08:49:49 -03:00 committed by Mauro Carvalho Chehab
parent 6028c32684
commit a2d2b25ce6

View File

@ -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: