Re: RE : Terratec Cinergy T USB XE Rev 2, any update ?

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

 



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@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux