diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-03-23 22:43:21 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-03-23 22:43:21 +0000 |
commit | 3c3c7a09f67b2a233bb32d98b3df6f483d084938 (patch) | |
tree | 8994c82dc95e201e6cf0bba6828baa1ec8149617 /linux/drivers/media/video/cx88/cx88-core.c | |
parent | 61c3ec3f76deac31da89cd2055fd87990320e8f2 (diff) | |
download | mediapointer-dvb-s2-3c3c7a09f67b2a233bb32d98b3df6f483d084938.tar.gz mediapointer-dvb-s2-3c3c7a09f67b2a233bb32d98b3df6f483d084938.tar.bz2 |
cx88: Add user control for chroma AGC
From: Frej Drejhammar <frej.drejhammar@gmail.com>
The cx2388x family has support for chroma AGC. This patch implements a
the V4L2_CID_CHROMA_AGC control for the cx2388x family. By default
chroma AGC 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/cx88-core.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-core.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-core.c b/linux/drivers/media/video/cx88/cx88-core.c index 1c6ac4528..63a104789 100644 --- a/linux/drivers/media/video/cx88/cx88-core.c +++ b/linux/drivers/media/video/cx88/cx88-core.c @@ -958,7 +958,11 @@ int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm) dprintk(1,"set_tvnorm: MO_INPUT_FORMAT 0x%08x [old=0x%08x]\n", cxiformat, cx_read(MO_INPUT_FORMAT) & 0x0f); - cx_andor(MO_INPUT_FORMAT, 0xf, cxiformat); + /* Chroma AGC must be disabled if SECAM is used */ + if (norm & V4L2_STD_SECAM) + cx_andor(MO_INPUT_FORMAT, 0x40f, cxiformat); + else + cx_andor(MO_INPUT_FORMAT, 0xf, cxiformat); #if 1 // FIXME: as-is from DScaler |