aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-18 16:47:11 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 00:59:00 -0400
commit4b4c9150dafda804a24885683162a898bcc564f2 (patch)
tree2ab0b3e161538fc480d052cbf0dafa643ca0fb2b /drivers
parentc72bf909c1d65c4a95fee8c42cf47a5f5a5ff246 (diff)
V4L/DVB (3873): Convert pluto2 to refactored tuner code
Rename pll calls to appropriate tuner calls. Remove pll functions from demod structures. Hook tuner call into tuner_ops. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-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) {