Commit 1b879c43 authored by Frej Drejhammar's avatar Frej Drejhammar Committed by Mauro Carvalho Chehab

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: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent a8ac6889
...@@ -239,6 +239,18 @@ static struct cx88_ctrl cx8800_ctls[] = { ...@@ -239,6 +239,18 @@ static struct cx88_ctrl cx8800_ctls[] = {
.reg = MO_INPUT_FORMAT, .reg = MO_INPUT_FORMAT,
.mask = 1 << 10, .mask = 1 << 10,
.shift = 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 --- */ /* --- audio --- */
.v = { .v = {
...@@ -295,6 +307,7 @@ const u32 cx88_user_ctrls[] = { ...@@ -295,6 +307,7 @@ const u32 cx88_user_ctrls[] = {
V4L2_CID_AUDIO_BALANCE, V4L2_CID_AUDIO_BALANCE,
V4L2_CID_AUDIO_MUTE, V4L2_CID_AUDIO_MUTE,
V4L2_CID_CHROMA_AGC, V4L2_CID_CHROMA_AGC,
V4L2_CID_COLOR_KILLER,
0 0
}; };
EXPORT_SYMBOL(cx88_user_ctrls); EXPORT_SYMBOL(cx88_user_ctrls);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment