
liontooth at cogweb
Aug 27, 2008, 7:44 PM
Post #5 of 5
(2047 views)
Permalink
|
David Liontooth wrote: > Hans Verkuil wrote: > >> On Wednesday 27 August 2008 02:23:45 David Liontooth wrote: >> >> >>> On a Debian sid running kernel.org's 2.6.26, I installed five WinTV PVR500 units. The first nine "encoder MPG" devices are numbered >>> consecutively 0 through 8. The ninth, as you can see below, gets confused: ivtv9 "Registered device >>> video10 for encoder MPG", yet also "Registered device vbi9 for encoder VBI". >>> >>> >> With more than eight devices the numbering goes off. Basically the >> encoder PCM numbering bumps into the range of the encoder YUV devices, >> so at that point it starts using the first free numbers. >> >> Can't do anything about that, I'm afraid. >> >> > Thanks, I see how it works. Can I renumber the devices using module > parameters? My scripts assume the mpg and vbi devices have the same number. > Ian Campbell, the Debian maintainer of ivtv-utils, suggested a workaround using udev; I've added the following, which creates device node symlinks. It solves my problem and lets me use the same scripts for experimenting with raw capture. Cheers, Dave # /etc/udev/rules.d/ivtv.rules BUS=="pci", KERNELS=="0000:03:08.0", ATTR{name}=="ivtv* encoder MPG", SYMLINK+="video/mpg0" BUS=="pci", KERNELS=="0000:03:09.0", ATTR{name}=="ivtv* encoder MPG", SYMLINK+="video/mpg1" BUS=="pci", KERNELS=="0000:04:08.0", ATTR{name}=="ivtv* encoder MPG", SYMLINK+="video/mpg2" BUS=="pci", KERNELS=="0000:04:09.0", ATTR{name}=="ivtv* encoder MPG", SYMLINK+="video/mpg3" BUS=="pci", KERNELS=="0000:05:08.0", ATTR{name}=="ivtv* encoder MPG", SYMLINK+="video/mpg4" BUS=="pci", KERNELS=="0000:05:09.0", ATTR{name}=="ivtv* encoder MPG", SYMLINK+="video/mpg5" BUS=="pci", KERNELS=="0000:06:08.0", ATTR{name}=="ivtv* encoder MPG", SYMLINK+="video/mpg6" BUS=="pci", KERNELS=="0000:06:09.0", ATTR{name}=="ivtv* encoder MPG", SYMLINK+="video/mpg7" BUS=="pci", KERNELS=="0000:07:08.0", ATTR{name}=="ivtv* encoder MPG", SYMLINK+="video/mpg8" BUS=="pci", KERNELS=="0000:07:09.0", ATTR{name}=="ivtv* encoder MPG", SYMLINK+="video/mpg9" BUS=="pci", KERNELS=="0000:03:08.0", ATTR{name}=="ivtv* encoder YUV", SYMLINK+="video/yuv0" BUS=="pci", KERNELS=="0000:03:09.0", ATTR{name}=="ivtv* encoder YUV", SYMLINK+="video/yuv1" BUS=="pci", KERNELS=="0000:04:08.0", ATTR{name}=="ivtv* encoder YUV", SYMLINK+="video/yuv2" BUS=="pci", KERNELS=="0000:04:09.0", ATTR{name}=="ivtv* encoder YUV", SYMLINK+="video/yuv3" BUS=="pci", KERNELS=="0000:05:08.0", ATTR{name}=="ivtv* encoder YUV", SYMLINK+="video/yuv4" BUS=="pci", KERNELS=="0000:05:09.0", ATTR{name}=="ivtv* encoder YUV", SYMLINK+="video/yuv5" BUS=="pci", KERNELS=="0000:06:08.0", ATTR{name}=="ivtv* encoder YUV", SYMLINK+="video/yuv6" BUS=="pci", KERNELS=="0000:06:09.0", ATTR{name}=="ivtv* encoder YUV", SYMLINK+="video/yuv7" BUS=="pci", KERNELS=="0000:07:08.0", ATTR{name}=="ivtv* encoder YUV", SYMLINK+="video/yuv8" BUS=="pci", KERNELS=="0000:07:09.0", ATTR{name}=="ivtv* encoder YUV", SYMLINK+="video/yuv9" BUS=="pci", KERNELS=="0000:03:08.0", ATTR{name}=="ivtv* encoder PCM", SYMLINK+="video/pcm0" BUS=="pci", KERNELS=="0000:03:09.0", ATTR{name}=="ivtv* encoder PCM", SYMLINK+="video/pcm1" BUS=="pci", KERNELS=="0000:04:08.0", ATTR{name}=="ivtv* encoder PCM", SYMLINK+="video/pcm2" BUS=="pci", KERNELS=="0000:04:09.0", ATTR{name}=="ivtv* encoder PCM", SYMLINK+="video/pcm3" BUS=="pci", KERNELS=="0000:05:08.0", ATTR{name}=="ivtv* encoder PCM", SYMLINK+="video/pcm4" BUS=="pci", KERNELS=="0000:05:09.0", ATTR{name}=="ivtv* encoder PCM", SYMLINK+="video/pcm5" BUS=="pci", KERNELS=="0000:06:08.0", ATTR{name}=="ivtv* encoder PCM", SYMLINK+="video/pcm6" BUS=="pci", KERNELS=="0000:06:09.0", ATTR{name}=="ivtv* encoder PCM", SYMLINK+="video/pcm7" BUS=="pci", KERNELS=="0000:07:08.0", ATTR{name}=="ivtv* encoder PCM", SYMLINK+="video/pcm8" BUS=="pci", KERNELS=="0000:07:09.0", ATTR{name}=="ivtv* encoder PCM", SYMLINK+="video/pcm9" _______________________________________________ ivtv-devel mailing list ivtv-devel [at] ivtvdriver http://ivtvdriver.org/mailman/listinfo/ivtv-devel
|