summaryrefslogtreecommitdiff
path: root/drivers/media/video/tuner-simple.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-01-09 20:25:19 +0300
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 20:25:19 +0300
commita1789d3aea9e1eca676de011e1e3ebe9171cf9cb (patch)
treef2ee1416bf1f96cf3180baea42953293f7b4c3f3 /drivers/media/video/tuner-simple.c
parentf98c55ea18e87905bdf69eb4a187e94572ed9494 (diff)
downloadlinux-a1789d3aea9e1eca676de011e1e3ebe9171cf9cb.tar.xz
V4L/DVB (3117): Fix broken TV standard check.
- Fix incorrect matching of TV standards leading to incorrect IFPCoff values. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/video/tuner-simple.c')
-rw-r--r--drivers/media/video/tuner-simple.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/video/tuner-simple.c b/drivers/media/video/tuner-simple.c
index 9bd52993d366..95818bfcb5c0 100644
--- a/drivers/media/video/tuner-simple.c
+++ b/drivers/media/video/tuner-simple.c
@@ -902,11 +902,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;