提交 a1789d3a 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

V4L/DVB (3117): Fix broken TV standard check.

- Fix incorrect matching of TV standards leading to incorrect IFPCoff values.
Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@brturbo.com.br>
上级 f98c55ea
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册