Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Two DVB-cards, change order?



Hi!

I've got two DVB cards in my computer, one DVB-C and one DVB-T. When I do "make insmod" the DVB-T card becomes card 0 and the DVB-C card 1. I would like to change this... Sure I can switch places on the PCI-bus, but in my case it's impossible since the DVB-C card is too big to fit anywhere else. So is there any way to do this? I've been poking around the drivers, that's why the dmesg below probably looks a bit strange, but I haven't found a good way to do it. I managed, but my kernel module programming skills aren't very good so when I did rmmod the modules didn't want to go away, erhm.

In saa7146_core.c I did two calls to pci_module_init() instead of one, with two different structures, the first one with only the DVB-C card in the 'id_table' of the pci_driver struct, and the second call was with the DVB-T card. Not a nice way. But it worked to insmod, but I got a seg fault (I think) when I did rmmod.

Any ideas?

My cards:
DVB-T: TT-Budget/WinTV-NOVA-T
DVB-C: Technotrend/Hauppauge 2.1

/Marcus

lsmod gives me:
dvb-ttpci 310964 0 (unused)
evdev 4672 0 (unused)
mt312 6444 0
tda1004x 10440 1
ves1820 5088 1
stv0299 7892 0 (unused)
grundig_29504-491 4036 0
grundig_29504-401 4684 0
alps_tdlb7 6264 0
alps_tdmb7 4232 0
alps_bsrv2 4316 0
dvb-core 43224 6 [dvb-ttpci mt312 tda1004x ves1820 stv0299 grundig_29504-491 grundig_29504-401 alps_tdlb7 alps_tdmb7 alps_bsrv2]
videodev 4672 1 [dvb-ttpci]

dmesg:
doing pci_module_init
card_type=1
name=TT-Budget/WinTV-NOVA-T PCI
DVB: registering new adapter (TT-Budget/WinTV-NOVA-T PCI).
PCI: Found IRQ 11 for device 02:09.0
tda1004x: Detected Philips TDA10045H.
tda1004x: Detected Philips TDM1316L tuner.
DVB: registering frontend 0:0 (Philips TDA10045H)...
mt312_read: ret == -121
card_type=0
name=Technotrend/Hauppauge PCI rev2.1 or 2.2
DVB: registering new adapter (Technotrend/Hauppauge PCI rev2.1 or 2.2).
PCI: Found IRQ 5 for device 02:0a.0
DVB: VES1820(1): setup for tuner sp5659c
DVB: VES1820(1): pwm=0x40
DVB: registering frontend 1:0 (VES1820 based DVB-C frontend)...
mt312_read: ret == -121
doing saa7146_v4l_init
doing av7110_init
TT-Budget/WinTV-NOVA-T PCI adapter 0 has MAC addr = 00:d0:5c:22:30:2d
DVB: AV7111(1) - firm f0240009, rtsl b0250018, vid 71010068, app 8000261b
DVB: AV7111(1) - firmware supports CI link layer interface
av7110(1): adac type set to 0
Technotrend/Hauppauge PCI rev2.1 or 2.2 adapter 1 has MAC addr = 00:d0:5c:02:df:3a
doing av7110_ir_init







Home | Main Index | Thread Index