[linux-dvb] Problem when unplugging Cinergy T^2

Nils Kassube kassube at gmx.net
Tue Sep 18 12:44:22 CEST 2007


Tomi Orava wrote:
> Unfortunately I don't have a fix for you, 

Oh, that's not a real problem - I could always use the original 
kernel modules.

> in case you would be 
> interested to try a modified version of that driver, here is the patch.
> The patch modifies the existing Cinergy T^2 driver to fit into dvb-usb
> framework, although it is very experimental in nature (seems to work
> quite ok, although no remote controller handling for now).
>
> I'm very interested to hear if it works/doesn't work for you.
> The patch introduces an alternative driver menu option (in addition to
> existing one) for cinergy T2 and the module name is dvb-usb-cinergyT2
> instead.

Thanks for the patch. I tried it, it _nearly_ works for me. I could 
watch TV with it, but there was a problem when the module was loaded. 
Here is an excerpt from /var/log/messages:

Sep 18 11:53:40 localhost kernel: [  267.481812] usb 6-3: new high speed USB device using ehci_hcd and address 4
Sep 18 11:53:41 localhost kernel: [  267.596538] usb 6-3: configuration #1 chosen from 1 choice
Sep 18 11:53:41 localhost kernel: [  267.680980] 
Sep 18 11:53:41 localhost kernel: [  267.681005] 
Sep 18 11:53:41 localhost kernel: [  267.681395] dvb-usb: found a 'TerraTec/qanu USB2.0 Highspeed DVB-T Receiver' in warm state.
Sep 18 11:53:41 localhost kernel: [  267.681661] cinergyT2: cinergyt2_power_ctrl() setting power=1
Sep 18 11:53:41 localhost kernel: [  267.681662] 
Sep 18 11:53:41 localhost kernel: [  267.685543] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
Sep 18 11:53:41 localhost kernel: [  267.685920] DVB: registering new adapter (TerraTec/qanu USB2.0 Highspeed DVB-T Receiver)
Sep 18 11:53:41 localhost kernel: [  267.686318] DVB: registering frontend 0 (TerraTec/qanu USB2.0 Highspeed DVB-T Receiver)...
Sep 18 11:53:41 localhost kernel: [  267.686788] cinergyT2: cinergyt2_power_ctrl() setting power=0
Sep 18 11:53:41 localhost kernel: [  267.686790] 
Sep 18 11:53:42 localhost kernel: [  268.684958] 
Sep 18 11:53:42 localhost kernel: [  268.685094] dvb-usb: TerraTec/qanu USB2.0 Highspeed DVB-T Receiver successfully initialized and connected.
Sep 18 11:53:42 localhost kernel: [  268.686056] usbcore: registered new interface driver cinergyT2
Sep 18 11:53:42 localhost kernel: [  268.701170] kobject_add failed for cinergyT2 with -EEXIST, don't try to register things with the same name in the same directory.
Sep 18 11:53:42 localhost kernel: [  268.701386]  [kobject_shadow_add+385/480] kobject_shadow_add+0x181/0x1e0
Sep 18 11:53:42 localhost kernel: [  268.701493]  [kobject_register+33/80] kobject_register+0x21/0x50
Sep 18 11:53:42 localhost kernel: [  268.701588]  [bus_add_driver+111/416] bus_add_driver+0x6f/0x1a0
Sep 18 11:53:42 localhost kernel: [  268.701688]  [pg0+943716016/1069073408] usb_unbind_interface+0x0/0x80 [usbcore]
Sep 18 11:53:42 localhost kernel: [  268.701824]  [pg0+943713109/1069073408] usb_register_driver+0x95/0x140 [usbcore]
Sep 18 11:53:42 localhost kernel: [  268.701942]  [__link_module+0/32] __link_module+0x0/0x20
Sep 18 11:53:42 localhost kernel: [  268.702057]  [pg0+949792792/1069073408] cinergyt2_init+0x18/0x63 [cinergyT2]
Sep 18 11:53:42 localhost kernel: [  268.702171]  [sys_init_module+321/6752] sys_init_module+0x141/0x1a60
Sep 18 11:53:42 localhost kernel: [  268.702269]  [journal_stop+374/528] journal_stop+0x176/0x210
Sep 18 11:53:42 localhost kernel: [  268.702373]  [do_mmap_pgoff+1436/2048] do_mmap_pgoff+0x59c/0x800
Sep 18 11:53:42 localhost kernel: [  268.702472]  [pg0+943682416/1069073408] usb_buffer_alloc+0x0/0x20 [usbcore]
Sep 18 11:53:42 localhost kernel: [  268.702601]  [sysenter_past_esp+93/129] sysenter_past_esp+0x5d/0x81
Sep 18 11:53:42 localhost kernel: [  268.703039]  [skb_to_sgvec+512/544] skb_to_sgvec+0x200/0x220
Sep 18 11:53:42 localhost kernel: [  268.703135]  =======================

Before I unplug the device, lsmod shows these entries:

Module                  Size  Used by
dvb_usb_cinergyT2       8836  0 
dvb_usb                21004  1 dvb_usb_cinergyT2
dvb_core               79532  1 dvb_usb

After I unplug the device, lsmod shows these entries:

Module                  Size  Used by
dvb_usb_cinergyT2       8836  4294967295 
dvb_usb                21004  1 dvb_usb_cinergyT2
dvb_core               79532  1 dvb_usb

Please note the number below "Used by". Now every time I plug it in,
that number is constant, but whenever I unplug it, the number is
decreased by 1.


Nils



More information about the linux-dvb mailing list