Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2008 10:50:45 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Yong-Jhen Hong <yongjhen@gmail.com>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: Webcam and linux-gspca-kmod
Message-ID:  <20080523085045.GB77439@onelab2.iet.unipi.it>
In-Reply-To: <48367933.8030600@gmail.com>
References:  <48367933.8030600@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080523085045.GB77439>