From patchwork Sat Jun 4 07:38:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marco_Diego_Aur=C3=A9lio_Mesquita?= X-Patchwork-Id: 849142 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p547cFGQ000362 for ; Sat, 4 Jun 2011 07:38:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752474Ab1FDHiN (ORCPT ); Sat, 4 Jun 2011 03:38:13 -0400 Received: from mail-px0-f179.google.com ([209.85.212.179]:62305 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790Ab1FDHiM convert rfc822-to-8bit (ORCPT ); Sat, 4 Jun 2011 03:38:12 -0400 Received: by pxi2 with SMTP id 2so1678350pxi.10 for ; Sat, 04 Jun 2011 00:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ga79jneZsnS+iIQXBjqd0w9hWxRt5xzUYKutkcTGwsI=; b=OFzQDgmKvBzKkIgc5aKR6Eks3+/5FiHHT6xkj8m5w5oB0mG1bdEN0NawEnJgbRSk9D MBOP5Rhn/vJ0eygKKCh8Lo4FvU3ZC8ZXIf/w0H+lM6ENiY9jvwpP/tPlAyqTeJYi5aXq nSylFjZDr3mVjApk11RvOdOviCsBqmF3bn0nA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=japdb96FtuEZV4TTe/fP9a0ogx/ckIELUzWwQylLrdSnGfimTPZeQavFURQhW5agnh DcuNWXnB7SfhlBW1sAmqGemofulJPQwMi3tTtesUN0Qktwls5eHoNfi15kxux4wN0snO 0EwcYWLifZr2TptvFokEmdrQtGzqd5MLv8g3c= MIME-Version: 1.0 Received: by 10.68.28.106 with SMTP id a10mr1133112pbh.401.1307173092099; Sat, 04 Jun 2011 00:38:12 -0700 (PDT) Received: by 10.68.63.194 with HTTP; Sat, 4 Jun 2011 00:38:12 -0700 (PDT) Date: Sat, 4 Jun 2011 04:38:12 -0300 Message-ID: Subject: [PATCH] Increase max exposure value to 255 from 26. From: =?ISO-8859-1?Q?Marco_Diego_Aur=E9lio_Mesquita?= To: linux-media@vger.kernel.org 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.6 (demeter2.kernel.org [140.211.167.43]); Sat, 04 Jun 2011 07:38:16 +0000 (UTC) The inline patch increases maximum exposure value from 26 to 255. It has been tested and works well. Without the patch the captured image is too dark and can't be improved too much. Please CC answers as I'm not subscribed to the list. Signed-off-by: Marco Diego Aurélio Mesquita --- drivers/media/video/gspca/pac207.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c index 892b454..6a2fb26 100644 --- a/drivers/media/video/gspca/pac207.c +++ b/drivers/media/video/gspca/pac207.c @@ -39,7 +39,7 @@ MODULE_LICENSE("GPL"); #define PAC207_BRIGHTNESS_DEFAULT 46 #define PAC207_EXPOSURE_MIN 3 -#define PAC207_EXPOSURE_MAX 26 +#define PAC207_EXPOSURE_MAX 255 #define PAC207_EXPOSURE_DEFAULT 5 /* power on default: 3 */ #define PAC207_EXPOSURE_KNEE 8 /* 4 = 30 fps, 11 = 8, 15 = 6 */