Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2012 12:21:45 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: webcamd/cuse4bsd && Skype
Message-ID:  <20120308112144.GA1540@tiny>
In-Reply-To: <201203080744.55805.hselasky@c2i.net>
References:  <20120101164408.GA2389@tinyCurrent> <20120106160400.GA87768@tinyCurrent> <20120306115747.GA1796@tiny> <201203080744.55805.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Thursday, March 08, 2012 a las 07:44:55AM +0100, Hans Petter Selasky escribió:

> > Hello Hans,
> > 
> > Can we please return to this thread?
> > 
> > The problem was/is that the Linux binary skype-2.0.0.72,1 is sending
> > V4L1 ioctl's, the cam only understands V4l2 ioctl's and webcamd(8) does
> > not translate them to V4l2; you wanted to check why?
> 
> Hi,
> 
> Webcamd compiles the Linux code which translates V4L1 IOCTL into V4L2 IOCTL's 
> maybe the IOCTL's are not numerically right?
> 
> media_tree/drivers/media/video/v4l2-compat-ioctl32.c
> 
> Add some breakpoints in that file and run webcamd from GDB.

Hi,

I haven't used GDB, but only a look into tha above source; it says
"conversion between 32bit and 64bit native ioctls" and in the defines I
only see for example _IOWR('V', 4,...) i.e. with capital 'V' while v4l1
is 'v' small v (0x76..);

I don't see how this could translate v4l1 into v4l2 ioctls; am I
missing some point here?

Thanks

	matthias
-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120308112144.GA1540>