[GEM-dev] udev dv input

IOhannes m zmoelnig zmoelnig at iem.at
Thu Dec 15 11:09:42 CET 2005


Georg Holzmann wrote:
> Hallo gem-devs!
> 
> As I use udev now I cannot use the dv input in Gem anymore.
> The problem is the following (i think):
> with devfs the device was /dev/dv1394 (on my computer)
> now (udev) the device is on my computer /dev/dv1394/0
> 
> The problem is, that /dev/dv1394 is hardcoded in videoDV4L.cpp, so 
> changing line 194:
> 
>       if ((fd=open("/dev/dv1394", O_RDWR)) < 0)    {
> 
> to:
> 
>       if ((fd=open("/dev/dv1394/0", O_RDWR)) < 0)    {
> 
> fixes the problem !
> 

the CVS-version of Gem *should* support symbolic devices: so you could 
send it a [device /dev/dv1394/0( message.
this is extremely untested, so it would be nice if you could give it a try.
(btw, if i remember correctly, it even attempts to figure out which 
driver to use (but i may be wrong)

of course, exchanging the hardcoded device-name (as you proposed) is a 
no-no.


mfg.asdr.
IOhannes




More information about the GEM-dev mailing list