I'm guessing that this will end up being a udev and not an ivtv 
question, but:

My system has one pvr-150 and one pvr-500 (very sadly, one with samsung 
tuners) - one of them (pvr-500, first tuner) is hooked to my cable box 
for digital/premium content, the others direct to analog cable.  I've 
got udev rules to set up aliases according to physical location (pci 
slot / pvr-500 unit) - the rules always test fine and never create the 
wrong aliases, but they sometimes don't all fire, leaving me with one or 
more tuners missing via the aliases I'm trying to set up.

Suggestions?
Many thanks!

ubuntu edgy
kernel 2.6.17-11
udev 0.93
ivtv 0.7.4

My udev (0.93) rules:
# pvr150
DRIVER=="ivtv", SYSFS{name}=="ivtv? encoder MPEG", ID=="0000:04:09.0", 
SYMLINK+="pci/0/mpeg0"
#pvr500
DRIVER=="ivtv", SYSFS{name}=="ivtv? encoder MPEG", ID=="0000:05:08.0", 
SYMLINK+="pci/1/mpeg0"
#pvr500, unit 2.  These ought to be pci/1
DRIVER=="ivtv", SYSFS{name}=="ivtv? encoder MPEG", ID=="0000:05:09.0", 
SYMLINK+="pci/1/mpeg1"

Symptom:
- all /dev/video[012] always appear, though in random order (/dev/video0 
can point to any of the tuners)
- the /dev/pci/[01]/mpeg[01] aliases may or may not appear on any 
particular boot - this boot I got /dev/pci/0/mpeg0 and /dev/pci/1/mpeg0 
(no 1/mpeg1).  last boot I got pci/1/mpeg0 and pci/1/mpeg1 (not 0/mpeg0).

