Re: [Linux-uvc-devel] V4L1 backwards compatibility
Linux UVC driver and tools
Brought to you by:
pinchartl
|
From: Eduardo P. U. <edu...@uc...> - 2006-02-13 13:45:09
|
I'm trying to make this driver work with applications like mplayer, xawtv, vic, gnomemeeting but I can't get it working with any of these applications. I think the patch suggested by Mikael should be applied to support v4l1 only applications. I'm attaching a patch that get some of the applications mentioned get more ioctls working but still no luck. Has anybody made this driver work with the mentioned applications? I'm using a Logitech QuickCam Pro 5000 On 2006-02-06 22:59:08 +0100, Mikael Nilsson wrote: > If I understand the kernel API correctly, something like this patch > *should* bring V4L1 compatibility to the uvc driver. However, I don't > get a picture in gnomemeeting (old version, not ekiga), and not in the > proprietary app I talked about. > > I suppose there might be a reson why this cannot work. Can anyone > enlighten me? > > Index: uvcvideo.c > =================================================================== > --- uvcvideo.c (revision 17) > +++ uvcvideo.c (working copy) > @@ -2139,7 +2139,8 @@ > > default: > uvc_trace(UVC_TRACE_IOCTL, "Unknown ioctl 0x%08x\n", cmd); > - return -ENOIOCTLCMD; > + return v4l_compat_translate_ioctl(inode,file,cmd,arg, > + uvc_v4l2_do_ioctl); > } > > return 0; > > lör 2006-02-04 klockan 23:23 +0100 skrev Mikael Nilsson: > > lör 2006-02-04 klockan 23:05 +0100 skrev michel Xhaard: > > > Mikael > > > This driver design is v4l2 only . The v4L1 compat only works for old driver to > > > the new interface, but a young driver, like uvcvideo works directly on v4l2. > > > > Hmmm? Are you sure? This is the text in v4l1-compat.c: > > > > * Video for Linux Two > > * Backward Compatibility Layer > > * > > * Support subroutines for providing V4L2 drivers with backward > > * compatibility with applications using the old API. > > * > > > > I read this as support for *new* drivers and *old* applications, not the > > other way around. But then again, I'm no expert... |