aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/pluto2/pluto2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/pluto2/pluto2.c')
-rw-r--r--drivers/media/dvb/pluto2/pluto2.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/dvb/pluto2/pluto2.c b/drivers/media/dvb/pluto2/pluto2.c
index c9afad038c1f..5cc609d986d4 100644
--- a/drivers/media/dvb/pluto2/pluto2.c
+++ b/drivers/media/dvb/pluto2/pluto2.c
@@ -424,8 +424,8 @@ static inline u32 divide(u32 numerator, u32 denominator)
424} 424}
425 425
426/* LG Innotek TDTE-E001P (Infineon TUA6034) */ 426/* LG Innotek TDTE-E001P (Infineon TUA6034) */
427static int lg_tdtpe001p_pll_set(struct dvb_frontend *fe, 427static int lg_tdtpe001p_tuner_set_params(struct dvb_frontend *fe,
428 struct dvb_frontend_parameters *p) 428 struct dvb_frontend_parameters *p)
429{ 429{
430 struct pluto *pluto = frontend_to_pluto(fe); 430 struct pluto *pluto = frontend_to_pluto(fe);
431 struct i2c_msg msg; 431 struct i2c_msg msg;
@@ -473,6 +473,8 @@ static int lg_tdtpe001p_pll_set(struct dvb_frontend *fe,
473 msg.buf = buf; 473 msg.buf = buf;
474 msg.len = sizeof(buf); 474 msg.len = sizeof(buf);
475 475
476 if (fe->ops->i2c_gate_ctrl)
477 fe->ops->i2c_gate_ctrl(fe, 1);
476 ret = i2c_transfer(&pluto->i2c_adap, &msg, 1); 478 ret = i2c_transfer(&pluto->i2c_adap, &msg, 1);
477 if (ret < 0) 479 if (ret < 0)
478 return ret; 480 return ret;
@@ -497,8 +499,6 @@ static struct tda1004x_config pluto2_fe_config __devinitdata = {
497 .xtal_freq = TDA10046_XTAL_16M, 499 .xtal_freq = TDA10046_XTAL_16M,
498 .agc_config = TDA10046_AGC_DEFAULT, 500 .agc_config = TDA10046_AGC_DEFAULT,
499 .if_freq = TDA10046_FREQ_3617, 501 .if_freq = TDA10046_FREQ_3617,
500 .pll_set = lg_tdtpe001p_pll_set,
501 .pll_sleep = NULL,
502 .request_firmware = pluto2_request_firmware, 502 .request_firmware = pluto2_request_firmware,
503}; 503};
504 504
@@ -511,6 +511,7 @@ static int __devinit frontend_init(struct pluto *pluto)
511 dev_err(&pluto->pdev->dev, "could not attach frontend\n"); 511 dev_err(&pluto->pdev->dev, "could not attach frontend\n");
512 return -ENODEV; 512 return -ENODEV;
513 } 513 }
514 pluto->fe->ops->tuner_ops.set_params = lg_tdtpe001p_tuner_set_params;
514 515
515 ret = dvb_register_frontend(&pluto->dvb_adapter, pluto->fe); 516 ret = dvb_register_frontend(&pluto->dvb_adapter, pluto->fe);
516 if (ret < 0) { 517 if (ret < 0) {