summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrej Drejhammar <frej.drejhammar@gmail.com>2008-03-23 22:43:24 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 14:07:56 -0300
commit1b879c43811933514130421548fff7640e84d8e5 (patch)
treeee25007c11241fe03fcd7c1d604e13dd5522e58c
parenta8ac688938b89ab0fa8ffe16da0facdc73a70588 (diff)
downloadop-kernel-dev-1b879c43811933514130421548fff7640e84d8e5.zip
op-kernel-dev-1b879c43811933514130421548fff7640e84d8e5.tar.gz
V4L/DVB (7454): cx88: Add user control for color killer
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@gmail.com>" Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/cx88/cx88-video.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c
index f9bcb9d..548ec49 100644
--- a/drivers/media/video/cx88/cx88-video.c
+++ b/drivers/media/video/cx88/cx88-video.c
@@ -240,6 +240,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,
@@ -295,6 +307,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);
OpenPOWER on IntegriCloud