summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dibusb
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/dibusb')
-rw-r--r--linux/drivers/media/dvb/dibusb/dvb-dibusb.c27
1 files changed, 17 insertions, 10 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb.c b/linux/drivers/media/dvb/dibusb/dvb-dibusb.c
index 88092509c..32d52b2c9 100644
--- a/linux/drivers/media/dvb/dibusb/dvb-dibusb.c
+++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb.c
@@ -221,12 +221,12 @@ static void dibusb_urb_complete(struct urb *urb, struct pt_regs *ptregs)
{
struct usb_dibusb *dib = urb->context;
- deb_xfer("urb complete feedcount: %d, status: %d\n",dib->feedcount,urb->status);
+ deb_ts("urb complete feedcount: %d, status: %d\n",dib->feedcount,urb->status);
if (dib->feedcount > 0 && urb->status == 0) {
- deb_xfer("URB return len: %d\n",urb->actual_length);
+ deb_ts("URB return len: %d\n",urb->actual_length);
if (urb->actual_length % 188)
- deb_xfer("TS Packets: %d, %d\n", urb->actual_length/188,urb->actual_length % 188);
+ deb_ts("TS Packets: %d, %d\n", urb->actual_length/188,urb->actual_length % 188);
/* Francois recommends to drop not full-filled packets, even if they may
* contain valid TS packets
@@ -396,11 +396,24 @@ static u32 dibusb_i2c_func(struct i2c_adapter *adapter)
return I2C_FUNC_I2C;
}
+static int thomson_cable_eu_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params);
+
+static struct dib3000mb_config thomson_cable_eu_config = {
+ .demod_address = 0x10,
+ .pll_addr = 194,
+ .pll_set = thomson_cable_eu_pll_set,
+};
+
static int thomson_cable_eu_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params)
{
struct usb_dibusb* dib = (struct usb_dibusb*) fe->dvb->priv;
u8 buf[4];
- struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) };
+ struct i2c_msg msg = {
+ .addr = thomson_cable_eu_config.pll_addr,
+ .flags = 0,
+ .buf = buf,
+ .len = sizeof(buf)
+ };
u32 tfreq = (params->frequency + 36125000) / 62500;
int vu,p0,p1,p2;
@@ -424,12 +437,6 @@ static int thomson_cable_eu_pll_set(struct dvb_frontend* fe, struct dvb_frontend
return 0;
}
-static struct dib3000mb_config thomson_cable_eu_config = {
- .demod_address = 0x10,
- .pll_addr = 0x61,
- .pll_set = thomson_cable_eu_pll_set,
-};
-
static struct i2c_algorithm dibusb_algo = {
.name = "DiBcom USB i2c algorithm",
.id = I2C_ALGO_BIT,