From owner-freebsd-gnome@FreeBSD.ORG Sun Aug 22 22:35:43 2010 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7AD510656A3; Sun, 22 Aug 2010 22:35:43 +0000 (UTC) (envelope-from marcus@freebsd.org) Received: from av-tac-rtp.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.freebsd.org (Postfix) with ESMTP id 6BD8C8FC1E; Sun, 22 Aug 2010 22:35:43 +0000 (UTC) X-TACSUNS: Virus Scanned Received: from rooster.cisco.com (localhost.cisco.com [127.0.0.1]) by av-tac-rtp.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id o7MMZg2E022381; Sun, 22 Aug 2010 18:35:42 -0400 (EDT) Received: from 184-210-33-84.pools.spcsdns.net (jclarke-pc.cisco.com [172.18.254.236]) by rooster.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id o7MMZXVL005887; Sun, 22 Aug 2010 18:35:34 -0400 (EDT) Message-ID: <4C71A635.6070205@freebsd.org> Date: Sun, 22 Aug 2010 18:35:33 -0400 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: Juergen Lock References: <4C66C4BC.4040504@janh.de> <4C6704A6.3050407@FreeBSD.org> <201008191617.o7JGHq9c003392@triton8.kn-bremen.de> <4C6DC8BC.9080100@freebsd.org> <20100820180648.GA90683@triton8.kn-bremen.de> In-Reply-To: <20100820180648.GA90683@triton8.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: me@janh.de, kde@freebsd.org, hselasky@freebsd.org, freebsd-multimedia@freebsd.org, gnome@freebsd.org Subject: Re: kaffeine-1.0 and webcamd based DVB-T? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2010 22:35:43 -0000 On 8/20/10 2:06 PM, Juergen Lock wrote: > > b) (this is the bug) hald's current handling of multiple devices > in hfp_v4l_get_unit() is broken (the last number in webcamd's pidfile > name is _not_ the device index, it's always 0 or at least it is > here), and also it would have to be extended/adjusted for webcamd > svn which now supports dvb devices with multiple tuners, like > the dual dvb-t one I have here. Ugh. I only had one Quickcam with which to test. > > Because of the latter webcamd now allocates each device's first tuner > index in increments of 8 (I think that's the max number of tuners on > a single device the Linux code will handle), and so if I use webcamd > with my two devices for a total of three tuners I get e.g. > /dev/dvb/adapter0/*, /dev/dvb/adapter8/*, and /dev/dvb/adapter9/* > (and I have to symlink adapter8 to adapter1 and adapter9 to adapter2 > if I want vdr to find all of them, but of course that shouldn't > affect hal and kdelibs/kaffeine.) > > I have Cc'd hps, maybe he has an idea how to get the device index > out of a running webcamd for hal to use... (maybe webcamd should > also do a setproctitle()?) Actually, I'd prefer if there was a file or socket from which I could read to get this data. hps, is this doable? That is, could I have a file or socket that would allow me to map a USB bus/addr to a video (or dvb) device ID? > > Oh and also I wondered whether there might be races in case of > hotplugging a device, i.e. if probe-video4linux.c gets run right > at the moment after plugging a device in webcamd and the Linux code it > runs might not yet have finished initializing and device nodes might > not (all?) have been created yet? Yeah, there definitely is. What might be a solution to all of this is to add support to webcamd to run hal-device --add when a new device comes online. That would obviate the need for any hal code. If this is done, hald would need to drop its dependency on webcamd, and webcamd would need to start depending on hald (in rc.d only). If hal-device doesn't exist or fails, that would just be ignored by webcamd. Joe -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome