Skip to content

Commit

Permalink
[media] gspca_pac7302: avoid duplicate calls of the image quality adj…
Browse files Browse the repository at this point in the history
…ustment functions on capturing start

There is no need to call the image quality adjustment functions in sd_start.
The gspca main driver calls v4l2_ctrl_handler_setup in gspca_init_transfer,
which already applies all image control values.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Frank Schäfer authored and Mauro Carvalho Chehab committed Sep 13, 2012
1 parent f58e5cd commit 0e68785
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/media/usb/gspca/pac7302.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,14 +673,6 @@ static int sd_start(struct gspca_dev *gspca_dev)

reg_w_var(gspca_dev, start_7302,
page3_7302, sizeof(page3_7302));
setbrightcont(gspca_dev);
setcolors(gspca_dev);
setwhitebalance(gspca_dev);
setredbalance(gspca_dev);
setbluebalance(gspca_dev);
setexposure(gspca_dev);
setgain(gspca_dev);
sethvflip(gspca_dev);

sd->sof_read = 0;
sd->autogain_ignore_frames = 0;
Expand Down

0 comments on commit 0e68785

Please sign in to comment.