Re: [Ekiga-list] Ekiga && V4L && FreeBSD
- From: Matthias Apitz <guru Sisis de>
- To: Ekiga mailing list <ekiga-list gnome org>
- Cc: Steve Ames <steve energistic com>
- Subject: Re: [Ekiga-list] Ekiga && V4L && FreeBSD
- Date: Wed, 19 Mar 2008 13:09:46 +0100
El día Wednesday, March 19, 2008 a las 11:48:00AM +0100, Matthias Apitz escribió:
> What is on Linux the major and minor number of the device file for the
> cam? on FreeBSD it is:
>
> $ ls -l /dev/video0
> crw-rw-rw- 1 root operator 0, 146 19 mar 09:02 /dev/video0
>
> it seems that the algorithm in vidinput_v4l.cxx depends on minor
> numbers below 63 in void V4LNames::ReadDeviceDirectory()
>
> see also the CVS comment:
>
> * Revision 1.3 2003/11/25 22:55:13 dsandras
> * Added fallback using major and minor numbers for detection of devices
> * when /proc/video doesn't exist
> (some 2.4 kernels and all 2.6 kernels).
Yes, it is an issue of major/minor numbers which are diffrent in Linux
and FreeBSD vor the cam; with this small change:
# pwd
/usr/ports/devel/pwlib/work/pwlib_Phobos_release2/plugins/vidinput_v4l
# diff vidinput_v4l.cxx*
462,464c462
< // static const int deviceNumbers[] = { 81 };
< // for FreeBSD's pwc driver the major number is 0 and minor is 146
< static const int deviceNumbers[] = { 0 };
---
> static const int deviceNumbers[] = { 81 };
468,469c466
< // if (num <= 63 && num >= 0) {
< if (num <= 146 && num >= 146) {
---
> if (num <= 63 && num >= 0) {
the driver attaches without any problem; to whom to talk about get this
integrated into pwlib?
matthias
--
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias apitz oclc org> - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
Don't top-post, read RFC1855 http://www.faqs.org/rfcs/rfc1855.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]