summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/demodulatorextend.c133
-rw-r--r--api/i2c_driver.c2
-rw-r--r--api/standard.c2
-rw-r--r--api/type.h1
-rw-r--r--api/usb2impl.c7
5 files changed, 40 insertions, 105 deletions
diff --git a/api/demodulatorextend.c b/api/demodulatorextend.c
index 980949f..db967a6 100644
--- a/api/demodulatorextend.c
+++ b/api/demodulatorextend.c
@@ -8,29 +8,29 @@
//#include "i2u.h"
//#include "af9035u2iimpl.h"
-#include "Afa_AF9007.h"
-#include "Afa_PEACOCK.h"
-#include "Freescale_MC44CD02.h"
-#include "Integrant_ITD3020.h"
-#include "Maxlinear_MXL5005.h"
-#include "Microtune_MT2260B0.h"
-#include "Microtune_MT2266.h"
-#include "Panasonic_ENV77H11D5.h"
-#include "Philips_TD1316AFIHP.h"
-#include "Philips_TDA18291HN.h"
-#include "Xceive_XC3028L.h"
-#include "Infineon_TUA9001.h"
-#include "Fitipower_FC0011.h"
-#include "Infineon_TUA6039.h"
-#include "Philips_TDA18271.h"
-#include "Philips_FQD1218ME_MK5.h"
-#include "Xceive_XC4000.h"
-#include "Philips_TDA18271_C2.h"
-#include "Infineon_TUA8010.h"
+//#include "Afa_AF9007.h"
+//#include "Afa_PEACOCK.h"
+//#include "Freescale_MC44CD02.h"
+//#include "Integrant_ITD3020.h"
+//#include "Maxlinear_MXL5005.h"
+//#include "Microtune_MT2260B0.h"
+//#include "Microtune_MT2266.h"
+//#include "Panasonic_ENV77H11D5.h"
+//#include "Philips_TD1316AFIHP.h"
+//#include "Philips_TDA18291HN.h"
+//#include "Xceive_XC3028L.h"
+//#include "Infineon_TUA9001.h"
+//#include "Fitipower_FC0011.h"
+//#include "Infineon_TUA6039.h"
+//#include "Philips_TDA18271.h"
+//#include "Philips_FQD1218ME_MK5.h"
+//#include "Xceive_XC4000.h"
+//#include "Philips_TDA18271_C2.h"
+//#include "Infineon_TUA8010.h"
#include "FCI_FC2580.h"
-#include "Fitipower_FC0012.h"
-#include "Philips_TDA18271_C2_Askey.h"
-#include "Elonics_E4000.h"
+//#include "Fitipower_FC0012.h"
+//#include "Philips_TDA18271_C2_Askey.h"
+//#include "Elonics_E4000.h"
static PidInfo pidInfo;
BusDescription busDesc[] =
@@ -291,80 +291,9 @@ Dword Demodulator_setBusTuner (
*/
switch (tunerId)
{
- case Tuner_Afatech_AF9007:
- ganymede->tunerDescription = &tuner_AF9007;
- break;
- case Tuner_Panasonic_ENV77H11D5:
- ganymede->tunerDescription = &tuner_ENV77H11D5;
- break;
- case Tuner_Philip_TD1316AFIHP:
- ganymede->tunerDescription = &tuner_TD1316AFIHP;
- break;
- case Tuner_Maxlinear_MXL5005:
- ganymede->tunerDescription = &tuner_MXL5005;
- break;
- case Tuner_Freescale_MC44CD02:
- ganymede->tunerDescription = &tuner_MC44CD02;
- break;
- case Tuner_Microtune_MT2260B0:
- ganymede->tunerDescription = &tuner_MT2260B0;
- break;
- case Tuner_Philips_TDA18291HN:
- ganymede->tunerDescription = &tuner_TDA18291HN;
- break;
- case Tuner_Microtune_MT2266:
- ganymede->tunerDescription = &tuner_MT2266;
- MT2266_supportTA4029CTC ((Demodulator*) &ganymede, 0);
- break;
- case Tuner_Integrant_ITD3020:
- ganymede->tunerDescription = &tuner_ITD3020;
- break;
- case Tuner_Afatech_PEACOCK:
- ganymede->tunerDescription = &tuner_PEACOCK;
- break;
- case Tuner_Xceive_XC3028L:
- ganymede->tunerDescription = &tuner_XC3028L;
- break;
- case Tuner_Infineon_TUA9001:
- ganymede->tunerDescription = &tuner_TUA9001;
- break;
- case Tuner_Fitipower_FC0011:
- ganymede->tunerDescription = &tuner_FC0011;
- break;
- case Tuner_Infineon_TUA6039:
- ganymede->tunerDescription = &tuner_TUA6039;
- break;
- case Tuner_Philips_TDA18271:
- ganymede->tunerDescription = &tuner_TDA18271;
- break;
- case Tuner_Philips_FQD1218ME_MK5:
- ganymede->tunerDescription = &tuner_FQD1218ME_MK5;
- break;
- case Tuner_Xceive_XC4000:
- ganymede->tunerDescription = &tuner_XC4000;
- break;
- case Tuner_Philips_TDA18271_C2:
- ganymede->tunerDescription = &tuner_TDA18271_C2;
- break;
- case Tuner_Infineon_TUA8010:
- ganymede->tunerDescription = &tuner_TUA8010;
- break;
case Tuner_FCI_FC2580:
ganymede->tunerDescription = &tuner_FC2580;
break;
- case Tuner_Microtune_MT2266_TA4029CTC:
- ganymede->tunerDescription = &tuner_MT2266;
- MT2266_supportTA4029CTC ((Demodulator*) &ganymede, 1);
- break;
- case Tuner_Fitipower_FC0012:
- ganymede->tunerDescription = &tuner_FC0012;
- break;
- case Tuner_Philips_TDA18271_C2_Askey:
- ganymede->tunerDescription = &tuner_TDA18271_C2_Askey;
- break;
- case Tuner_Elonics_E4000:
- ganymede->tunerDescription = &tuner_E4000;
- break;
default:
error = Error_INVALID_TUNER_TYPE;
goto exit;
@@ -709,22 +638,22 @@ exit :
}
-#if UNDER_CE
-#else
+//#if UNDER_CE
+//#else
extern long ActiveSync;
-#endif
+//#endif
Dword Demodulator_controlActiveSync (
IN Demodulator* demodulator,
IN Byte control
) {
-#if UNDER_CE
+//#if UNDER_CE
//#else //for Linux
- if (control == 0)
- ActiveSync = 0;
- else
- ActiveSync = 1;
-#endif
+// if (control == 0)
+// ActiveSync = 0;
+// else
+// ActiveSync = 1;
+//#endif
return (Error_NO_ERROR);
}
diff --git a/api/i2c_driver.c b/api/i2c_driver.c
index ef6285d..ae2063d 100644
--- a/api/i2c_driver.c
+++ b/api/i2c_driver.c
@@ -37,7 +37,7 @@ int xc_read_i2c_data(unsigned char *bytes_received, int nb_bytes_to_receive)
return (error);
}
-int xc_reset(void)
+int xc_reset( void )
{
Dword error = Error_NO_ERROR;
diff --git a/api/standard.c b/api/standard.c
index c677234..0649989 100644
--- a/api/standard.c
+++ b/api/standard.c
@@ -2767,6 +2767,7 @@ Dword Standard_setStreamType (
error = Error_DRIVER_INVALID;
}
#else
+ //Dword warning = Error_NO_ERROR;
Ganymede* ganymede;
Byte i;
@@ -3588,6 +3589,7 @@ Dword Standard_getDatagram (
Ganymede* ganymede;
Dword length = 0;
Byte value;
+ //Bool ready = False;
ganymede = (Ganymede*) demodulator;
diff --git a/api/type.h b/api/type.h
index d7cf236..2c58167 100644
--- a/api/type.h
+++ b/api/type.h
@@ -15,6 +15,7 @@
#define IN
+
#define OUT
#define INOUT
diff --git a/api/usb2impl.c b/api/usb2impl.c
index f284328..7df4af9 100644
--- a/api/usb2impl.c
+++ b/api/usb2impl.c
@@ -1,11 +1,12 @@
// all for Linux
-#include <generated/autoconf.h>
+//#include <linux/autoconf.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kref.h>
+//#include <linux/smp_lock.h>
#include <linux/usb.h>
#include <asm/uaccess.h>
#include <linux/device.h>
@@ -126,7 +127,8 @@ Dword Usb2_writeControlBus (
IN Dword bufferLength,
IN Byte* buffer
) {
-
+
+// Ganymede *pGanymede = (Ganymede *)demodulator;
Dword ret,act_len;
ret = 0;
// printk("- Enter %s Function -\n",__FUNCTION__);
@@ -149,6 +151,7 @@ Dword Usb2_readControlBus (
OUT Byte* buffer
) {
+// Ganymede *pGanymede = (Ganymede *)demodulator;
Dword ret, nBytesRead;
ret = 0;
// printk("- Enter %s Function -\n",__FUNCTION__);