diff options
| author | Thomas Zander <riggs@FreeBSD.org> | 2015-08-22 10:58:56 +0000 |
|---|---|---|
| committer | Thomas Zander <riggs@FreeBSD.org> | 2015-08-22 10:58:56 +0000 |
| commit | 8808e82caedfe7efe92abaabf1ac0811c91ecb1d (patch) | |
| tree | 34014f5c618a3defe24d5aec0492fb4f7a6f2f23 /sysutils/hal/files/patch-hald_freebsd_probing_probe-video4linux.c | |
| parent | textproc/tralics: Update version 2.15.2=>2.15.3 (diff) | |
- Allow to detect video interfaces when kernel is built without STACK
- Bump PORTREVISION
PR: 194345
Submitted by: lenzi.sergio@gmail.com
Reviewed by: pi
Approved by: maintainer timeout
Diffstat (limited to 'sysutils/hal/files/patch-hald_freebsd_probing_probe-video4linux.c')
| -rw-r--r-- | sysutils/hal/files/patch-hald_freebsd_probing_probe-video4linux.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/sysutils/hal/files/patch-hald_freebsd_probing_probe-video4linux.c b/sysutils/hal/files/patch-hald_freebsd_probing_probe-video4linux.c index aaac7261bb4b..808d175c99a4 100644 --- a/sysutils/hal/files/patch-hald_freebsd_probing_probe-video4linux.c +++ b/sysutils/hal/files/patch-hald_freebsd_probing_probe-video4linux.c @@ -1,6 +1,6 @@ ---- hald/freebsd/probing/probe-video4linux.c.orig 2010-02-21 14:51:01.000000000 -0500 -+++ hald/freebsd/probing/probe-video4linux.c 2010-02-21 14:54:51.000000000 -0500 -@@ -0,0 +1,225 @@ +--- hald/freebsd/probing/probe-video4linux.c.orig 2014-10-03 22:48:53.887627582 -0300 ++++ hald/freebsd/probing/probe-video4linux.c 2014-10-12 23:37:47.263963719 -0300 +@@ -0,0 +1,218 @@ +/*************************************************************************** + * CVSID: $Id$ + * @@ -87,17 +87,6 @@ + return -1; + } + g_free (contents); -+ -+ len = 4; -+ sysctlnametomib ("kern.proc.pid", mib, &len); -+ -+ len = sizeof(struct kinfo_proc); -+ mib[3] = pid; -+ -+ /* This is just a rough test. */ -+ if (sysctl (mib, 4, NULL, &len, NULL, 0) == -1) -+ return -1; -+ + return i; +} + @@ -110,6 +99,7 @@ + int bus = -1; + int addr = -1; + int intf = -1; ++ //int i; + char *device_file = NULL; + char *busstr; + char *addrstr; @@ -118,6 +108,7 @@ + struct v4l2_capability v2cap; + LibHalChangeSet *cset; + ++ + if (! hfp_init (argc, argv)) + goto out; + @@ -134,6 +125,8 @@ + bus = atoi (busstr); + addr = atoi (addrstr); + intf = atoi (intfstr); ++ ++ //g_message("bus:%d, addr=%d, intf=%d",bus,addr,intf); + if (intf != 0) + goto out; + |
