Date: Sat, 19 Mar 2011 10:21:44 +0100 From: Matthias Apitz <guru@unixarea.de> To: freebsd-multimedia@freebsd.org Subject: Re: Fwd: 9-CURRENT r214444 && webcamd-0.1.20_1 && skype-2.0.0.72,1 Message-ID: <20110319092143.GA3068@tinyCurrent> In-Reply-To: <201103181745.10148.hselasky@c2i.net> References: <20110318064409.GA5136@tinyCurrent> <201103180828.43798.hselasky@c2i.net> <20110318164218.GA2091@tinyCurrent> <201103181745.10148.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
El día Friday, March 18, 2011 a las 05:45:10PM +0100, Hans Petter Selasky escribió: > On Friday 18 March 2011 17:42:18 Matthias Apitz wrote: > > 7601 > > Just convert the 4 last hex digits into two ASCII's and lookup in > /usr/local/include/linux/dvb/*.h Following the hints and helping hand of Hans Peter, I have inserted debug printf()'s in webcamd.c to see why the cam in my netbook is working with Kopete, but not with Skype... Kopete uses only ioctl's with cmd of the type 0x56.. (i.e. 'V'+..) which are defined in /usr/local/include/linux/videodev2.h as: /* * I O C T L C O D E S F O R V I D E O D E V I C E S * */ #define VIDIOC_QUERYCAP _IOR('V', 0, struct v4l2_capability) #define VIDIOC_RESERVED _IO('V', 1) ... here is what is produced by Kopete: webcamdDebug: v4b_ioctl(*cdev, fflags=00000003, cmd=40685600, *peer_data webcamdDebug: linux_ioctl() returned 0 webcamdDebug: v4b_ioctl() returning 0 webcamdDebug: v4b_ioctl(*cdev, fflags=00000003, cmd=c0cc5604, *peer_data webcamdDebug: linux_ioctl() returned 0 webcamdDebug: v4b_ioctl() returning 0 webcamdDebug: v4b_ioctl(*cdev, fflags=00000003, cmd=c0cc5605, *peer_data webcamdDebug: linux_ioctl() returned 0 webcamdDebug: v4b_ioctl() returning 0 ... while Skype only uses ioctl's of the type 0x76.. (i.e. 'v'+..) webcamdDebug: v4b_ioctl(*cdev, fflags=00000007, cmd=40047601, *peer_data webcamdDebug: linux_ioctl() returned -22 webcamdDebug: v4b_ioctl() returning -3 webcamdDebug: v4b_ioctl(*cdev, fflags=00000007, cmd=403c7601, *peer_data webcamdDebug: linux_ioctl() returned 0 webcamdDebug: v4b_ioctl() returning 0 How is this supposed to work? Thx matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <guru@unixarea.de> - w http://www.unixarea.de/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110319092143.GA3068>