From owner-freebsd-multimedia@FreeBSD.ORG Tue Jun 26 19:12:48 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F44D106564A; Tue, 26 Jun 2012 19:12:48 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 8A7E88FC19; Tue, 26 Jun 2012 19:12:47 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id D10481E000A9; Tue, 26 Jun 2012 21:12:46 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.4) with ESMTP id q5QJBcQ9074653; Tue, 26 Jun 2012 21:11:38 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id q5QJBbNH074652; Tue, 26 Jun 2012 21:11:37 +0200 (CEST) (envelope-from nox) Date: Tue, 26 Jun 2012 21:11:37 +0200 (CEST) From: Juergen Lock Message-Id: <201206261911.q5QJBbNH074652@triton8.kn-bremen.de> To: hselasky@c2i.net X-Newsgroups: local.list.freebsd.multimedia In-Reply-To: <201206221638.02708.hselasky@c2i.net> References: <4FE423CD.7090105@googlemail.com> Organization: Cc: freebsd-multimedia@freebsd.org, kwm@freebsd.org, Juergen Lock Subject: Re: v4l-utils, v4l_compat and (k)FreeBSD X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2012 19:12:48 -0000 In article <201206221638.02708.hselasky@c2i.net> you write: >On Friday 22 June 2012 09:50:37 Gregor Jasny wrote: >> Hello, >> >> I'm the Debian Maintainer of v4l-utils and upstream contributor to >> v4l-utils. Some time ago I converted the hand crafted Makefile base >> build system to autotools which helped portability (iconv, argp, dl) a >> lot. I looked at the patches against the libv4l/v4l-utils port and >> changed the v4l-utils development version accordingly. One remaining >> issue was the dependency of (k)FreeBSD on processed v4l/dvb headers. The >> v4l_compat port gets synced from time to time but is always behind the >> latest version. >> >> This makes it impossible to even cnmpile test v4l-utils on the BSDs. So >> I looked at the diffs between the original V4L headers and the one in >> v4l_compat and came up with some sed rules and a quilt patch series. >> > >Hi, > >> You can find the bsdify.sh script here: >> http://git.linuxtv.org/v4l-utils.git/tree/HEAD:/contrib/freebsd >> > >Your script looks good! > >> I also wired the sed and quilt rules into the sync-with-kernel target so >> the processed files become a part of v4l-utils. So they'll always be on >> par with the Linux ones. >> >> Unfortunately I won't find time to test v4l-utils with webcamd during >> the next month. Maybe someone from the FreeBSD multimedia team could >> step in? > >Webcamd does not use these header files as of newer releases. It uses the ones >that ship with the Linux kernel sources without any modifications. However, >other applications use this port and needs to be tested. > I tested the script with the Linux headers from the latest webcamd port (3.6.0.1 which uses the media tree for_3.6 branch), and found v4l-utils needed this patch: --- utils/v4l2-compliance/v4l2-test-input-output.cpp +++ utils/v4l2-compliance/v4l2-test-input-output.cpp @@ -156,7 +156,7 @@ int testTuner(struct node *node) int testTunerFreq(struct node *node) { struct v4l2_frequency freq; - enum v4l2_tuner_type last_type = V4L2_TUNER_ANALOG_TV; + /* enum v4l2_tuner_type*/ int32_t last_type = V4L2_TUNER_ANALOG_TV; unsigned t; int ret; >> >> Note: currently you still need these two patches to compile on (k)FreeBSD: >> > http://anonscm.debian.org/gitweb/?p=collab-maint/libv4l.git;a=tree;f=debi >> > an/patches;h=90c8fa7f37eecc508db4b0151e35d5e736474b67;hb=refs/heads/debia >> > n-0.9.x >> >> I'd love to release v4l-utils 0.10 with proper (k)FreeBSD support. > >Thank you! V4L works great in FreeBSD userspace as far as I'm aware! > >Koop: How do we go ahead with this one? We discussed this yesterday a bit and I think we need the libv4l port to depend on the webcamd port's patch target to get its Linux headers, that way the _IOWR etc fixes are included (of which we discovered two new ones for ca.h today btw), and the generated headers match what webcamd supports. Oh and the sed -i target needs to be changed into sed -i.bak to work with BSD sed. Thanx, :) Juergen