From patchwork Sat Nov 7 07:27:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOpbWV0aCBNw6FydG9u?= X-Patchwork-Id: 1980 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Sat, 07 Nov 2009 07:27:37 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra.chehab.org with IMAP (fetchmail-6.3.6) for (single-drop); Sat, 07 Nov 2009 08:49:24 -0200 (BRST) Received: from vger.kernel.org ([209.132.176.167]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1N6fhw-0001Rz-UY; Sat, 07 Nov 2009 07:27:37 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750923AbZKGH1Z (ORCPT + 1 other); Sat, 7 Nov 2009 02:27:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750935AbZKGH1Z (ORCPT ); Sat, 7 Nov 2009 02:27:25 -0500 Received: from mail02d.mail.t-online.hu ([84.2.42.7]:56857 "EHLO mail02d.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750871AbZKGH1Y (ORCPT ); Sat, 7 Nov 2009 02:27:24 -0500 Received: from [192.168.1.64] (dsl5402C46E.pool.t-online.hu [84.2.196.110]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail02d.mail.t-online.hu (Postfix) with ESMTPSA id 0C74B75843A; Sat, 7 Nov 2009 08:27:13 +0100 (CET) Message-ID: <4AF5215E.8090601@freemail.hu> Date: Sat, 07 Nov 2009 08:27:26 +0100 From: =?UTF-8?B?TsOpbWV0aCBNw6FydG9u?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16 MIME-Version: 1.0 To: Jean-Francois Moine , V4L Mailing List Subject: [PATCH] gspca pac7302: remove redundant stream off command X-DCC-mail.t-online.hu-Metrics: mail02d.mail.t-online.hu 32721; Body=2 Fuz1=2 Fuz2=2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Márton Németh The stream off command is sent to the device twice, one is enough. The patch was tested together with Labtec Webcam 2200 (USB ID 093a:2626). Signed-off-by: Márton Németh --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r 40705fec2fb2 linux/drivers/media/video/gspca/pac7302.c --- a/linux/drivers/media/video/gspca/pac7302.c Fri Nov 06 15:54:49 2009 -0200 +++ b/linux/drivers/media/video/gspca/pac7302.c Sat Nov 07 08:21:19 2009 +0100 @@ -627,8 +627,8 @@ static void sd_stopN(struct gspca_dev *gspca_dev) { + /* stop stream */ reg_w(gspca_dev, 0xff, 0x01); - reg_w(gspca_dev, 0x78, 0x00); reg_w(gspca_dev, 0x78, 0x00); }