Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29876
b: refs/heads/master
c: 55bbcde
h: refs/heads/master
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jun 25, 2006
1 parent 2598986 commit e5151b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7e557743360104cf71aab1f34df58ef5e7d0b042
refs/heads/master: 55bbcdefc525236bd6ed691456923322be4a82c7
34 changes: 2 additions & 32 deletions trunk/drivers/media/dvb/dvb-usb/cxusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include "cx22702.h"
#include "lgdt330x.h"
#include "fe_lgh06xf.h"
#include "mt352.h"
#include "mt352_priv.h"

Expand Down Expand Up @@ -326,30 +327,7 @@ static int cxusb_lgh064f_pll_set_i2c(struct dvb_frontend *fe,
struct dvb_frontend_parameters *fep)
{
struct dvb_usb_device *d = fe->dvb->priv;
int ret = 0;
u8 b[5];
struct i2c_msg msg = { .addr = d->pll_addr, .flags = 0,
.buf = &b[1], .len = 4 };

dvb_usb_pll_set(fe,fep,b);

if (i2c_transfer (&d->i2c_adap, &msg, 1) != 1) {
err("tuner i2c write failed for pll_set.");
ret = -EREMOTEIO;
}
msleep(1);

/* Set the Auxiliary Byte. */
b[3] &= ~0x20;
b[3] |= 0x18;
b[4] = 0x50;
if (i2c_transfer(&d->i2c_adap, &msg, 1) != 1) {
err("tuner i2c write failed writing auxiliary byte.");
ret = -EREMOTEIO;
}
msleep(1);

return ret;
return lg_h06xf_pll_set(fe, &d->i2c_adap, fep);
}

static struct cx22702_config cxusb_cx22702_config = {
Expand Down Expand Up @@ -390,13 +368,6 @@ static int cxusb_fmd1216me_tuner_attach(struct dvb_usb_device *d)
return 0;
}

static int cxusb_lgh064f_tuner_attach(struct dvb_usb_device *d)
{
d->pll_addr = 0x61;
d->pll_desc = &dvb_pll_tdvs_tua6034;
return 0;
}

static int cxusb_dee1601_tuner_attach(struct dvb_usb_device *d)
{
d->pll_addr = 0x61;
Expand Down Expand Up @@ -581,7 +552,6 @@ static struct dvb_usb_properties cxusb_bluebird_lgh064f_properties = {
.streaming_ctrl = cxusb_streaming_ctrl,
.power_ctrl = cxusb_bluebird_power_ctrl,
.frontend_attach = cxusb_lgdt3303_frontend_attach,
.tuner_attach = cxusb_lgh064f_tuner_attach,

.i2c_algo = &cxusb_i2c_algo,

Expand Down

0 comments on commit e5151b9

Please sign in to comment.