From owner-freebsd-multimedia@FreeBSD.ORG Tue Oct 5 09:46:48 2010 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 F10BB1065679 for ; Tue, 5 Oct 2010 09:46:48 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id A39FA8FC1F for ; Tue, 5 Oct 2010 09:46:48 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3B163.dip.t-dialin.net [87.179.177.99]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 9EEA784400A; Tue, 5 Oct 2010 11:46:44 +0200 (CEST) Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 309D6170E; Tue, 5 Oct 2010 11:46:41 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o959kcrj013809; Tue, 5 Oct 2010 11:46:38 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 05 Oct 2010 11:46:37 +0200 Message-ID: <20101005114637.12616q8s2ee68dgk@webmail.leidinger.net> Date: Tue, 05 Oct 2010 11:46:37 +0200 From: Alexander Leidinger To: Jashank Jeremy References: <20101004080136.GF11972@vk2pj.dyndns.org> <201010041224.27506.hselasky@c2i.net> <20101004223134.GH11972@vk2pj.dyndns.org> In-Reply-To: <20101004223134.GH11972@vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 9EEA784400A.A2AE9 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=1.874, required 6, autolearn=disabled, J_CHICKENPOX_52 0.60, RDNS_NONE 1.27) X-EBL-MailScanner-SpamScore: s X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1286876806.10705@Hh8HhOwRfUIr6+0GtSv1wA X-EBL-Spam-Status: No Cc: Multimedia discussions Subject: Re: Skype not getting video from webcam X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 09:46:49 -0000 Quoting Jashank Jeremy (from Tue, 5 Oct 2010 09:31:34 +1100): > On Mon, Oct 04, 2010 at 12:24:27PM +0200, Hans Petter Selasky wrote: >> The IOCTL's are being changed by the Linux-oxulator. See linux.ko. > > So the Linuxolator is changing ioctl(2); that I would expect. What I > don't expect is it to change one ioctl(2) into a completely unrelated > one. > > uvcvideo: uvc_v4l2_ioctl(VIDIOCGCAP) > uvcvideo: Unknown ioctl 0x40047601 > uvcvideo: uvc_v4l2_ioctl(VIDIOCGCAP) > uvcvideo: Trying format 0x56595559 (YUYV): 10000x10000. > uvcvideo: Using default frame interval 200000.0 us (5.0 fps). > > corresponds to > > 86117 skype CALL linux_ioctl(0xb,0x80685600 ,0x2dc9e014) > 86117 skype RET linux_ioctl -1 errno 22 Invalid argument > 86117 skype CALL linux_ioctl(0xb,0x803c7601 ,0x2dc9e07c) > 86117 skype RET linux_ioctl 0 > > The ioctl(2)'s are completely different, and when I go and check the > lookup table in stable/8/sys/compat/linux/linux_ioctl.h, I find: > > #define LINUX_VT_OPENQRY 0x5600 > #define LINUX_VIDIOCGCAP 0x7601 > > Why is Skype sending a VT_OPENQRY, and webcamd receiving it as a > VIDIOCGCAP? I'm not sure this is what is happening. The OPENQRY gets the "Invalid argument" response, not an "Unknown ioctl"/ENOSYS. Maybe you need to add some printfs to linux_ioctl.c to find out what is going on there. Bye, Alexander. -- Professor Farnsworth: "Oh my, that steamed carrot was a bit spicy for me." http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137