Re: Howto obtain sysfs-pathes for DVB devices?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Fri, 30 Jan 2009 12:51:03 +0100
schrieb Matthias Schwarzott <zzam@xxxxxxxxxx>:

> On Freitag, 30. Januar 2009, Carsten Meier wrote:
> > Am Fri, 30 Jan 2009 03:07:07 +0100
> >
> > schrieb hermann pitton <hermann-pitton@xxxxxxxx>:
> > > Hi,
> > >
> > > Am Mittwoch, den 28.01.2009, 16:46 +0100 schrieb Carsten Meier:
> > > > Hello again,
> > > >
> > > > now I've managed to obtain syfs-pathes for v4l2-devices. But
> > > > what about dvb? I haven't found something like bus_info in the
> > > > dvb-api-docs. (I'm new to it) Any hints for this?
> > > >
> > > > Thanks,
> > > > Carsten
> > >
> > > I'm also still new on it ...
> > >
> > > Maybe anything useful here?
> > >
> > > cat /sys/class/dvb/dvb0.frontend0/uevent
> > > MAJOR=212
> > > MINOR=0
> > > PHYSDEVPATH=/devices/pci0000:00/0000:00:08.0/0000:01:07.0
> > > PHYSDEVBUS=pci
> > > PHYSDEVDRIVER=saa7134
> > >
> > > Cheers,
> > > Hermann
> >
> > Hi,
> >
> > IMHO there is no other way (not counting other daemons) than
> > scanning the dvb-device-files, stat() them, and compare major and
> > minor numbers with sysfs-contents. Anyway, I think I'll switch to
> > HAL for that...
> >
> 
> One way of asking udev is this:
> udevadm info -q path -n /dev/dvb/adapter0/frontend0
> 
> Regards
> Matthias

Ok, then I think I'm gonna use it... :) It's much more simple than
struggling through dbus-/hal-libs and the various unfinished c++
bindings, although I normally don't like to start system-tools from c++.
Or is there any c-api for it? I haven't found one.

Thanks,
Carsten
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux