From patchwork Mon Feb 2 19:14:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?RXJpayBBbmRyw4PCqW4=?= X-Patchwork-Id: 5101 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n12KNbxp014412 for ; Mon, 2 Feb 2009 20:23:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753833AbZBBUXh (ORCPT ); Mon, 2 Feb 2009 15:23:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753726AbZBBUXh (ORCPT ); Mon, 2 Feb 2009 15:23:37 -0500 Received: from pne-smtpout1-sn1.fre.skanova.net ([81.228.11.98]:52172 "EHLO pne-smtpout1-sn1.fre.skanova.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753331AbZBBUXg (ORCPT ); Mon, 2 Feb 2009 15:23:36 -0500 X-Greylist: delayed 4146 seconds by postgrey-1.27 at vger.kernel.org; Mon, 02 Feb 2009 15:23:36 EST Received: from [192.168.0.100] (90.224.104.93) by pne-smtpout1-sn1.fre.skanova.net (7.3.129) id 47A9795005DE05EF for linux-media@vger.kernel.org; Mon, 2 Feb 2009 20:14:27 +0100 Message-ID: <49874612.1000109@gmail.com> Date: Mon, 02 Feb 2009 20:14:26 +0100 From: =?ISO-8859-1?Q?Erik_Andr=E9n?= User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: linux-media@vger.kernel.org Subject: [PATCH]Add green balance v4l2 ctrl support X-Enigmail-Version: 0.95.6 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, The m5602 gspca driver has two sensors offering the possiblity to control the green balance. This patch adds a v4l2 ctrl for this. Regards, Erik Signed-off-by: Erik Andrén -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkmHRhEACgkQN7qBt+4UG0FAKACgsnXERjLdZL/D+2Ze3KkC6GJc PowAnAkr/0+IT2jB00qCUuqS7OhBmhtG =UfNN -----END PGP SIGNATURE----- diff -r 24361cfb8615 linux/include/linux/videodev2.h --- a/linux/include/linux/videodev2.h Wed Jan 28 16:55:17 2009 +0100 +++ b/linux/include/linux/videodev2.h Wed Jan 28 17:11:39 2009 +0100 @@ -879,8 +879,10 @@ #define V4L2_CID_BACKLIGHT_COMPENSATION (V4L2_CID_BASE+28) #define V4L2_CID_CHROMA_AGC (V4L2_CID_BASE+29) #define V4L2_CID_COLOR_KILLER (V4L2_CID_BASE+30) + +#define V4L2_CID_GREEN_BALANCE (V4L2_CID_BASE+31) /* last CID + 1 */ -#define V4L2_CID_LASTP1 (V4L2_CID_BASE+31) +#define V4L2_CID_LASTP1 (V4L2_CID_BASE+32) /* MPEG-class control IDs defined by V4L2 */ #define V4L2_CID_MPEG_BASE (V4L2_CTRL_CLASS_MPEG | 0x900)