Em Mon, 26 Jan 2015 09:41:41 -0500 Devin Heitmueller <dheitmueller@xxxxxxxxxxxxxx> escreveu: > > It is actually trivial to get the device nodes once you have the > > major/minor. The media-ctl library does that for you. See: > > No objection then. > > On a related note, you would be very well served to consider testing > your dvb changes with a device that has more than one DVB tuner (such > as the hvr-2200/2250). That will help you shake out any edge cases > related to ensuring that the different DVB nodes appear in different > groups. Hi Devin, I did some tests (and fixes) for WinTV Nova-TD, with has two adapters. I saw two alternatives for it: 1) to create a media controller device for each adapter; 2) to create just one media controller. I actually implemented (1), as, in the case of this device, AFAIKT, the two devices are indepentent, e. g. it is not possible to, for example, share the same tuner with two demods: $ ls -la /dev/media? crw-rw----. 1 root video 249, 0 Fev 23 10:02 /dev/media0 crw-rw----. 1 root video 249, 1 Fev 23 10:02 /dev/media1 The adapter 0 corresponds to /dev/media0, and the adapter 1 to /dev/media1: $ media-ctl --print-dot -d /dev/media0 digraph board { rankdir=TB n00000001 [label="dvb-demux\n/dev/dvb/adapter0/demux0", shape=box, style=filled, fillcolor=yellow] n00000001 -> n00000002 n00000002 [label="dvb-dvr\n/dev/dvb/adapter0/dvr0", shape=box, style=filled, fillcolor=yellow] n00000003 [label="dvb-net\n/dev/dvb/adapter0/net0", shape=box, style=filled, fillcolor=yellow] n00000004 [label="DiBcom 7000PC\n/dev/dvb/adapter0/frontend0", shape=box, style=filled, fillcolor=yellow] n00000004 -> n00000001 } $ media-ctl --print-dot -d /dev/media1 digraph board { rankdir=TB n00000001 [label="dvb-demux\n/dev/dvb/adapter1/demux0", shape=box, style=filled, fillcolor=yellow] n00000001 -> n00000002 n00000002 [label="dvb-dvr\n/dev/dvb/adapter1/dvr0", shape=box, style=filled, fillcolor=yellow] n00000003 [label="dvb-net\n/dev/dvb/adapter1/net0", shape=box, style=filled, fillcolor=yellow] n00000004 [label="DiBcom 7000PC\n/dev/dvb/adapter1/frontend0", shape=box, style=filled, fillcolor=yellow] n00000004 -> n00000001 } On a more complex hardware where some components may be rewired on a different way, however, using just one media controller would be a better approach. Comments? Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html