diff mbox

[v2,2/3] gspca_cpia1: Restore QX3 illuminators' state on resume

Message ID 1284313518.2027.31.camel@morgan.silverblock.net (mailing list archive)
State Superseded
Headers show

Commit Message

Andy Walls Sept. 12, 2010, 5:45 p.m. UTC
None
diff mbox

Patch

diff -r f09faf8dd85d -r 5e576066eeaf linux/drivers/media/video/gspca/cpia1.c
--- a/linux/drivers/media/video/gspca/cpia1.c	Sun Sep 12 12:43:45 2010 -0400
+++ b/linux/drivers/media/video/gspca/cpia1.c	Sun Sep 12 12:47:00 2010 -0400
@@ -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)",