Skip to content

Commit

Permalink
[media] gspca_sonixb: Adjust autoexposure window for vga cams so that…
Browse files Browse the repository at this point in the history
… it is centered

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed Jan 19, 2011
1 parent 0a76cb8 commit f913c00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/gspca/sonixb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ static void do_autogain(struct gspca_dev *gspca_dev)
desired_avg_lum = 5000;
} else {
deadzone = 1500;
desired_avg_lum = 18000;
desired_avg_lum = 13000;
}

if (sensor_data[sd->sensor].flags & F_COARSE_EXPO)
Expand Down Expand Up @@ -1135,7 +1135,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
} else {
regs[0x1a] = 0x1d; /* HO_SIZE 960, makes no sense */
regs[0x1b] = 0x10; /* VO_SIZE 512, makes no sense */
regs[0x1c] = 0x02; /* AE H-start 64 */
regs[0x1c] = 0x05; /* AE H-start 160 */
regs[0x1d] = 0x03; /* AE V-start 96 */
regs[0x1e] = 0x0f; /* AE H-end 480 */
regs[0x1f] = 0x0c; /* AE V-end 384 */
Expand Down

0 comments on commit f913c00

Please sign in to comment.