From owner-freebsd-multimedia@FreeBSD.ORG Thu Jan 13 23:29:12 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 716111065674 for ; Thu, 13 Jan 2011 23:29:12 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 383278FC16 for ; Thu, 13 Jan 2011 23:29:11 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id D338B73098; Fri, 14 Jan 2011 00:43:39 +0100 (CET) Date: Fri, 14 Jan 2011 00:43:39 +0100 From: Luigi Rizzo To: Kevin Baxter , hselasky@c2i.net Message-ID: <20110113234339.GA52146@onelab2.iet.unipi.it> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-multimedia@freebsd.org Subject: Re: Webcamd and the au0828 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: Thu, 13 Jan 2011 23:29:12 -0000 On Thu, Jan 13, 2011 at 02:15:48PM -0800, Kevin Baxter wrote: > Hi, > > I've been trying to get my au0828-based stick (a Hauppauge 950Q to be > specific) to work in webcamd. Here's the list of problems and solutions I've > hit so far. ... ... > So now it builds and links. It loads the driver, detects the stick, attaches > it to cuse, and then segfaults. > > #0 0x000000000040a233 in v4l2_device_register (dev=0x8012d0f70, > v4l2_dev=0x8012ffae0) you prompted me to try the same for em28xx, so i followed a similar route: include the necessary files (one was omitted), write small stubs for the few functions that are not there so that webcamd links. Then the program does a core dump when connecting an em28xx device, on the same function as yours. There is a chance that the files that do work have been slightly modified so that dev->driver is initialized properly. But I don't know for sure, maybe Hans can answer this. (the other possibility is that maybe some names are resolved at runtime so even if webcamd links it is not guaranteed to work unless you put in all the required sources ?) cheers luigi