Skip to content

Commit

Permalink
V4L/DVB (3117): Fix broken TV standard check.
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jan 9, 2006
1 parent f98c55e commit a1789d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/media/video/tuner-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a1789d3

Please sign in to comment.