aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88-video.c
diff options
context:
space:
mode:
authorFrej Drejhammar <frej.drejhammar@gmail.com>2008-03-23 21:43:24 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:56 -0400
commit1b879c43811933514130421548fff7640e84d8e5 (patch)
treeee25007c11241fe03fcd7c1d604e13dd5522e58c /drivers/media/video/cx88/cx88-video.c
parenta8ac688938b89ab0fa8ffe16da0facdc73a70588 (diff)
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>
Diffstat (limited to 'drivers/media/video/cx88/cx88-video.c')
-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 f9bcb9dc8582..548ec492c6b6 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[] = {
240 .mask = 1 << 10, 240 .mask = 1 << 10,
241 .shift = 10, 241 .shift = 10,
242 }, { 242 }, {
243 .v = {
244 .id = V4L2_CID_COLOR_KILLER,
245 .name = "Color killer",
246 .minimum = 0,
247 .maximum = 1,
248 .default_value = 0x0,
249 .type = V4L2_CTRL_TYPE_BOOLEAN,
250 },
251 .reg = MO_INPUT_FORMAT,
252 .mask = 1 << 9,
253 .shift = 9,
254 }, {
243 /* --- audio --- */ 255 /* --- audio --- */
244 .v = { 256 .v = {
245 .id = V4L2_CID_AUDIO_MUTE, 257 .id = V4L2_CID_AUDIO_MUTE,
@@ -295,6 +307,7 @@ const u32 cx88_user_ctrls[] = {
295 V4L2_CID_AUDIO_BALANCE, 307 V4L2_CID_AUDIO_BALANCE,
296 V4L2_CID_AUDIO_MUTE, 308 V4L2_CID_AUDIO_MUTE,
297 V4L2_CID_CHROMA_AGC, 309 V4L2_CID_CHROMA_AGC,
310 V4L2_CID_COLOR_KILLER,
298 0 311 0
299}; 312};
300EXPORT_SYMBOL(cx88_user_ctrls); 313EXPORT_SYMBOL(cx88_user_ctrls);