aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/dvb/bt8xx/dvb-bt8xx.c12
-rw-r--r--drivers/media/dvb/dvb-usb/cxusb.c4
-rw-r--r--drivers/media/dvb/dvb-usb/digitv.c4
-rw-r--r--drivers/media/dvb/dvb-usb/dvb-usb.h2
-rw-r--r--drivers/media/dvb/dvb-usb/umt-010.c2
-rw-r--r--drivers/media/dvb/frontends/dvb-pll.c4
-rw-r--r--drivers/media/dvb/frontends/mt352.c4
-rw-r--r--drivers/media/dvb/frontends/nxt200x.c4
-rw-r--r--drivers/media/dvb/frontends/zl10353.c4
-rw-r--r--drivers/media/video/saa7134/saa7134-dvb.c8
10 files changed, 24 insertions, 24 deletions
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c
index 0f23ec04f7bc..09e18296b3ca 100644
--- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c
+++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c
@@ -147,7 +147,7 @@ static int thomson_dtt7579_demod_init(struct dvb_frontend* fe)
147 return 0; 147 return 0;
148} 148}
149 149
150static int thomson_dtt7579_tuner_pllbuf(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf, int buf_len) 150static int thomson_dtt7579_tuner_calc_regs(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf, int buf_len)
151{ 151{
152 u32 div; 152 u32 div;
153 unsigned char bs = 0; 153 unsigned char bs = 0;
@@ -341,7 +341,7 @@ static int advbt771_samsung_tdtc9251dh0_demod_init(struct dvb_frontend* fe)
341 return 0; 341 return 0;
342} 342}
343 343
344static int advbt771_samsung_tdtc9251dh0_tuner_pllbuf(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf, int buf_len) 344static int advbt771_samsung_tdtc9251dh0_tuner_calc_regs(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf, int buf_len)
345{ 345{
346 u32 div; 346 u32 div;
347 unsigned char bs = 0; 347 unsigned char bs = 0;
@@ -512,7 +512,7 @@ static int digitv_alps_tded4_demod_init(struct dvb_frontend* fe)
512 return 0; 512 return 0;
513} 513}
514 514
515static int digitv_alps_tded4_tuner_pllbuf(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf, int buf_len) 515static int digitv_alps_tded4_tuner_calc_regs(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf, int buf_len)
516{ 516{
517 u32 div; 517 u32 div;
518 struct dvb_ofdm_parameters *op = &params->u.ofdm; 518 struct dvb_ofdm_parameters *op = &params->u.ofdm;
@@ -607,7 +607,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type)
607 card->i2c_adapter); 607 card->i2c_adapter);
608 608
609 if (card->fe != NULL) { 609 if (card->fe != NULL) {
610 card->fe->ops->tuner_ops.pllbuf = thomson_dtt7579_tuner_pllbuf; 610 card->fe->ops->tuner_ops.calc_regs = thomson_dtt7579_tuner_calc_regs;
611 card->fe->ops->info.frequency_min = 174000000; 611 card->fe->ops->info.frequency_min = 174000000;
612 card->fe->ops->info.frequency_max = 862000000; 612 card->fe->ops->info.frequency_max = 862000000;
613 } 613 }
@@ -642,7 +642,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type)
642 card->fe = mt352_attach(&digitv_alps_tded4_config, card->i2c_adapter); 642 card->fe = mt352_attach(&digitv_alps_tded4_config, card->i2c_adapter);
643 643
644 if (card->fe != NULL) { 644 if (card->fe != NULL) {
645 card->fe->ops->tuner_ops.pllbuf = digitv_alps_tded4_tuner_pllbuf; 645 card->fe->ops->tuner_ops.calc_regs = digitv_alps_tded4_tuner_calc_regs;
646 dprintk ("dvb_bt8xx: an mt352 was detected on your digitv card\n"); 646 dprintk ("dvb_bt8xx: an mt352 was detected on your digitv card\n");
647 } 647 }
648 break; 648 break;
@@ -657,7 +657,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type)
657 case BTTV_BOARD_AVDVBT_771: 657 case BTTV_BOARD_AVDVBT_771:
658 card->fe = mt352_attach(&advbt771_samsung_tdtc9251dh0_config, card->i2c_adapter); 658 card->fe = mt352_attach(&advbt771_samsung_tdtc9251dh0_config, card->i2c_adapter);
659 if (card->fe != NULL) { 659 if (card->fe != NULL) {
660 card->fe->ops->tuner_ops.pllbuf = advbt771_samsung_tdtc9251dh0_tuner_pllbuf; 660 card->fe->ops->tuner_ops.calc_regs = advbt771_samsung_tdtc9251dh0_tuner_calc_regs;
661 card->fe->ops->info.frequency_min = 174000000; 661 card->fe->ops->info.frequency_min = 174000000;
662 card->fe->ops->info.frequency_max = 862000000; 662 card->fe->ops->info.frequency_max = 862000000;
663 } 663 }
diff --git a/drivers/media/dvb/dvb-usb/cxusb.c b/drivers/media/dvb/dvb-usb/cxusb.c
index 8559c2cd9a45..0f178377d1a6 100644
--- a/drivers/media/dvb/dvb-usb/cxusb.c
+++ b/drivers/media/dvb/dvb-usb/cxusb.c
@@ -423,7 +423,7 @@ static int cxusb_mt352_frontend_attach(struct dvb_usb_device *d)
423 cxusb_ctrl_msg(d,CMD_DIGITAL, NULL, 0, NULL, 0); 423 cxusb_ctrl_msg(d,CMD_DIGITAL, NULL, 0, NULL, 0);
424 424
425 if ((d->fe = mt352_attach(&cxusb_mt352_config, &d->i2c_adap)) != NULL) { 425 if ((d->fe = mt352_attach(&cxusb_mt352_config, &d->i2c_adap)) != NULL) {
426 d->fe->ops->tuner_ops.pllbuf = dvb_usb_tuner_pllbuf; 426 d->fe->ops->tuner_ops.calc_regs = dvb_usb_tuner_calc_regs;
427 return 0; 427 return 0;
428 } 428 }
429 429
@@ -438,7 +438,7 @@ static int cxusb_dee1601_frontend_attach(struct dvb_usb_device *d)
438 cxusb_ctrl_msg(d,CMD_DIGITAL, NULL, 0, NULL, 0); 438 cxusb_ctrl_msg(d,CMD_DIGITAL, NULL, 0, NULL, 0);
439 439
440 if ((d->fe = mt352_attach(&cxusb_dee1601_config, &d->i2c_adap)) != NULL) { 440 if ((d->fe = mt352_attach(&cxusb_dee1601_config, &d->i2c_adap)) != NULL) {
441 d->fe->ops->tuner_ops.pllbuf = dvb_usb_tuner_pllbuf; 441 d->fe->ops->tuner_ops.calc_regs = dvb_usb_tuner_calc_regs;
442 return 0; 442 return 0;
443 } 443 }
444 444
diff --git a/drivers/media/dvb/dvb-usb/digitv.c b/drivers/media/dvb/dvb-usb/digitv.c
index 481f48b9d846..56814ba8037b 100644
--- a/drivers/media/dvb/dvb-usb/digitv.c
+++ b/drivers/media/dvb/dvb-usb/digitv.c
@@ -118,7 +118,7 @@ static int digitv_nxt6000_tuner_set_params(struct dvb_frontend *fe, struct dvb_f
118{ 118{
119 struct dvb_usb_device *d = fe->dvb->priv; 119 struct dvb_usb_device *d = fe->dvb->priv;
120 u8 b[5]; 120 u8 b[5];
121 dvb_usb_tuner_pllbuf(fe,fep,b, 5); 121 dvb_usb_tuner_calc_regs(fe,fep,b, 5);
122 return digitv_ctrl_msg(d,USB_WRITE_TUNER,0,&b[1],4,NULL,0); 122 return digitv_ctrl_msg(d,USB_WRITE_TUNER,0,&b[1],4,NULL,0);
123} 123}
124 124
@@ -129,7 +129,7 @@ static struct nxt6000_config digitv_nxt6000_config = {
129static int digitv_frontend_attach(struct dvb_usb_device *d) 129static int digitv_frontend_attach(struct dvb_usb_device *d)
130{ 130{
131 if ((d->fe = mt352_attach(&digitv_mt352_config, &d->i2c_adap)) != NULL) { 131 if ((d->fe = mt352_attach(&digitv_mt352_config, &d->i2c_adap)) != NULL) {
132 d->fe->ops->tuner_ops.pllbuf = dvb_usb_tuner_pllbuf; 132 d->fe->ops->tuner_ops.calc_regs = dvb_usb_tuner_calc_regs;
133 return 0; 133 return 0;
134 } 134 }
135 if ((d->fe = nxt6000_attach(&digitv_nxt6000_config, &d->i2c_adap)) != NULL) { 135 if ((d->fe = nxt6000_attach(&digitv_nxt6000_config, &d->i2c_adap)) != NULL) {
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb.h b/drivers/media/dvb/dvb-usb/dvb-usb.h
index 311acb43e4c8..4cf9f89c51bf 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb.h
+++ b/drivers/media/dvb/dvb-usb/dvb-usb.h
@@ -331,7 +331,7 @@ extern int dvb_usb_nec_rc_key_to_event(struct dvb_usb_device *, u8[], u32 *, int
331 331
332/* commonly used pll init and set functions */ 332/* commonly used pll init and set functions */
333extern int dvb_usb_tuner_init_i2c(struct dvb_frontend *); 333extern int dvb_usb_tuner_init_i2c(struct dvb_frontend *);
334extern int dvb_usb_tuner_pllbuf(struct dvb_frontend *, struct dvb_frontend_parameters *, u8 *buf, int buf_len); 334extern int dvb_usb_tuner_calc_regs(struct dvb_frontend *, struct dvb_frontend_parameters *, u8 *buf, int buf_len);
335extern int dvb_usb_tuner_set_params_i2c(struct dvb_frontend *, struct dvb_frontend_parameters *); 335extern int dvb_usb_tuner_set_params_i2c(struct dvb_frontend *, struct dvb_frontend_parameters *);
336 336
337/* commonly used firmware download types and function */ 337/* commonly used firmware download types and function */
diff --git a/drivers/media/dvb/dvb-usb/umt-010.c b/drivers/media/dvb/dvb-usb/umt-010.c
index 80538db79fcb..1a38c80acd6c 100644
--- a/drivers/media/dvb/dvb-usb/umt-010.c
+++ b/drivers/media/dvb/dvb-usb/umt-010.c
@@ -57,7 +57,7 @@ static int umt_mt352_frontend_attach(struct dvb_usb_device *d)
57 memset(&umt_config,0,sizeof(struct mt352_config)); 57 memset(&umt_config,0,sizeof(struct mt352_config));
58 umt_config.demod_init = umt_mt352_demod_init; 58 umt_config.demod_init = umt_mt352_demod_init;
59 umt_config.demod_address = 0xf; 59 umt_config.demod_address = 0xf;
60 d->fe->ops->tuner_ops.pllbuf = dvb_usb_tuner_pllbuf; 60 d->fe->ops->tuner_ops.calc_regs = dvb_usb_tuner_calc_regs;
61 61
62 d->fe = mt352_attach(&umt_config, &d->i2c_adap); 62 d->fe = mt352_attach(&umt_config, &d->i2c_adap);
63 63
diff --git a/drivers/media/dvb/frontends/dvb-pll.c b/drivers/media/dvb/frontends/dvb-pll.c
index 5b96c2f280d5..a1a4be41e03e 100644
--- a/drivers/media/dvb/frontends/dvb-pll.c
+++ b/drivers/media/dvb/frontends/dvb-pll.c
@@ -555,7 +555,7 @@ static int dvb_pll_set_params(struct dvb_frontend *fe, struct dvb_frontend_param
555 return 0; 555 return 0;
556} 556}
557 557
558static int dvb_pll_pllbuf(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8 *buf, int buf_len) 558static int dvb_pll_calc_regs(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8 *buf, int buf_len)
559{ 559{
560 struct dvb_pll_priv *priv = fe->tuner_priv; 560 struct dvb_pll_priv *priv = fe->tuner_priv;
561 int result; 561 int result;
@@ -606,7 +606,7 @@ static struct dvb_tuner_ops dvb_pll_tuner_ops = {
606 .release = dvb_pll_release, 606 .release = dvb_pll_release,
607 .sleep = dvb_pll_sleep, 607 .sleep = dvb_pll_sleep,
608 .set_params = dvb_pll_set_params, 608 .set_params = dvb_pll_set_params,
609 .pllbuf = dvb_pll_pllbuf, 609 .calc_regs = dvb_pll_calc_regs,
610 .get_frequency = dvb_pll_get_frequency, 610 .get_frequency = dvb_pll_get_frequency,
611 .get_bandwidth = dvb_pll_get_bandwidth, 611 .get_bandwidth = dvb_pll_get_bandwidth,
612}; 612};
diff --git a/drivers/media/dvb/frontends/mt352.c b/drivers/media/dvb/frontends/mt352.c
index 3c86018e7f9d..ed3bede029eb 100644
--- a/drivers/media/dvb/frontends/mt352.c
+++ b/drivers/media/dvb/frontends/mt352.c
@@ -302,8 +302,8 @@ static int mt352_set_parameters(struct dvb_frontend* fe,
302 // retrieve the pllbuf - we do this even if there is no 302 // retrieve the pllbuf - we do this even if there is no
303 // secondary tuner simply so we have a record of what was sent for 303 // secondary tuner simply so we have a record of what was sent for
304 // debugging. 304 // debugging.
305 if (fe->ops->tuner_ops.pllbuf) { 305 if (fe->ops->tuner_ops.calc_regs) {
306 fe->ops->tuner_ops.pllbuf(fe, param, buf+8, 5); 306 fe->ops->tuner_ops.calc_regs(fe, param, buf+8, 5);
307 buf[8] <<= 1; 307 buf[8] <<= 1;
308 mt352_write(fe, buf, sizeof(buf)); 308 mt352_write(fe, buf, sizeof(buf));
309 } 309 }
diff --git a/drivers/media/dvb/frontends/nxt200x.c b/drivers/media/dvb/frontends/nxt200x.c
index 809ffd40fce8..9b13f14f14f6 100644
--- a/drivers/media/dvb/frontends/nxt200x.c
+++ b/drivers/media/dvb/frontends/nxt200x.c
@@ -548,8 +548,8 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
548 } 548 }
549 549
550 /* get tuning information */ 550 /* get tuning information */
551 if (fe->ops->tuner_ops.pllbuf) { 551 if (fe->ops->tuner_ops.calc_regs) {
552 fe->ops->tuner_ops.pllbuf(fe, p, buf, 5); 552 fe->ops->tuner_ops.calc_regs(fe, p, buf, 5);
553 } 553 }
554 554
555 /* set additional params */ 555 /* set additional params */
diff --git a/drivers/media/dvb/frontends/zl10353.c b/drivers/media/dvb/frontends/zl10353.c
index 1234eb0070d6..ac39f5519621 100644
--- a/drivers/media/dvb/frontends/zl10353.c
+++ b/drivers/media/dvb/frontends/zl10353.c
@@ -153,8 +153,8 @@ static int zl10353_set_parameters(struct dvb_frontend *fe,
153 } 153 }
154 154
155 // if pllbuf is defined, retrieve the settings 155 // if pllbuf is defined, retrieve the settings
156 if (fe->ops->tuner_ops.pllbuf) { 156 if (fe->ops->tuner_ops.calc_regs) {
157 fe->ops->tuner_ops.pllbuf(fe, param, pllbuf+1, 5); 157 fe->ops->tuner_ops.calc_regs(fe, param, pllbuf+1, 5);
158 pllbuf[1] <<= 1; 158 pllbuf[1] <<= 1;
159 } else { 159 } else {
160 // fake pllbuf settings 160 // fake pllbuf settings
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c
index a36dab152585..d62e9a4f2a1c 100644
--- a/drivers/media/video/saa7134/saa7134-dvb.c
+++ b/drivers/media/video/saa7134/saa7134-dvb.c
@@ -132,7 +132,7 @@ static int mt352_aver777_init(struct dvb_frontend* fe)
132 return 0; 132 return 0;
133} 133}
134 134
135static int mt352_pinnacle_tuner_pllbuf(struct dvb_frontend* fe, 135static int mt352_pinnacle_tuner_calc_regs(struct dvb_frontend* fe,
136 struct dvb_frontend_parameters* params, 136 struct dvb_frontend_parameters* params,
137 u8* pllbuf, int buf_len) 137 u8* pllbuf, int buf_len)
138{ 138{
@@ -167,7 +167,7 @@ static int mt352_pinnacle_tuner_pllbuf(struct dvb_frontend* fe,
167 return 5; 167 return 5;
168} 168}
169 169
170static int mt352_aver777_tuner_pllbuf(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8* pllbuf, int buf_len) 170static int mt352_aver777_tuner_calc_regs(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8* pllbuf, int buf_len)
171{ 171{
172 if (buf_len < 5) 172 if (buf_len < 5)
173 return -EINVAL; 173 return -EINVAL;
@@ -1020,14 +1020,14 @@ static int dvb_init(struct saa7134_dev *dev)
1020 printk("%s: pinnacle 300i dvb setup\n",dev->name); 1020 printk("%s: pinnacle 300i dvb setup\n",dev->name);
1021 dev->dvb.frontend = mt352_attach(&pinnacle_300i, 1021 dev->dvb.frontend = mt352_attach(&pinnacle_300i,
1022 &dev->i2c_adap); 1022 &dev->i2c_adap);
1023 dev->dvb.frontend->ops->tuner_ops.pllbuf = mt352_pinnacle_tuner_pllbuf; 1023 dev->dvb.frontend->ops->tuner_ops.calc_regs = mt352_pinnacle_tuner_calc_regs;
1024 break; 1024 break;
1025 1025
1026 case SAA7134_BOARD_AVERMEDIA_777: 1026 case SAA7134_BOARD_AVERMEDIA_777:
1027 printk("%s: avertv 777 dvb setup\n",dev->name); 1027 printk("%s: avertv 777 dvb setup\n",dev->name);
1028 dev->dvb.frontend = mt352_attach(&avermedia_777, 1028 dev->dvb.frontend = mt352_attach(&avermedia_777,
1029 &dev->i2c_adap); 1029 &dev->i2c_adap);
1030 dev->dvb.frontend->ops->tuner_ops.pllbuf = mt352_aver777_tuner_pllbuf; 1030 dev->dvb.frontend->ops->tuner_ops.calc_regs = mt352_aver777_tuner_calc_regs;
1031 break; 1031 break;
1032#endif 1032#endif
1033#ifdef HAVE_TDA1004X 1033#ifdef HAVE_TDA1004X