Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56053
b: refs/heads/master
c: 452c0fb
h: refs/heads/master
i:
  56051: 4a2105b
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed May 9, 2007
1 parent 97d20b6 commit 740d819
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1088b1373506fd75d2ac80433b847f116b917bc9
refs/heads/master: 452c0fb46b1d68b1dae37cea7ccebd70a80397e4
14 changes: 13 additions & 1 deletion trunk/drivers/media/video/videodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,12 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
}

#ifdef CONFIG_VIDEO_V4L1_COMPAT
/***********************************************************
Handles calls to the obsoleted V4L1 API
Due to the nature of VIDIOCGMBUF, each driver that supports
V4L1 should implement its own handler for this ioctl.
***********************************************************/

/* --- streaming capture ------------------------------------- */
if (cmd == VIDIOCGMBUF) {
struct video_mbuf *p=arg;
Expand All @@ -453,11 +459,17 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
(unsigned long)p->offsets);
return ret;
}
#endif

/********************************************************
All other V4L1 calls are handled by v4l1_compat module.
Those calls will be translated into V4L2 calls, and
__video_do_ioctl will be called again, with one or more
V4L2 ioctls.
********************************************************/
if (_IOC_TYPE(cmd)=='v')
return v4l_compat_translate_ioctl(inode,file,cmd,arg,
__video_do_ioctl);
#endif

switch(cmd) {
/* --- capabilities ------------------------------------------ */
Expand Down

0 comments on commit 740d819

Please sign in to comment.