mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
V4L/DVB: gspca_cpia1: Restore QX3 illuminators' state on resume
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>
This commit is contained in:
parent
51513353ec
commit
c67be3ccd7
@ -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)",
|
||||
|
Loading…
Reference in New Issue
Block a user