public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [linux-dvb] Terratec Cinergy T USB XE Rev 2, any update ?
@ 2008-04-21 17:03 Thierry Lelegard
  2008-04-21 18:04 ` Antti Palosaari
  0 siblings, 1 reply; 7+ messages in thread
From: Thierry Lelegard @ 2008-04-21 17:03 UTC (permalink / raw)
  To: linux-dvb

Hello,

As part of my collection of DVB-T devices, I have got a
Terratec Cinergy T USB XE Rev 2.

This one is known as not yet supported on Linux. The Rev 1
which used the AF9005 is supported but not the Rev 2 which
uses the AF9015.

The article at http://www.linuxtv.org/wiki/index.php/Afatech_AF9015
is a bit worrying: "At present there are three different Linux drivers
available for the AF901x. That may strike one as being strange or
showing signs of a state of dis-coordination, but in actuality,
each driver has its own reason for coming into existence. In addition,
taken collectively, the development of three different drivers highlights
the relative complexity of the chip, as well as the flexibility in device
design that its employment permits."

In addition to that, the Terratec support site provides a Linux driver at
ftp://ftp.terratec.net/Receiver/Cinergy_T_USB_XE/Update/Cinergy_T_USB_XE_MKII_Drv_Linux.zip
The ReadMe.txt claims "Device VID/PID : 0CCD/0068 or 0CCD/0069 (no IR)"
and 0CCD:0069 is the Cinergy T USB XE Rev 2.

However, this driver does not compile. The driver is supposed to work
on Fedora Core 6 and I have Fedora 8 (kernel 2.6.24) but this does not
explain everything. Most compile errors are intrinsic to the code and
do not depend on the kernel. Given some horrible errors (like assigning
a pointer to a structure with the -integer- size of the structure),
I doubt that this driver has ever worked. How can a commercial company
put such a crap online ?

Is there any news with the AF9015 and more specifically the Cinergy
T USB XE Rev 2 ?

Does anyone get it working ?

Thanks in advance,
-Thierry


_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] Terratec Cinergy T USB XE Rev 2, any update ?
  2008-04-21 17:03 [linux-dvb] Terratec Cinergy T USB XE Rev 2, any update ? Thierry Lelegard
@ 2008-04-21 18:04 ` Antti Palosaari
  2008-04-22 12:09   ` Jochen Friedrich
  0 siblings, 1 reply; 7+ messages in thread
From: Antti Palosaari @ 2008-04-21 18:04 UTC (permalink / raw)
  To: Thierry Lelegard; +Cc: linux-dvb

Thierry Lelegard wrote:
> Is there any news with the AF9015 and more specifically the Cinergy
> T USB XE Rev 2 ?

Main problem is that there is no tuner driver for Freescale MC44S803 
silicon tuner. Looks like there is code for MC44S803 on the net 
available (for example Terratec driver). Porting it to Linux should not 
be too big task.

There has been some development activity with AF9015 driver and now it 
initially works also for dual tuner (Maxlinear MXL5003/5) devices, like 
KWorld PlusTV 399U, TwinHan AzureWave AD-TU700(704J) and DigitalNow 
TinyTwin.

regards,
Antti
-- 
http://palosaari.fi/

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] Terratec Cinergy T USB XE Rev 2, any update ?
  2008-04-21 18:04 ` Antti Palosaari
@ 2008-04-22 12:09   ` Jochen Friedrich
  2008-04-23  7:49     ` [linux-dvb] RE : " Thierry Lelegard
  0 siblings, 1 reply; 7+ messages in thread
From: Jochen Friedrich @ 2008-04-22 12:09 UTC (permalink / raw)
  To: Antti Palosaari; +Cc: linux-dvb

Hi Antti,

> Main problem is that there is no tuner driver for Freescale MC44S803 
> silicon tuner. Looks like there is code for MC44S803 on the net 
> available (for example Terratec driver). Porting it to Linux should not 
> be too big task.

The Terratec driver *is* a linux driver, just for an older kernel version.
I just did a very quick and dirty forward port of the driver (by replacing
the included dvb-core and dvb-usb files with the ones of the current dvb
hg tree) and the result compiled OK on 2.6.24. Even better, it even works :)

