From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 22 12:37:20 2007 Return-Path: X-Original-To: multimedia@FreeBSD.org 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 4A40E16A400; Mon, 22 Jan 2007 12:37:20 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id 34FE513C47E; Mon, 22 Jan 2007 12:37:20 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l0MCbKr0091678; Mon, 22 Jan 2007 04:37:20 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l0MCbKsL091677; Mon, 22 Jan 2007 04:37:20 -0800 (PST) (envelope-from rizzo) Date: Mon, 22 Jan 2007 04:37:20 -0800 From: Luigi Rizzo To: Florent Thoumie Message-ID: <20070122043720.A91561@xorpc.icir.org> References: <20070122032640.A90831@xorpc.icir.org> <45B4A58C.8020907@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <45B4A58C.8020907@FreeBSD.org>; from flz@FreeBSD.org on Mon, Jan 22, 2007 at 11:52:44AM +0000 Cc: multimedia@FreeBSD.org Subject: Re: some missing bits in multimedia/v4l_compat 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: Mon, 22 Jan 2007 12:37:20 -0000 On Mon, Jan 22, 2007 at 11:52:44AM +0000, Florent Thoumie wrote: > Luigi Rizzo wrote: > > i notice that ports/multimedia/v4l_compat/files/videodev.h has > > some differences with respect to the linux equivalent, see e.g. > > > > http://www.gelato.unsw.edu.au/lxr/source/include/linux/videodev.h > > > > e.g. no #define HAVE_V4L1 1 , > > some missing prototypes, and so on. > > > > Any objection if i fill in some of the missing parts ? > > > > Also, any reason not to make a header for videodev2.h as well > > > > http://www.gelato.unsw.edu.au/lxr/source/include/linux/videodev2.h > > I think no devices on FreeBSD support v4l2 atm but that wouldn't hurt > anyone. > Go ahead. thanks. Actually i believe nothing in the tree supports v4l1 either, so this is mostly (only ?) to let ports (apps and drivers) build. But i also wonder if it wouldn't be the case to make these headers part of the kernel tree. It certainly shouldn't harm to have them generally available, and not just as a port. I learned that many ports (e.g. pwlib, and possibly some of the gnome/kde/whatever toolkits) do check for the presence of the headers and conditionally build parts of them. So you might find yourself with missing support for v4l devices without noticing, and even when later you install the drivers you won't see them. cheers luigi