Webcam and linux-gspca-kmod

Luigi Rizzo rizzo at iet.unipi.it
Fri May 23 09:06:38 UTC 2008


On Fri, May 23, 2008 at 03:58:43PM +0800, Yong-Jhen Hong wrote:
> Hi all,
> 
> I want to enable the use of built-in webcam on my Asus W5F, so I have
> less reason and time to reboot into other OS ;)
...
> I look into the source tree of FreeBSD, thinking that the msleep() API
> change should be nearer to kernel version 700054 than 700100, so I make
> this one line change to
> $PREFIX/share/linux-kmod-compat/linux_compat/linux_compat.c
> 
> <diff>
> -#if __FreeBSD_version > 700100
> +#if __FreeBSD_version > 700054
> </diff>

ok thanks for the patch, i will try to fix this in the next release.

> But when I launch Gnome Cheese to test the driver, it still doesn't
> work, with dmesg:

in order to test the driver, the best option is to use
the 'pwcview' program in the linux-kmod-compat directory.

Re. other applications, one thing to remember is that the freebsd
port of gspca does not support mmap, which seems to be the preferred
access method for Linux apps.  So you need to rewrite a small piece
of the client using read() to a locally allocated buffer to access
the video.

A patch of this kind for linphone is at

	http://info.iet.unipi.it/~luigi/patch-msv4l.c

see if you can do something similar with your program.

	cheers
	luigi


More information about the freebsd-multimedia mailing list