summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <devnull@localhost>2005-12-05 21:32:29 +0000
committerHans Verkuil <devnull@localhost>2005-12-05 21:32:29 +0000
commit411a29bb5ac6ea1346ae54dbfcc84550641b8e8f (patch)
tree783c503406ecdc06958f409c4a589c97df067abd
parent35c4852224fc55280f08e04050717e6e95caff34 (diff)
downloadmediapointer-dvb-s2-411a29bb5ac6ea1346ae54dbfcc84550641b8e8f.tar.gz
mediapointer-dvb-s2-411a29bb5ac6ea1346ae54dbfcc84550641b8e8f.tar.bz2
Fix broken TV standard check.
Fix incorrect matching of TV standards leading to incorrect IFPCoff values. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
-rw-r--r--linux/drivers/media/video/tuner-simple.c9
-rw-r--r--v4l/ChangeLog8
2 files changed, 13 insertions, 4 deletions
diff --git a/linux/drivers/media/video/tuner-simple.c b/linux/drivers/media/video/tuner-simple.c
index 0c9f43421..dcb927785 100644
--- a/linux/drivers/media/video/tuner-simple.c
+++ b/linux/drivers/media/video/tuner-simple.c
@@ -1,5 +1,5 @@
/*
- * $Id: tuner-simple.c,v 1.62 2005/11/30 16:22:53 mchehab Exp $
+ * $Id: tuner-simple.c,v 1.63 2005/12/05 21:32:29 hverkuil Exp $
*
* i2c tv tuner chip device driver
* controls all those simple 4-control-bytes style tuners.
@@ -920,11 +920,12 @@ static void default_set_tv_freq(struct i2c_client *c, unsigned int freq)
171.2=16*10.70 FM Radio (at set_radio_freq)
*/
- if (t->std & V4L2_STD_NTSC_M_JP) {
+ if (t->std == V4L2_STD_NTSC_M_JP) {
IFPCoff = 940;
- } else if (t->std & V4L2_STD_MN) {
+ } else if ((t->std & V4L2_STD_MN) &&
+ !(t->std & ~V4L2_STD_MN)) {
IFPCoff = 732;
- } else if (t->std & V4L2_STD_SECAM_LC) {
+ } else if (t->std == V4L2_STD_SECAM_LC) {
IFPCoff = 543;
} else {
IFPCoff = 623;
diff --git a/v4l/ChangeLog b/v4l/ChangeLog
index 1d33583c9..910a0501a 100644
--- a/v4l/ChangeLog
+++ b/v4l/ChangeLog
@@ -1,3 +1,11 @@
+2005-12-05 21:30 hverkuil
+
+ * linux/drivers/media/video/tuner-simple.c: (default_set_tv_freq):
+ - Fix incorrect matching of TV standards leading to incorrect IFPCoff
+ values.
+
+ Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
+
2005-12-05 21:24 hverkuil
* linux/drivers/media/video/tda9887.c: (tda9887_set_insmod),