[kde-freebsd] kaffeine-1.0 and webcamd based DVB-T?
Joe Marcus Clarke
marcus at freebsd.org
Mon Aug 23 00:35:33 CEST 2010
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 at FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
More information about the kde-freebsd
mailing list