v4l2-sysfs-path: print the subdevs associated with that device
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 23 Aug 2009 02:17:30 +0000 (23:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 23 Aug 2009 02:17:30 +0000 (23:17 -0300)
commit41cadca04d35e2887c150ac4fb191ef94cef2855
tree1ef9f92d30c2a5305de97561e9f464f30457d843
parent9638042f900fb5f974d0b3237f9a3ff358f24b3f
v4l2-sysfs-path: print the subdevs associated with that device

From: Mauro Carvalho Chehab <mchehab@redhat.com>

The sysfs interface stores links to the other devices associated with a
V4L link.

Improves this util to display those associated subdevices. This small
tool can be used inside other V4L applications to properly associate
audio, input, sound and dvb devices with a /dev/video? file.

device     = /dev/video0
bus info   = usb-0000:00:1d.7-8
sysfs path = /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8
Subdevs: usb_endpoint:usbdev1.8_ep00 i2c-adapter:i2c-4 input:input8
sound:pcmC1D0c sound:dsp1 sound:audio1 sound:controlC1 sound:mixer1
dvb:dvb0.frontend0 dvb:dvb0.demux0 dvb:dvb0.dvr0 dvb:dvb0.net0

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
utils/v4l2-sysfs-path.c