Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Aug 2010 18:35:33 -0400
From:      Joe Marcus Clarke <marcus@freebsd.org>
To:        Juergen Lock <nox@jelal.kn-bremen.de>
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?
Message-ID:  <4C71A635.6070205@freebsd.org>
In-Reply-To: <20100820180648.GA90683@triton8.kn-bremen.de>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C71A635.6070205>