patch-2.2.17 linux/drivers/char/bttv.c
Next file: linux/drivers/char/console.c
Previous file: linux/drivers/char/adbmouse.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Mon Sep 4 18:39:17 2000
- Orig file:
v2.2.16/drivers/char/bttv.c
- Orig date:
Mon Sep 4 18:37:31 2000
diff -u --recursive --new-file v2.2.16/drivers/char/bttv.c linux/drivers/char/bttv.c
@@ -1775,8 +1775,7 @@
if (v.channel>tvcards[btv->type].video_inputs)
return -EINVAL;
bt848_muxsel(btv, v.channel);
- if(v.norm!=VIDEO_MODE_PAL&&v.norm!=VIDEO_MODE_NTSC
- &&v.norm!=VIDEO_MODE_SECAM)
+ if (v.norm > (sizeof(tvnorms)/sizeof(*tvnorms)))
return -EOPNOTSUPP;
btv->win.norm = v.norm;
make_vbitab(btv);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)