提交 4ab3f08b 编写于 作者: J Johannes Stezenbach 提交者: Linus Torvalds

[PATCH] dvb: av7110: fix NTSC/PAL switching

fix NTSC -> PAL switching (std->id is a bitmap!) (Oliver Endriss)
Signed-off-by: NJohannes Stezenbach <js@linuxtv.org>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 a65d3bb7
...@@ -726,11 +726,11 @@ static int std_callback(struct saa7146_dev* dev, struct saa7146_standard *std) ...@@ -726,11 +726,11 @@ static int std_callback(struct saa7146_dev* dev, struct saa7146_standard *std)
{ {
struct av7110 *av7110 = (struct av7110*) dev->ext_priv; struct av7110 *av7110 = (struct av7110*) dev->ext_priv;
if (std->id == V4L2_STD_PAL) { if (std->id & V4L2_STD_PAL) {
av7110->vidmode = VIDEO_MODE_PAL; av7110->vidmode = VIDEO_MODE_PAL;
av7110_set_vidmode(av7110, av7110->vidmode); av7110_set_vidmode(av7110, av7110->vidmode);
} }
else if (std->id == V4L2_STD_NTSC) { else if (std->id & V4L2_STD_NTSC) {
av7110->vidmode = VIDEO_MODE_NTSC; av7110->vidmode = VIDEO_MODE_NTSC;
av7110_set_vidmode(av7110, av7110->vidmode); av7110_set_vidmode(av7110, av7110->vidmode);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册