Web lists-archives.org

[PATCH 5 of 6] cx88: Add user control for color killer




1 file changed, 13 insertions(+)
linux/drivers/media/video/cx88/cx88-video.c |   13 +++++++++++++


# HG changeset patch
# User "Frej Drejhammar <frej.drejhammar@xxxxxxxxx>"
# Date 1206312016 -3600
# Node ID 77bef451d41348f8e5ca6b24fe402199ac243ead
# Parent  b3a7ec84ad4959869d50710bfcbfb997fb39850d
cx88: Add user control for color killer

From: "Frej Drejhammar <frej.drejhammar@xxxxxxxxx>"

The cx2388x family has a color killer. This patch implements the
V4L2_CID_COLOR_KILLER control for the cx2388x family. By default the
color killer is disabled, as in previous versions of the driver.

Signed-off-by: "Frej Drejhammar <frej.drejhammar@xxxxxxxxx>"

diff -r b3a7ec84ad49 -r 77bef451d413 linux/drivers/media/video/cx88/cx88-video.c
--- a/linux/drivers/media/video/cx88/cx88-video.c	Sun Mar 23 23:39:29 2008 +0100
+++ b/linux/drivers/media/video/cx88/cx88-video.c	Sun Mar 23 23:40:16 2008 +0100
@@ -256,6 +256,18 @@ static struct cx88_ctrl cx8800_ctls[] = 
 		.mask                  = 1 << 10,
 		.shift                 = 10,
 	}, {
+		.v = {
+			.id            = V4L2_CID_COLOR_KILLER,
+			.name          = "Color killer",
+			.minimum       = 0,
+			.maximum       = 1,
+			.default_value = 0x0,
+			.type          = V4L2_CTRL_TYPE_BOOLEAN,
+		},
+		.reg                   = MO_INPUT_FORMAT,
+		.mask                  = 1 << 9,
+		.shift                 = 9,
+	}, {
 	/* --- audio --- */
 		.v = {
 			.id            = V4L2_CID_AUDIO_MUTE,
@@ -311,6 +323,7 @@ const u32 cx88_user_ctrls[] = {
 	V4L2_CID_AUDIO_BALANCE,
 	V4L2_CID_AUDIO_MUTE,
 	V4L2_CID_CHROMA_AGC,
+	V4L2_CID_COLOR_KILLER,
 	0
 };
 EXPORT_SYMBOL(cx88_user_ctrls);

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list