Skip to contentSkip to conversation

gspca_cpia1: Restore QX3 illuminators' state on resume

PATCH In review Andy Walls 2 participants 2 messages Sep 12, 2010 – Sep 13, 2010 Media (V4L/DVB)

lore
Share & tools
lore

Andy Walls

author
#0 lore raw

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.

linux/drivers/media/video/gspca/cpia1.c +4 -0
diff -r f09faf8dd85d -r 5e576066eeaf linux/drivers/media/video/gspca/cpia1.c
@@ -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)",
Acked-by on v2 2/3
#1 lore raw

Ack!

Quoted 26 lines · Andy Walls

Turn the lights of the QX3 on (or off) as needed when resuming and at module load.

diff -r f09faf8dd85d -r 5e576066eeaf linux/drivers/media/video/gspca/cpia1.c

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)",