gspca_cpia1: Restore QX3 illuminators' state on resume
PATCH v2 2/3 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 <[email protected]>
linux/drivers/media/video/gspca/cpia1.c +4 -0
@@ -1756,6 +1756,10 @@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)",
Ack!
Acked-by Hans de Goede <[email protected]>
Quoted 26 lines · Andy Walls
Turn the lights of the QX3 on (or off) as needed when resuming and at module load.
Signed-off-by Andy Walls<[email protected]>diff -r
f09faf8dd85d-r5e576066eeaflinux/drivers/media/video/gspca/cpia1.clinux/drivers/media/video/gspca/cpia1.c +4
-0@@ -1756,6 +1756,10 @@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)",