From owner-freebsd-multimedia@FreeBSD.ORG Sat Mar 19 09:21:46 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D381F1065677 for ; Sat, 19 Mar 2011 09:21:46 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 68B008FC14 for ; Sat, 19 Mar 2011 09:21:46 +0000 (UTC) Received: from [88.217.16.6] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Q0sLx-0007xa-0S for freebsd-multimedia@freebsd.org; Sat, 19 Mar 2011 10:21:45 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id p2J9Li0C003122 for ; Sat, 19 Mar 2011 10:21:44 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id p2J9LiFb003121 for freebsd-multimedia@freebsd.org; Sat, 19 Mar 2011 10:21:44 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 19 Mar 2011 10:21:44 +0100 From: Matthias Apitz To: freebsd-multimedia@freebsd.org Message-ID: <20110319092143.GA3068@tinyCurrent> References: <20110318064409.GA5136@tinyCurrent> <201103180828.43798.hselasky@c2i.net> <20110318164218.GA2091@tinyCurrent> <201103181745.10148.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201103181745.10148.hselasky@c2i.net> X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Originating-IP: 88.217.16.6 Subject: Re: Fwd: 9-CURRENT r214444 && webcamd-0.1.20_1 && skype-2.0.0.72,1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2011 09:21:46 -0000 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 - w http://www.unixarea.de/