[linux-dvb] Writing udev rules for dual tuner devices

Andreas Besse besse at motama.com
Tue Jan 12 10:34:28 CET 2010


I use a Media-Pointer MP-S2 Dual DVB-S2 PCIe card with the latest drivers from the git-Repository
http://projects.vdr-developer.org/repositories/show/mediapointer-dvb-s2 .

I tried to write udev rules to define the adapter names of the tuner to avoid that the device names could change at boot. It seems not to be possible to write a udev rule for this dual DVB-S2 device, because there are no attributes to differentiate between tuner 0 and tuner 1. Attached is the output of udevinfo.

The following udev rule allows only to define the adapter name of a single tuner:
SUBSYSTEM=="dvb", ATTRS{vendor}=="0x18c3", ATTRS{device}=="0x0720",
PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter0/%%s $${K#*.}'", SYMLINK+="%c"

How can this issue be solved in general? I think the driver should provide an attribute for each tuner, so that it is possible to write udev rules. How this has been solved for other Dual Tuner devices like Pinnacle PCTV Dual DVB-T Diversity, DViCO FusionHDTV DVB-T Dual Express?

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: udevinfo.txt
URL: <http://www.linuxtv.org/pipermail/linux-dvb/attachments/20100112/ad654962/attachment.txt>

More information about the linux-dvb mailing list