Patch for BT848 module

Gordon Chaffee (chaffee@quimby.cs.berkeley.edu)
Mon, 22 Dec 1997 00:38:14 -0800 (PST)


Here is a small patch that fixes a compile error in the bttv module,
and it calls the video device initialization routine.

--- linux-2.1.75-clean/drivers/char/bttv.c Sun Dec 21 21:56:52 1997
+++ linux/drivers/char/bttv.c Mon Dec 22 00:04:05 1997
@@ -1265,11 +1265,11 @@

case VIDIOCGAUDIO:
{
- struct video_audio vp;
- vp=btv->audio_dev;
- vp.flags&=~(VIDEO_AUDIO_MUTE|VIDEO_AUDIO_MUTABLE);
- vp.flags|=VIDEO_AUDIO_MUTABLE;
- strcpy(vp.name,"TV");
+ struct video_audio v;
+ v=btv->audio_dev;
+ v.flags&=~(VIDEO_AUDIO_MUTE|VIDEO_AUDIO_MUTABLE);
+ v.flags|=VIDEO_AUDIO_MUTABLE;
+ strcpy(v.name,"TV");
if(copy_to_user(&v,arg,sizeof(v)))
return -EFAULT;
return 0;
--- linux-2.1.75-clean/drivers/char/mem.c Sun Dec 21 21:56:52 1997
+++ linux/drivers/char/mem.c Mon Dec 22 00:32:47 1997
@@ -550,5 +550,8 @@
#ifdef CONFIG_FTAPE
ftape_init();
#endif
+#ifdef CONFIG_VIDEO_DEV
+ videodev_init();
+#endif
return 0;
}