On Thu, Sep 10, 2009 at 4:20 PM, Mauro Carvalho Chehab<mchehab@xxxxxxxxxxxxx> wrote: > In fact, this can already be done by using the sysfs interface. the current > version of v4l2-sysfs-path.c already enumerates the associated nodes to > a /dev/video device, by just navigating at the already existing device > description nodes at sysfs. I hadn't tried yet, but I bet that a similar kind > of topology can be obtained from a dvb device (probably, we need to do some > adjustments). For the audio case, I did some digging into this a bit and It's worth noting that this behavior varies by driver (at least on USB). In some cases, the parent points to the USB device, in other cases it points to the USB interface. My original thought was to pick one or the other and make the various drivers consistent, but even that is a challenge since in some cases the audio device was provided by snd-usb-audio (which has no knowledge of the v4l subsystem). Devin -- Devin J. Heitmueller - Kernel Labs http://www.kernellabs.com -- 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