Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29904
b: refs/heads/master
c: 4b4c915
h: refs/heads/master
v: v3
  • Loading branch information
Andrew de Quincey authored and Mauro Carvalho Chehab committed Jun 25, 2006
1 parent c365d09 commit af0797b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: c72bf909c1d65c4a95fee8c42cf47a5f5a5ff246
refs/heads/master: 4b4c9150dafda804a24885683162a898bcc564f2
9 changes: 5 additions & 4 deletions trunk/drivers/media/dvb/pluto2/pluto2.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ static inline u32 divide(u32 numerator, u32 denominator)
}

/* LG Innotek TDTE-E001P (Infineon TUA6034) */
static int lg_tdtpe001p_pll_set(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
static int lg_tdtpe001p_tuner_set_params(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
{
struct pluto *pluto = frontend_to_pluto(fe);
struct i2c_msg msg;
Expand Down Expand Up @@ -473,6 +473,8 @@ static int lg_tdtpe001p_pll_set(struct dvb_frontend *fe,
msg.buf = buf;
msg.len = sizeof(buf);

if (fe->ops->i2c_gate_ctrl)
fe->ops->i2c_gate_ctrl(fe, 1);
ret = i2c_transfer(&pluto->i2c_adap, &msg, 1);
if (ret < 0)
return ret;
Expand All @@ -497,8 +499,6 @@ static struct tda1004x_config pluto2_fe_config __devinitdata = {
.xtal_freq = TDA10046_XTAL_16M,
.agc_config = TDA10046_AGC_DEFAULT,
.if_freq = TDA10046_FREQ_3617,
.pll_set = lg_tdtpe001p_pll_set,
.pll_sleep = NULL,
.request_firmware = pluto2_request_firmware,
};

Expand All @@ -511,6 +511,7 @@ static int __devinit frontend_init(struct pluto *pluto)
dev_err(&pluto->pdev->dev, "could not attach frontend\n");
return -ENODEV;
}
pluto->fe->ops->tuner_ops.set_params = lg_tdtpe001p_tuner_set_params;

ret = dvb_register_frontend(&pluto->dvb_adapter, pluto->fe);
if (ret < 0) {
Expand Down

0 comments on commit af0797b

Please sign in to comment.