From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]:36590 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754531Ab0IMHSg (ORCPT ); Mon, 13 Sep 2010 03:18:36 -0400 Message-ID: <4C8DD041.4010207@redhat.com> Date: Mon, 13 Sep 2010 09:18:25 +0200 From: Hans de Goede MIME-Version: 1.0 To: Andy Walls CC: linux-media@vger.kernel.org, Jean-Francois Moine Subject: Re: [PATCH v2 2/3] gspca_cpia1: Restore QX3 illuminators' state on resume References: <1284313518.2027.31.camel@morgan.silverblock.net> In-Reply-To: <1284313518.2027.31.camel@morgan.silverblock.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-ID: Sender: Ack! Acked-by: Hans de Goede On 09/12/2010 07:45 PM, Andy Walls wrote: > Turn the lights of the QX3 on (or off) as needed when resuming and at module > load. > > Signed-off-by: Andy Walls > > 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)", > > > > > > >