* Re: [v4l/dvb] identification/ fixed registration order of DVB cards
@ 2010-10-07 9:04 Matthias Weber
0 siblings, 0 replies; 4+ messages in thread
From: Matthias Weber @ 2010-10-07 9:04 UTC (permalink / raw)
To: linux-media
>Can't this be forced using udev rules?
udev seems to be a good way. I tried several different configurations.. my last one (file called '50-dvb_cards.rules'):
# Create a symlink /dev/dvb/adapter104 pointing to dvb card with PCI bus id 04:00.0
SUBSYSTEM=="dvb", KERNEL=="0000:04:00.0", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter104/%%s $${K#*.}'", SYMLINK+="%c"
# Create a symlink /dev/dvb/adapter106 pointing to dvb card with PCI bus id 04:02.0
SUBSYSTEM=="dvb", KERNEL=="0000:04:02.0", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter106/%%s $${K#*.}'", SYMLINK+="%c"
BUS and ID combinations I saw on different other webpages seem to be out of date. Not sure what I am doing wrong as there still is only /dev/dvb/adapter0 and /dev/dvb/adapter1.
I also tried to get my usbstick running with
BUS=="usb", SYSFS{idVendor}=="058f", SYMLINK=+"usbstick"
but this didn't work also.
Any help appreciated. Thanks!
Cheers
Matthias
--
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [v4l/dvb] identification/ fixed registration order of DVB cards
@ 2010-10-07 9:25 Matthias Weber
0 siblings, 0 replies; 4+ messages in thread
From: Matthias Weber @ 2010-10-07 9:25 UTC (permalink / raw)
To: linux-media
Ok, this was a typo.
# Create a symlink /dev/dvb/adapter100 pointing to dvb card with PCI bus id 04:00.0
SUBSYSTEM=="dvb", KERNEL=="0000:04:00.0", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter100/%%s $${K#*.}'", SYMLINK+="%c"
It works for creating a SYMLINK, so adapter0 and adapter1 still exist. Is there a way for "replacing"? Sorry, I am not very familiar with linux yet.
Cheers
--
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
^ permalink raw reply [flat|nested] 4+ messages in thread* [v4l/dvb] identification/ fixed registration order of DVB cards
@ 2010-10-06 11:13 Matthias Weber
2010-10-06 15:39 ` VDR User
0 siblings, 1 reply; 4+ messages in thread
From: Matthias Weber @ 2010-10-06 11:13 UTC (permalink / raw)
To: linux-media
Hello,
we are using two identical DVB cards (TT-budget S2-1600) in one system.
How can we assure that the same card always are assigned to the same device file /dev/dvb/adapter0 (/dev/dvb/adapter1
respectively).
Short example:
Is the card in the first PCI slot always /dev/dvb/adapter0
and the card in the second PCI slot always /dev/dvb/adapter1?
Is this (registration order or whatever it may be called) done in some drivers?
Or is it pure luck when booting the system?
If not implemented, what can be done to tell our own software to switch frontend handles or not to?
There might be a way through MAC addresses...
In ttpci-eeprom.c is a function called ttpci_eeprom_parse_mac()
which is used in budget_core.c ttpci_budget_init() function.
Can this somehow combined with PCI?
Any ideas what would be a smart and easy way?
Thanks!
Cheers
Matthias
--
GRATIS: Spider-Man 1-3 sowie 300 weitere Videos!
Jetzt freischalten! http://portal.gmx.net/de/go/maxdome
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-07 9:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-07 9:04 [v4l/dvb] identification/ fixed registration order of DVB cards Matthias Weber
-- strict thread matches above, loose matches on Subject: below --
2010-10-07 9:25 Matthias Weber
2010-10-06 11:13 Matthias Weber
2010-10-06 15:39 ` VDR User
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox