[linux-dvb] Testers wanted for alternative version of Terratec Cinergy T2 driver

Tomi Orava tomimo+linux-dvb at ncircle.nullnet.fi
Wed Oct 24 19:52:59 CEST 2007


>> > AFAICS, all channels work here. The remote control also mostly works:
>> > the OK and the blue button don't generate the proper lirc events.

I've fixed the remote control key codes as they have been in the original
Cinergy T2 driver with the attached patch. I set the OK to work as enter
and blue to be ESC for test purposes.

>> Another glitch:
>> Suspend to RAM doesn't seem to work for some reason. I can log into the
>> computer afterwards, but X stays black.
> Scratch that. The black X screen has nothing to do with the cinergy
> driver. However, I have such messages in the kernel log when I try to
> watch TV:
> 2007-10-18_19:11:41.04832 kern.info: cinergyT2: Unhandled remote key
> detected! type=0xffffff90

This is only a debug message. I'd be interested to know from what button
they were generated from. In the long run I'll just disable this message.

> 2007-10-18_19:11:41.90423 kern.err: cinergyT2:
> cinergyt2_fe_set_frontend() Failed! err=-75
> 2007-10-18_19:11:47.92713 kern.err: cinergyT2:
> cinergyt2_fe_set_frontend() Failed! err=-110
> 2007-10-18_19:12:31.94764 kern.err: cinergyT2:
> cinergyt2_fe_read_signal_strength() Failed! (Error=-110)
> Of cause, watching TV doesn't work anymore.

It doesn't work because the driver has lost the connection to the USB-device.
Please be sure to try the attached latest version of the driver because
not all
of the oldest one's support sleep modes!

The problem with removing and reattaching the CinergyT2 usb-device from
the computer without unloading the driver first is a bug of the dvb
framework and of Cinergy's new driver. To my understanding it happens
because the framework calls  symbol_put_addr(ptr) for a drivers
fe->ops.release pointer twice. First because the usb system reports the
device as removed and the second time when the frontend-release callback
is being called. This is for sure messes up the module usage counter as
well (ie. you won't be able to unload the Cinergy driver without a

Please try this hack (it's easy to fix it by hand):

--- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c   Thu Oct 11
14:09:06 2007 +0200
+++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c   Wed Oct 24
20:44:19 2007 +0300
@@ -1209,7 +1209,7 @@ void dvb_frontend_detach(struct dvb_fron
        ptr = (void*)fe->ops.release;
        if (ptr) {
-               symbol_put_addr(ptr);
+               /* symbol_put_addr(ptr); */

Tomi Orava

PS. Please cc to me next time (without the +linux-dvb part in address)
     so that I'll be sure to notice your mail
     (I've been a little bit busy for the last few days).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: CinergyT2-V6.patch
Type: text/x-patch
Size: 30088 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20071024/db7eaee4/attachment-0001.bin 

More information about the linux-dvb mailing list