summaryrefslogtreecommitdiffstats
path: root/src/af903x-drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/af903x-drv.c')
-rw-r--r--src/af903x-drv.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/af903x-drv.c b/src/af903x-drv.c
index 86a7802..bd9084d 100644
--- a/src/af903x-drv.c
+++ b/src/af903x-drv.c
@@ -6,6 +6,7 @@ int dvb_usb_af903x_debug;
module_param_named(debug,dvb_usb_af903x_debug, int, 0644);
MODULE_PARM_DESC(debug, "set debugging level.(info=1,deb_fw=2,deb_fwdata=4,deb_data=8)" DVB_USB_DEBUG_STATUS);
+
struct usb_device *udevs;
PDEVICE_CONTEXT PDC;
@@ -37,6 +38,14 @@ static DWORD DRV_IrTblDownload(IN void * handle)
filp->f_pos=0x00;
fileSize = filp->f_op->read(filp,b_buf,sizeof(b_buf),&filp->f_pos);
+ //for(i=0; i<fileSize; i++)
+ //{
+ // deb_data("\n Data %d",i); //
+ // deb_data("0x%x",b_buf[i]);//
+ // dwError = Af901xWriteReg(ucDemod2WireAddr, 0, MERC_IR_TABLE_BASE_ADDR + i, b_buf[i]);
+ // if (dwError) goto exit;
+ //}
+
dwError = Demodulator_loadIrTable((Demodulator*) &pdc->Demodulator, (Word)fileSize, b_buf);
if (dwError) {printk("Demodulator_loadIrTable fail"); goto exit;}
@@ -81,9 +90,10 @@ static DWORD DRV_SetFreqBw(
)
{
DWORD dwError = Error_NO_ERROR;
+
PDEVICE_CONTEXT pdc = (PDEVICE_CONTEXT)handle;
- Bool bLock = true;
+ Bool bLock = true;
deb_data("- Enter %s Function -\n ",__FUNCTION__);
deb_data(" ucSlaveDemod = %d, Freq= %d, BW=%d\n", (int) ucSlaveDemod, (int) dwFreq, (int) ucBw);
@@ -549,7 +559,7 @@ static DWORD DRV_GetEEPROMConfig(
cnt = 1;
}
- for(; ucSlaveDemod < cnt; ucSlaveDemod++)
+ for(ucSlaveDemod; ucSlaveDemod < cnt; ucSlaveDemod++)
{
deb_data("ucSlaveDemod: %d \n",cnt);
dwError = DRV_GetEEPROMConfig2(pdc, ucSlaveDemod);
@@ -1404,7 +1414,7 @@ DWORD Device_init(struct usb_device *udev,PDEVICE_CONTEXT PDCs, Bool bBoot)
PDC->Demodulator.userData = (Handle)PDC;
PDC->Demodulator.chipNumber = 1;
PDC->architecture=Architecture_DCA;
- PDC->Demodulator.frequency[0] = 546000;
+ PDC->Demodulator.frequency[0] = 834000;
PDC->Demodulator.bandwidth[0] = 8000;
PDC->bIrTblDownload = false;
PDC->fc[0].tunerinfo.TunerId = 0;