This is "how to" change positions of video* devices regardless hardware 
and kernel's default settings;

Query:
udevinfo -a -p $(udevinfo -q path -n /dev/video0)
or
udevinfo -a -p /class/video4linux/video0

Udev rules:
/etc/udev/rules.d/10-local.rules:
# TV card initialization&relocation - video

SUBSYSTEM=="video4linux", ACTION=="add", DRIVERS=="?*", 
ATTR{name}=="BT878 video (Hauppauge (bt878))", KERNELS=="0000:02:03.0", 
KERNEL=="video*", NAME="video0", SYMLINK+="Bt878.video"

SUBSYSTEM=="video4linux", ACTION=="add", DRIVERS=="?*", 
ATTR{name}=="ivtv0 encoder MPG", KERNELS=="0000:02:01.0", 
KERNEL=="video*", NAME="video1", SYMLINK+="iTVC16.enc"


# TV card initialization&relocation - vbi

SUBSYSTEM=="video4linux", ACTION=="add", DRIVERS=="?*", 
ATTR{name}=="BT878 vbi (Hauppauge (bt878))", KERNELS=="0000:02:03.0", 
KERNEL=="vbi*", NAME="vbi0", SYMLINK+="Bt878.ttx"

SUBSYSTEM=="video4linux", ACTION=="add", DRIVERS=="?*", 
ATTR{name}=="ivtv0 encoder VBI", KERNELS=="0000:02:01.0", 
KERNEL=="vbi*", NAME="vbi1", SYMLINK+="iTVC16.ttxe"

Reference:
http://reactivated.net/writing_udev_rules.html

Reference 2:
/etc/modprobe.conf:
options ivtv ivtv_first_minor=1

rgds,
poma

_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to