Thanks,
Jochen

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [linux-dvb] RE :  Terratec Cinergy T USB XE Rev 2, any update ?
  2008-04-22 12:09   ` Jochen Friedrich
@ 2008-04-23  7:49     ` Thierry Lelegard
  2008-04-23 11:22       ` Jochen Friedrich
  0 siblings, 1 reply; 7+ messages in thread
From: Thierry Lelegard @ 2008-04-23  7:49 UTC (permalink / raw)
  To: linux-dvb

>> Main problem is that there is no tuner driver for Freescale MC44S803 
>> silicon tuner. Looks like there is code for MC44S803 on the net 
>> available (for example Terratec driver). Porting it to Linux should not 
>> be too big task.
>
>The Terratec driver *is* a linux driver, just for an older kernel version.
>I just did a very quick and dirty forward port of the driver (by replacing
>the included dvb-core and dvb-usb files with the ones of the current dvb
>hg tree) and the result compiled OK on 2.6.24. Even better, it even works :)

Which "Terratec driver" are you refering to ?

Is this a Terratec-provided driver ?

As I mentioned in my original post, the one at
ftp://ftp.terratec.net/Receiver/Cinergy_T_USB_XE/Update/Cinergy_T_USB_XE_MKII_Drv_Linux.zip
does not compile _at_all_ and this is not (or not only) a matter of kernel
version. There are many semantic errors that no C compiler would accept
(except maybe the K&R from the 70's). I started to fix the errors but when
I realized how bad it was, my trust in this code dropped and I gave up.

-Thierry


_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] RE :  Terratec Cinergy T USB XE Rev 2, any update ?
  2008-04-23  7:49     ` [linux-dvb] RE : " Thierry Lelegard
@ 2008-04-23 11:22       ` Jochen Friedrich
  2008-04-24  7:21         ` [linux-dvb] RE : " Thierry Lelegard
  0 siblings, 1 reply; 7+ messages in thread
From: Jochen Friedrich @ 2008-04-23 11:22 UTC (permalink / raw)
  To: Thierry Lelegard; +Cc: linux-dvb

Hi Thierry,