/var/log/messages for this boot's missing unit:
ivtv:  ======================  NEXT CARD  ======================
ivtv2: Autodetected Hauppauge WinTV PVR-150 card (cx23416 based)
ACPI: PCI Interrupt 0000:05:09.0[A] -> Link [APC2] -> GSI 17 (level, 
low) -> IRQ 58
ivtv2: Unreasonably low latency timer, setting to 64 (was 32)
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #2)
cx25840 2-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #2)
cx25840 2-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #2)
tveeprom 2-0050: Hauppauge model 23552, rev E787, serial# 9926546
tveeprom 2-0050: tuner model is Samsung TCPN 2121P30A (idx 87, type 70)
tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 2-0050: second tuner model is Philips TEA5768HL FM Radio (idx 
101, type 62)
tveeprom 2-0050: audio processor is CX25843 (idx 37)
tveeprom 2-0050: decoder processor is CX25843 (idx 30)
tveeprom 2-0050: has radio, has no IR remote
ivtv2: This is the second unit of a PVR500
ivtv2: Correcting tveeprom data: no radio present on second unit
ivtv2: loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
ivtv2: Encoder revision: 0x02060039
ivtv2: Allocate DMA encoder MPEG stream: 512 x 32768 buffers (16384KB total)
ivtv2: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
ivtv2: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
ivtv2: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB 
total)
tuner 2-0061: type set to 70 (Samsung TCPN 2121P30A)
ivtv2: Initialized WinTV PVR 500 (unit #2), card #2
NVRM: loading NVIDIA UNIX x86 Kernel Module  1.0-9755  Mon Feb 26 
23:21:15 PST 2007
ACPI: PCI Interrupt Link [AAZA] enabled at IRQ 22
ACPI: PCI Interrupt 0000:00:10.1[B] -> Link [AAZA] -> GSI 22 (level, 
low) -> IRQ 217
ivtv:  ====================  END INIT IVTV  ====================

and /var/log/udev:
UEVENT[1183732624.127266] add@/class/firmware/0000:05:09.0
ACTION=add
DEVPATH=/class/firmware/0000:05:09.0
SUBSYSTEM=firmware
SEQNUM=2429
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:08.0/0000:05:09.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=ivtv
FIRMWARE=v4l-cx2341x-enc.fw
TIMEOUT=30

UEVENT[1183732624.140122] remove@/class/firmware/0000:05:09.0
ACTION=remove
DEVPATH=/class/firmware/0000:05:09.0
SUBSYSTEM=firmware
SEQNUM=2430
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:08.0/0000:05:09.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=ivtv
FIRMWARE=v4l-cx2341x-enc.fw
TIMEOUT=30

UDEV  [1183732624.140730] add@/class/firmware/0000:05:09.0
UDEV_LOG=3
ACTION=add
DEVPATH=/class/firmware/0000:05:09.0
SUBSYSTEM=firmware
SEQNUM=2429
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:08.0/0000:05:09.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=ivtv
FIRMWARE=v4l-cx2341x-enc.fw
TIMEOUT=30
UDEVD_EVENT=1

UDEV  [1183732624.148224] remove@/class/firmware/0000:05:09.0
UDEV_LOG=3
ACTION=remove
DEVPATH=/class/firmware/0000:05:09.0
SUBSYSTEM=firmware
SEQNUM=2430
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:08.0/0000:05:09.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=ivtv
FIRMWARE=v4l-cx2341x-enc.fw
TIMEOUT=30
UDEVD_EVENT=1

UEVENT[1183732624.371305] add@/class/video4linux/video2
ACTION=add
DEVPATH=/class/video4linux/video2
SUBSYSTEM=video4linux
SEQNUM=2431
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:08.0/0000:05:09.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=ivtv
MAJOR=81
MINOR=2

UEVENT[1183732624.372534] add@/class/video4linux/video34
ACTION=add
DEVPATH=/class/video4linux/video34
SUBSYSTEM=video4linux
SEQNUM=2432
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:08.0/0000:05:09.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=ivtv
MAJOR=81
MINOR=34

UEVENT[1183732624.372550] add@/class/video4linux/vbi2
ACTION=add
DEVPATH=/class/video4linux/vbi2
SUBSYSTEM=video4linux
SEQNUM=2433
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:08.0/0000:05:09.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=ivtv
MAJOR=81
MINOR=226

UEVENT[1183732624.372567] add@/class/video4linux/video26
ACTION=add
DEVPATH=/class/video4linux/video26
SUBSYSTEM=video4linux
SEQNUM=2434
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:08.0/0000:05:09.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=ivtv
MAJOR=81
MINOR=26

UDEV  [1183732624.372987] add@/class/video4linux/video2
UDEV_LOG=3
ACTION=add
DEVPATH=/class/video4linux/video2
SUBSYSTEM=video4linux
SEQNUM=2431
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:08.0/0000:05:09.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=ivtv
MAJOR=81
MINOR=2
UDEVD_EVENT=1
DEVNAME=/dev/video2
DEVLINKS=/dev/video

UDEV  [1183732624.373916] add@/class/video4linux/video34
UDEV_LOG=3
ACTION=add
DEVPATH=/class/video4linux/video34
SUBSYSTEM=video4linux
SEQNUM=2432
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:08.0/0000:05:09.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=ivtv
MAJOR=81
MINOR=34
UDEVD_EVENT=1
DEVNAME=/dev/video34
DEVLINKS=/dev/video

UDEV  [1183732624.374783] add@/class/video4linux/vbi2
UDEV_LOG=3
ACTION=add
DEVPATH=/class/video4linux/vbi2
SUBSYSTEM=video4linux
SEQNUM=2433
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:08.0/0000:05:09.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=ivtv
MAJOR=81
MINOR=226
UDEVD_EVENT=1
DEVNAME=/dev/vbi2
DEVLINKS=/dev/vbi

UDEV  [1183732624.375951] add@/class/video4linux/video26
UDEV_LOG=3
ACTION=add
DEVPATH=/class/video4linux/video26
SUBSYSTEM=video4linux
SEQNUM=2434
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:08.0/0000:05:09.0
PHYSDEVBUS=pci
PHYSDEVDRIVER=ivtv
MAJOR=81
MINOR=26
UDEVD_EVENT=1
DEVNAME=/dev/video26
DEVLINKS=/dev/video





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

Reply via email to