From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 3 21:30:48 2012 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 4CD0910656D0 for ; Tue, 3 Jan 2012 21:30:48 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id CEF7D8FC15 for ; Tue, 3 Jan 2012 21:30:47 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 223729992; Tue, 03 Jan 2012 22:30:45 +0100 From: Hans Petter Selasky To: Matthias Apitz Date: Tue, 3 Jan 2012 22:28:18 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <20120101164408.GA2389@tinyCurrent> <201201030924.08045.hselasky@c2i.net> <20120103181538.GA3129@tinyCurrent> In-Reply-To: <20120103181538.GA3129@tinyCurrent> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@ =?iso-8859-1?q?d2+AyewRX=7DmAm=3BYp=0A=09=7CU=5B?=@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y> =?iso-8859-1?q?Y=7Dk1C4TfysrsUI=0A=09-=25GU9V5=5DiUZF=26nRn9mJ=27=3F=26?=>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201201032228.19293.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org Subject: Re: webcamd/cuse4bsd && Skype 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, 03 Jan 2012 21:30:48 -0000 On Tuesday 03 January 2012 19:15:38 Matthias Apitz wrote: > El d=EDa Tuesday, January 03, 2012 a las 09:24:08AM +0100, Hans Petter Se= lasky=20 escribi=F3: > > Hi, > >=20 > > > (u32)(long)arg, when passing to IOCTL functions. > >=20 > > I meant printing the "cmd" value. "arg" value can be negative if a > > pointer is passed along. > >=20 > > Try to figure out which ioctl is failing. Maybe run webcamd from gdb and > > add some code you can break-point on, then single step. >=20 > Hi, >=20 Hi, > The failing ioctls are (only 2 are sent down from Skype): >=20 > Creating /dev/video0 > mydebug: v4b_open fflags: 00000003 > mydebug: linux_open: handle=3D28c08600 > mydebug: v4b_ioctl: handle=3D28c08600 cmd=3D0x40047601 > mydebug: linux_ioctl returns: error=3Dffffffea > mydebug: v4b_convert_error: CUSE_ERR_INVALID #define VIDIOC_G_FMT _IOWR('V', 4, struct v4l2_format) #define VIDIOC_S_CROP _IOW('V', 60, struct v4l2_crop) Try to print the two above IOCTL's and see if they match. It might be a compile issues that some structures have different sizes than= =20 expected. > mydebug: v4b_ioctl: handle=3D28c08600 cmd=3D0x403c7601 > mydebug: linux_ioctl returns: error=3Dffffffea > mydebug: v4b_convert_error: CUSE_ERR_INVALID > mydebug: v4b_close: handle=3D28c08600 >=20 > (cmd is printed as 'cmd=3D0x%08x') The cmds are defined in the header files in /usr/local/include/linux/*/* Also there might be a module parameter that will get you more debugging inf= o=20 from the UVC/PWC driver. Check output from "webcamd -s". =2D-HPS