v4l2-sysfs-path: Show devices ordered by the video node number
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 28 May 2011 19:49:57 +0000 (16:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 28 May 2011 19:50:25 +0000 (16:50 -0300)
commit33a09bfcae7410a02eee922118353b94c089cc29
tree65821bf92be72ab1e382ed2b193cdca9950f9307
parent08afbbd4add54e1db43b46f1b6faf0dd6f7e1449
v4l2-sysfs-path: Show devices ordered by the video node number

Instead of calling the default print function, it implements its
own logic that will print all devices video ordered, plus the
audio playback devices. The output will be something like:

Video device: video0
vbi: vbi0
dvb frontend: dvb0.frontend0
dvb demux: dvb0.demux0
dvb dvr: dvb0.dvr0
dvb net: dvb0.net0
sound card: hw:2
pcm capture: hw:2,0
mixer: hw:2
Video device: video1
sound card: hw:1
pcm capture: hw:1,0
mixer: hw:1
Alsa playback device(s): hw:0,0 hw:0,1

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