Skip to content

Commit

Permalink
V4L/DVB: gspca_cpia1: Restore QX3 illuminators' state on resume
Browse files Browse the repository at this point in the history
Turn the lights of the QX3 on (or off) as needed when resuming and at module load.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Andy Walls authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent 5151335 commit c67be3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/video/gspca/cpia1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,10 @@ static int sd_init(struct gspca_dev *gspca_dev)
if (ret)
return ret;

/* Ensure the QX3 illuminators' states are restored upon resume */
if (sd->params.qx3.qx3_detected)
command_setlights(gspca_dev);

sd_stopN(gspca_dev);

PDEBUG(D_PROBE, "CPIA Version: %d.%02d (%d.%d)",
Expand Down

0 comments on commit c67be3c

Please sign in to comment.