> Which "Terratec driver" are you refering to ?
> 
> Is this a Terratec-provided driver ?
> 
> As I mentioned in my original post, the one at
> ftp://ftp.terratec.net/Receiver/Cinergy_T_USB_XE/Update/Cinergy_T_USB_XE_MKII_Drv_Linux.zip
> does not compile _at_all_ and this is not (or not only) a matter of kernel
> version. There are many semantic errors that no C compiler would accept
> (except maybe the K&R from the 70's). I started to fix the errors but when
> I realized how bad it was, my trust in this code dropped and I gave up.

I compiled this with gcc 4.2.3. This is what i did:

cd /tmp
wget ftp://ftp.terratec.net/Receiver/Cinergy_T_USB_XE/Update/Cinergy_T_USB_XE_MKII_Drv_Linux.zip
unzip Cinergy_T_USB_XE_MKII_Drv_Linux.zip
mv Cinergy\ T\ USB\ XE\ MKII/Fedora\ Core\ Release\ 6 dvb_cinergy
hg clone http://linuxtv.org/hg/~anttip/af9015
cd dvb_cinergy/
cp /tmp/af9015/linux/drivers/media/dvb/dvb-core/*.c .
cp /tmp/af9015/linux/drivers/media/dvb/dvb-core/*.h .
cp /tmp/af9015/linux/drivers/media/dvb/dvb-usb/*.c .
cp /tmp/af9015/linux/drivers/media/dvb/dvb-usb/*.h .
cp /tmp/af9015/linux/include/linux/dvb/dmx.h .
patch -p1 < /tmp/cinergy.patch
make

This is the patch (minor header adjusting):

diff -ruN a/dmxdev.h b/dmxdev.h
--- a/dmxdev.h	2008-04-23 12:52:39.000000000 +0200
+++ b/dmxdev.h	2008-04-22 14:00:26.000000000 +0200
@@ -35,7 +35,7 @@
 #include <linux/mutex.h>
 #endif
 
-#include <linux/dvb/dmx.h>
+#include "dmx.h"
 
 #include "dvbdev.h"
 #include "demux.h"
diff -ruN a/dvb_frontend.c b/dvb_frontend.c
--- a/dvb_frontend.c	2008-04-23 12:52:36.000000000 +0200
+++ b/dvb_frontend.c	2008-04-22 14:01:22.000000000 +0200
@@ -25,6 +25,7 @@
  * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
  */
 
+#include <linux/version.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
diff -ruN a/dvb_frontend.h b/dvb_frontend.h
--- a/dvb_frontend.h	2008-04-23 12:52:39.000000000 +0200
+++ b/dvb_frontend.h	2008-04-22 13:55:02.000000000 +0200
@@ -28,6 +28,7 @@
 #ifndef _DVB_FRONTEND_H_
 #define _DVB_FRONTEND_H_
 
+#include <linux/version.h>
 #include <linux/types.h>
 #include <linux/sched.h>
 #include <linux/ioctl.h>

Thanks,
Jochen

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [linux-dvb] RE :  RE :  Terratec Cinergy T USB XE Rev 2, any update ?
  2008-04-23 11:22       ` Jochen Friedrich
@ 2008-04-24  7:21         ` Thierry Lelegard
  2008-04-29 16:13           ` Jochen Friedrich
  0 siblings, 1 reply; 7+ messages in thread
From: Thierry Lelegard @ 2008-04-24  7:21 UTC (permalink / raw)
  To: linux-dvb

>I compiled this with gcc 4.2.3. This is what i did:
>...
>wget ftp://ftp.terratec.net/Receiver/Cinergy_T_USB_XE/Update/Cinergy_T_USB_XE_MKII_Drv_Linux.zip
>...
>hg clone http://linuxtv.org/hg/~anttip/af9015
>...

Thanks, it indeed works that way.

I missed:
- Replace dvb common code (where all compile errors were) by
  the "official" equivalent.
- Use Antti's hg repository instead of "official" one to get
  the af9015 driver.

There are still a lot of warnings from Terratec's driver indicating
poor coding techniques but it works.

Any idea when those two drivers will be integrated in the main tree?
Concerning the Terratec's driver, I have not seen any licence note,
neither GPL nor proprietary. Any chance to make it GPL?

-Thierry


_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [linux-dvb] RE :  RE :  Terratec Cinergy T USB XE Rev 2, any update ?
  2008-04-24  7:21         ` [linux-dvb] RE : " Thierry Lelegard
@ 2008-04-29 16:13           ` Jochen Friedrich
  0 siblings, 0 replies; 7+ messages in thread
From: Jochen Friedrich @ 2008-04-29 16:13 UTC (permalink / raw)
  To: Thierry Lelegard; +Cc: linux-dvb

Hi Thierry,

> Any idea when those two drivers will be integrated in the main tree?
> Concerning the Terratec's driver, I have not seen any licence note,
> neither GPL nor proprietary. Any chance to make it GPL?

No idea

However, in the meantime i also got a combination of the AF9015 drivers
in http://linuxtv.org/hg/~anttip/af9015-mxl500x-copy-fw/ and the MC44S802
drivers in http://jusst.de/hg/af901x working with this USB device.

The i2c functions of AF9015 seem to only work for 1byte register addresses
the way they are coded right now and MC44S802 seems to be able to operate
in different endian modes (i had to swap endianess of all registers). This
and the output selection should probably be a config option to be passed
during tuner attach.

The (quick and dirty ported) tree is on git://git.bocc.de/cinergy.git 
(or http://git.bocc.de/cgi-bin/gitweb.cgi?p=cinergy.git;a=summary for a 
web interface).

Thanks,
Jochen

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-04-29 16:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-21 17:03 [linux-dvb] Terratec Cinergy T USB XE Rev 2, any update ? Thierry Lelegard
2008-04-21 18:04 ` Antti Palosaari
2008-04-22 12:09   ` Jochen Friedrich
2008-04-23  7:49     ` [linux-dvb] RE : " Thierry Lelegard
2008-04-23 11:22       ` Jochen Friedrich
2008-04-24  7:21         ` [linux-dvb] RE : " Thierry Lelegard
2008-04-29 16:13           ` Jochen Friedrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox