summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-03-23 22:43:24 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-03-23 22:43:24 +0000
commit7542302fdae5e1d444fba7802d191854185913a9 (patch)
treec7f7cce4e8453e5f64884f5086f5f2f29fbae009 /linux/drivers/media/video/cx88
parent8351fffdd9f3c531dcc2b595bb5c96c19bf019ad (diff)
downloadmediapointer-dvb-s2-7542302fdae5e1d444fba7802d191854185913a9.tar.gz
mediapointer-dvb-s2-7542302fdae5e1d444fba7802d191854185913a9.tar.bz2
cx88: Add user control for color killer
From: Frej Drejhammar <frej.drejhammar@gmail.com> 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>
Diffstat (limited to 'linux/drivers/media/video/cx88')
-rw-r--r--linux/drivers/media/video/cx88/cx88-video.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-video.c b/linux/drivers/media/video/cx88/cx88-video.c
index 8b7e23f2b..dc7c628f2 100644
--- a/linux/drivers/media/video/cx88/cx88-video.c
+++ b/linux/drivers/media/video/cx88/cx88-video.c
@@ -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);