All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jochen Friedrich <jochen@scram.de>
To: Thierry Lelegard <thierry.lelegard@tv-numeric.com>
Cc: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] RE :  Terratec Cinergy T USB XE Rev 2, any update ?
Date: Wed, 23 Apr 2008 13:22:39 +0200	[thread overview]
Message-ID: <480F1BFF.7000907@scram.de> (raw)
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAJf2pBr8u1U+Z+cArRcz8PAKHAAAQAAAAXUecTuyghkSp+E+0SVbs1QEAAAAA@tv-numeric.com>

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

  reply	other threads:[~2008-04-23 11:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2008-04-24  7:21         ` [linux-dvb] RE : " Thierry Lelegard
2008-04-29 16:13           ` Jochen Friedrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=480F1BFF.7000907@scram.de \
    --to=jochen@scram.de \
    --cc=linux-dvb@linuxtv.org \
    --cc=thierry.lelegard@tv-numeric.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.