From 411a29bb5ac6ea1346ae54dbfcc84550641b8e8f Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Mon, 5 Dec 2005 21:32:29 +0000 Subject: Fix broken TV standard check. Fix incorrect matching of TV standards leading to incorrect IFPCoff values. Signed-off-by: Hans Verkuil --- linux/drivers/media/video/tuner-simple.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'linux/drivers') 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; -- cgit v1.2.3