Fwd: 9-CURRENT r214444 && webcamd-0.1.20_1 && skype-2.0.0.72,1

Matthias Apitz guru at unixarea.de
Sat Mar 19 09:21:46 UTC 2011


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 at unixarea.de> - w http://www.unixarea.de/


More information about the freebsd-multimedia mailing list