Date: Tue, 3 Jan 2012 22:28:18 +0100 From: Hans Petter Selasky <hselasky@c2i.net> To: Matthias Apitz <guru@unixarea.de> Cc: freebsd-multimedia@freebsd.org Subject: Re: webcamd/cuse4bsd && Skype Message-ID: <201201032228.19293.hselasky@c2i.net> In-Reply-To: <20120103181538.GA3129@tinyCurrent> References: <20120101164408.GA2389@tinyCurrent> <201201030924.08045.hselasky@c2i.net> <20120103181538.GA3129@tinyCurrent>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201032228.19293.hselasky>