summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-core.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-09-25 22:44:06 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2006-09-25 22:44:06 -0400
commited09f5a6d29bd6e33fb9cfc374afe3d605e9f180 (patch)
tree56d90f881814d092f823980770e0ab0da045355a /linux/drivers/media/video/cx88/cx88-core.c
parent9e37591ebf7dd9108a308b367cbe01f13c6b6b3c (diff)
downloadmediapointer-dvb-s2-ed09f5a6d29bd6e33fb9cfc374afe3d605e9f180.tar.gz
mediapointer-dvb-s2-ed09f5a6d29bd6e33fb9cfc374afe3d605e9f180.tar.bz2
cx88: fix analog capture notch filter
From: Lars Gjesse Kjellberg <lars.g.kjellberg@get2net.dk> This patch changes the setting of the cx2388x notch filter to match that of the video capture sample frequency, removing some annoying interference lines THAT would appear when capturing composite video. This has been tested in PAL and NTSC TV norms. It sets the Y/C separation luma notch filter, which removes the chroma signal from the luma signal when using a composite input. The luma notch filter operates at the video decoder's frequency, not the ADC's frequency or at the frequency of the scaled video. Y/C separation happens after the sample rate converter, before video scaling. The datasheet provides plots of the filter response for three _video decoder_ frequencies, 4x Fsc, square pixel, and ccir601. These are the same three frequencies for the notch filter control. It seems pretty clear that this filter should be set based on the video decoder frequency. The cx88 driver always uses a video decoder frequency of 4xFsc. Signed-off-by: Lars Gjesse Kjellberg <lars.g.kjellberg@get2net.dk> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-core.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-core.c b/linux/drivers/media/video/cx88/cx88-core.c
index 27e9a7c80..b3f3f4719 100644
--- a/linux/drivers/media/video/cx88/cx88-core.c
+++ b/linux/drivers/media/video/cx88/cx88-core.c
@@ -700,9 +700,7 @@ static unsigned int inline norm_fsc8(struct cx88_tvnorm *norm)
static unsigned int inline norm_notchfilter(struct cx88_tvnorm *norm)
{
- return (norm->id & V4L2_STD_625_50)
- ? HLNotchFilter135PAL
- : HLNotchFilter135NTSC;
+ return HLNotchFilter4xFsc;
}
static unsigned int inline norm_htotal(struct cx88_tvnorm *norm)