aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoristvan_v@mailbox.hu <istvan_v@mailbox.hu>2011-07-31 05:53:29 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-08-27 10:21:16 -0400
commit84b271488dcd2499e9d2c7cfa2abacfd4c5cd744 (patch)
tree5f41aff73d837894bf88222390cc0d2b656a4ed1
parent2b50763a0b082e1fc40cca2a9b8936abf6e2437e (diff)
[media] cx88: notch filter control fixes
This patch reduces the number of available choices for the notch filter type control so that the standard-specific filter types cannot be selected. It is now limited to being either 0 (4xFsc, the default) or 1 (square pixel optimized). The patch also removes the initialization of this control from cx88_reset(), since that is already done by init_controls(), which is called by cx8800_initdev(). Signed-off-by: Istvan Varga <istvan_v@mailbox.hu> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/cx88/cx88-core.c3
-rw-r--r--drivers/media/video/cx88/cx88-video.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/video/cx88/cx88-core.c b/drivers/media/video/cx88/cx88-core.c
index fbcaa1c5b09d..fbfdd8067937 100644
--- a/drivers/media/video/cx88/cx88-core.c
+++ b/drivers/media/video/cx88/cx88-core.c
@@ -636,9 +636,6 @@ int cx88_reset(struct cx88_core *core)
636 cx_write(MO_PCI_INTSTAT, 0xFFFFFFFF); // Clear PCI int 636 cx_write(MO_PCI_INTSTAT, 0xFFFFFFFF); // Clear PCI int
637 cx_write(MO_INT1_STAT, 0xFFFFFFFF); // Clear RISC int 637 cx_write(MO_INT1_STAT, 0xFFFFFFFF); // Clear RISC int
638 638
639 /* set default notch filter */
640 cx_andor(MO_HTOTAL, 0x1800, (HLNotchFilter4xFsc << 11));
641
642 /* Reset on-board parts */ 639 /* Reset on-board parts */
643 cx_write(MO_SRST_IO, 0); 640 cx_write(MO_SRST_IO, 0);
644 msleep(10); 641 msleep(10);
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c
index 60d28fdd7791..921c56d115d6 100644
--- a/drivers/media/video/cx88/cx88-video.c
+++ b/drivers/media/video/cx88/cx88-video.c
@@ -266,7 +266,7 @@ static const struct cx88_ctrl cx8800_ctls[] = {
266 .id = V4L2_CID_BAND_STOP_FILTER, 266 .id = V4L2_CID_BAND_STOP_FILTER,
267 .name = "Notch filter", 267 .name = "Notch filter",
268 .minimum = 0, 268 .minimum = 0,
269 .maximum = 3, 269 .maximum = 1,
270 .step = 1, 270 .step = 1,
271 .default_value = 0x0, 271 .default_value = 0x0,
272 .type = V4L2_CTRL_TYPE_INTEGER, 272 .type = V4L2_CTRL_TYPE_INTEGER,