From patchwork Fri Jan 29 20:07:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TsODwqltZXRoIE3Dg8KhcnRvbg==?= X-Patchwork-Id: 75837 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o0TK7rU0002280 for ; Fri, 29 Jan 2010 20:07:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753738Ab0A2UHw (ORCPT ); Fri, 29 Jan 2010 15:07:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753903Ab0A2UHw (ORCPT ); Fri, 29 Jan 2010 15:07:52 -0500 Received: from mail01d.mail.t-online.hu ([84.2.42.6]:51808 "EHLO mail01d.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753694Ab0A2UHv (ORCPT ); Fri, 29 Jan 2010 15:07:51 -0500 Received: from [192.168.1.67] (dsl5402C4B8.pool.t-online.hu [84.2.196.184]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail01d.mail.t-online.hu (Postfix) with ESMTPSA id 53727759171; Fri, 29 Jan 2010 21:05:02 +0100 (CET) Message-ID: <4B63400E.3000502@freemail.hu> Date: Fri, 29 Jan 2010 21:07:42 +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: Hans de Goede CC: Jean-Francois Moine , V4L Mailing List Subject: [PATCH gspca_jf tree] gspca zc3xx: signal when unknown packet received X-DCC-mail.t-online.hu-Metrics: mail01d.mail.t-online.hu 32711; Body=3 Fuz1=3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 29 Jan 2010 20:07:53 +0000 (UTC) diff -r 95d3956ea3e5 linux/drivers/media/video/gspca/zc3xx.c --- a/linux/drivers/media/video/gspca/zc3xx.c Fri Jan 29 15:05:25 2010 +0100 +++ b/linux/drivers/media/video/gspca/zc3xx.c Fri Jan 29 21:01:52 2010 +0100 @@ -7213,14 +7213,17 @@ u8 *data, /* interrupt packet data */ int len) /* interrput packet length */ { + int ret = -EINVAL; + if (len == 8 && data[4] == 1) { input_report_key(gspca_dev->input_dev, KEY_CAMERA, 1); input_sync(gspca_dev->input_dev); input_report_key(gspca_dev->input_dev, KEY_CAMERA, 0); input_sync(gspca_dev->input_dev); + ret = 0; } - return 0; + return ret; } #endif