diff options
author | Nickolay V. Shmyrev <nshmyrev@yandex.ru> | 2005-11-09 00:37:39 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:19 -0500 |
commit | 3ae1adc6ed93d55a27523f395284940fbe056401 (patch) | |
tree | 8e8ccbed3d907c82b27154ff73d701d5f1782f14 | |
parent | 71633c05724d85f1afb87629bb96fdf2ef18b41f (diff) |
[PATCH] v4l: 795: new config option for tda9887 to specifically set intercarrier
- New config option for tda9887 to specifically set intercarrier
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/media/video/cx88/cx88-cards.c | 2 | ||||
-rw-r--r-- | drivers/media/video/tda9887.c | 2 | ||||
-rw-r--r-- | include/media/tuner.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88-cards.c b/drivers/media/video/cx88/cx88-cards.c index 6a85ba111fb1..cf17da836914 100644 --- a/drivers/media/video/cx88/cx88-cards.c +++ b/drivers/media/video/cx88/cx88-cards.c | |||
@@ -206,7 +206,7 @@ struct cx88_board cx88_boards[] = { | |||
206 | .radio_type = UNSET, | 206 | .radio_type = UNSET, |
207 | .tuner_addr = ADDR_UNSET, | 207 | .tuner_addr = ADDR_UNSET, |
208 | .radio_addr = ADDR_UNSET, | 208 | .radio_addr = ADDR_UNSET, |
209 | .tda9887_conf = TDA9887_PRESENT, | 209 | .tda9887_conf = TDA9887_PRESENT | TDA9887_INTERCARRIER_NTSC, |
210 | .input = {{ | 210 | .input = {{ |
211 | .type = CX88_VMUX_TELEVISION, | 211 | .type = CX88_VMUX_TELEVISION, |
212 | .vmux = 0, | 212 | .vmux = 0, |
diff --git a/drivers/media/video/tda9887.c b/drivers/media/video/tda9887.c index 3a7babef06f4..796110d4ff72 100644 --- a/drivers/media/video/tda9887.c +++ b/drivers/media/video/tda9887.c | |||
@@ -464,6 +464,8 @@ static int tda9887_set_config(struct tda9887 *t, char *buf) | |||
464 | break; | 464 | break; |
465 | } | 465 | } |
466 | } | 466 | } |
467 | if ((t->config & TDA9887_INTERCARRIER_NTSC) && (t->std & V4L2_STD_NTSC)) | ||
468 | buf[1] &= ~cQSS; | ||
467 | return 0; | 469 | return 0; |
468 | } | 470 | } |
469 | 471 | ||
diff --git a/include/media/tuner.h b/include/media/tuner.h index 7cc74b1bb6ea..81025323267f 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
@@ -148,6 +148,7 @@ | |||
148 | # define TDA9887_INTERCARRIER (1<<4) | 148 | # define TDA9887_INTERCARRIER (1<<4) |
149 | # define TDA9887_PORT1_ACTIVE (1<<5) | 149 | # define TDA9887_PORT1_ACTIVE (1<<5) |
150 | # define TDA9887_PORT2_ACTIVE (1<<6) | 150 | # define TDA9887_PORT2_ACTIVE (1<<6) |
151 | # define TDA9887_INTERCARRIER_NTSC (1<<7) | ||
151 | /* config options */ | 152 | /* config options */ |
152 | # define TDA9887_DEEMPHASIS_MASK (3<<16) | 153 | # define TDA9887_DEEMPHASIS_MASK (3<<16) |
153 | # define TDA9887_DEEMPHASIS_NONE (1<<16) | 154 | # define TDA9887_DEEMPHASIS_NONE (1<<16) |