Re: [Linux-uvc-devel] V4L1 backwards compatibility
Linux UVC driver and tools
Brought to you by:
pinchartl
|
From: Mikael N. <mi...@na...> - 2006-02-06 22:59:18
|
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;
/Mikael
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...
>
> /Mikael
--
Plus ça change, plus c'est la même chose
|