2 * descriptions + helper functions for simple dvb plls.
4 * (c) 2004 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include <linux/module.h>
22 #include <linux/dvb/frontend.h>
23 #include <asm/types.h>
33 struct i2c_adapter *i2c;
35 /* the PLL descriptor */
36 struct dvb_pll_desc *pll_desc;
38 /* cached frequency/bandwidth */
43 #define DVB_PLL_MAX 64
45 static unsigned int dvb_pll_devcount;
48 module_param(debug, int, 0644);
49 MODULE_PARM_DESC(debug, "enable verbose debug messages");
51 static unsigned int input[DVB_PLL_MAX] = { [ 0 ... (DVB_PLL_MAX-1) ] = 0 };
52 module_param_array(input, int, NULL, 0644);
53 MODULE_PARM_DESC(input,"specify rf input choice, 0 for autoselect (default)");
55 /* ----------------------------------------------------------- */
62 void (*set)(struct dvb_frontend *fe, u8 *buf,
63 const struct dvb_frontend_parameters *params);
75 /* ----------------------------------------------------------- */
78 /* Set AGC TOP value to 103 dBuV:
80 0x40 = 250 uA charge pump (irrelevant)
81 0x18 = Aux Byte to follow
82 0x06 = 64.5 kHz divider (irrelevant)
83 0x01 = Disable Vt (aka sleep)
85 0x00 = AGC Time constant 2s Iagc = 300 nA (vs 0x80 = 9 nA)
86 0x50 = AGC Take over point = 103 dBuV */
87 static u8 tua603x_agc103[] = { 2, 0x80|0x40|0x18|0x06|0x01, 0x00|0x50 };
89 /* 0x04 = 166.67 kHz divider
91 0x80 = AGC Time constant 50ms Iagc = 9 uA
92 0x20 = AGC Take over point = 112 dBuV */
93 static u8 tua603x_agc112[] = { 2, 0x80|0x40|0x18|0x04|0x01, 0x80|0x20 };
95 static struct dvb_pll_desc dvb_pll_thomson_dtt7579 = {
96 .name = "Thomson dtt7579",
100 .sleepdata = (u8[]){ 2, 0xb4, 0x03 },
103 { 443250000, 166667, 0xb4, 0x02 },
104 { 542000000, 166667, 0xb4, 0x08 },
105 { 771000000, 166667, 0xbc, 0x08 },
106 { 999999999, 166667, 0xf4, 0x08 },
110 static struct dvb_pll_desc dvb_pll_thomson_dtt7610 = {
111 .name = "Thomson dtt7610",
117 { 157250000, 62500, 0x8e, 0x39 },
118 { 454000000, 62500, 0x8e, 0x3a },
119 { 999999999, 62500, 0x8e, 0x3c },
123 static void thomson_dtt759x_bw(struct dvb_frontend *fe, u8 *buf,
124 const struct dvb_frontend_parameters *params)
126 if (BANDWIDTH_7_MHZ == params->u.ofdm.bandwidth)
130 static struct dvb_pll_desc dvb_pll_thomson_dtt759x = {
131 .name = "Thomson dtt759x",
134 .set = thomson_dtt759x_bw,
136 .sleepdata = (u8[]){ 2, 0x84, 0x03 },
139 { 264000000, 166667, 0xb4, 0x02 },
140 { 470000000, 166667, 0xbc, 0x02 },
141 { 735000000, 166667, 0xbc, 0x08 },
142 { 835000000, 166667, 0xf4, 0x08 },
143 { 999999999, 166667, 0xfc, 0x08 },
147 static struct dvb_pll_desc dvb_pll_lg_z201 = {
152 .sleepdata = (u8[]){ 2, 0xbc, 0x03 },
155 { 157500000, 166667, 0xbc, 0x01 },
156 { 443250000, 166667, 0xbc, 0x02 },
157 { 542000000, 166667, 0xbc, 0x04 },
158 { 830000000, 166667, 0xf4, 0x04 },
159 { 999999999, 166667, 0xfc, 0x04 },
163 static struct dvb_pll_desc dvb_pll_microtune_4042 = {
164 .name = "Microtune 4042 FI5",
170 { 162000000, 62500, 0x8e, 0xa1 },
171 { 457000000, 62500, 0x8e, 0x91 },
172 { 999999999, 62500, 0x8e, 0x31 },
176 static struct dvb_pll_desc dvb_pll_thomson_dtt761x = {
177 /* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */
178 .name = "Thomson dtt761x",
183 .initdata = tua603x_agc103,
185 { 147000000, 62500, 0x8e, 0x39 },
186 { 417000000, 62500, 0x8e, 0x3a },
187 { 999999999, 62500, 0x8e, 0x3c },
191 static struct dvb_pll_desc dvb_pll_unknown_1 = {
192 .name = "unknown 1", /* used by dntv live dvb-t */
198 { 150000000, 166667, 0xb4, 0x01 },
199 { 173000000, 166667, 0xbc, 0x01 },
200 { 250000000, 166667, 0xb4, 0x02 },
201 { 400000000, 166667, 0xbc, 0x02 },
202 { 420000000, 166667, 0xf4, 0x02 },
203 { 470000000, 166667, 0xfc, 0x02 },
204 { 600000000, 166667, 0xbc, 0x08 },
205 { 730000000, 166667, 0xf4, 0x08 },
206 { 999999999, 166667, 0xfc, 0x08 },
210 /* Infineon TUA6010XS
211 * used in Thomson Cable Tuner
213 static struct dvb_pll_desc dvb_pll_tua6010xs = {
214 .name = "Infineon TUA6010XS",
220 { 115750000, 62500, 0x8e, 0x03 },
221 { 403250000, 62500, 0x8e, 0x06 },
222 { 999999999, 62500, 0x8e, 0x85 },
226 /* Panasonic env57h1xd5 (some Philips PLL ?) */
227 static struct dvb_pll_desc dvb_pll_env57h1xd5 = {
228 .name = "Panasonic ENV57H1XD5",
234 { 153000000, 166667, 0xc2, 0x41 },
235 { 470000000, 166667, 0xc2, 0x42 },
236 { 526000000, 166667, 0xc2, 0x84 },
237 { 999999999, 166667, 0xc2, 0xa4 },
241 /* Philips TDA6650/TDA6651
242 * used in Panasonic ENV77H11D5
244 static void tda665x_bw(struct dvb_frontend *fe, u8 *buf,
245 const struct dvb_frontend_parameters *params)
247 if (params->u.ofdm.bandwidth == BANDWIDTH_8_MHZ)
251 static struct dvb_pll_desc dvb_pll_tda665x = {
252 .name = "Philips TDA6650/TDA6651",
257 .initdata = (u8[]){ 4, 0x0b, 0xf5, 0x85, 0xab },
260 { 93834000, 166667, 0xca, 0x61 /* 011 0 0 0 01 */ },
261 { 123834000, 166667, 0xca, 0xa1 /* 101 0 0 0 01 */ },
262 { 161000000, 166667, 0xca, 0xa1 /* 101 0 0 0 01 */ },
263 { 163834000, 166667, 0xca, 0xc2 /* 110 0 0 0 10 */ },
264 { 253834000, 166667, 0xca, 0x62 /* 011 0 0 0 10 */ },
265 { 383834000, 166667, 0xca, 0xa2 /* 101 0 0 0 10 */ },
266 { 443834000, 166667, 0xca, 0xc2 /* 110 0 0 0 10 */ },
267 { 444000000, 166667, 0xca, 0xc4 /* 110 0 0 1 00 */ },
268 { 583834000, 166667, 0xca, 0x64 /* 011 0 0 1 00 */ },
269 { 793834000, 166667, 0xca, 0xa4 /* 101 0 0 1 00 */ },
270 { 444834000, 166667, 0xca, 0xc4 /* 110 0 0 1 00 */ },
271 { 861000000, 166667, 0xca, 0xe4 /* 111 0 0 1 00 */ },
276 * used in LG TDTP E102P
278 static void tua6034_bw(struct dvb_frontend *fe, u8 *buf,
279 const struct dvb_frontend_parameters *params)
281 if (BANDWIDTH_7_MHZ != params->u.ofdm.bandwidth)
285 static struct dvb_pll_desc dvb_pll_tua6034 = {
286 .name = "Infineon TUA6034",
293 { 174500000, 62500, 0xce, 0x01 },
294 { 230000000, 62500, 0xce, 0x02 },
295 { 999999999, 62500, 0xce, 0x04 },
300 * used in LG TDVS-H061F, LG TDVS-H062F and LG TDVS-H064F
302 static struct dvb_pll_desc dvb_pll_lg_tdvs_h06xf = {
303 .name = "LG TDVS-H06xF",
307 .initdata = tua603x_agc103,
310 { 165000000, 62500, 0xce, 0x01 },
311 { 450000000, 62500, 0xce, 0x02 },
312 { 999999999, 62500, 0xce, 0x04 },
317 * used in Medion Hybrid PCMCIA card and USB Box
319 static void fmd1216me_bw(struct dvb_frontend *fe, u8 *buf,
320 const struct dvb_frontend_parameters *params)
322 if (params->u.ofdm.bandwidth == BANDWIDTH_8_MHZ &&
323 params->frequency >= 158870000)
327 static struct dvb_pll_desc dvb_pll_fmd1216me = {
328 .name = "Philips FMD1216ME",
333 .initdata = tua603x_agc112,
334 .sleepdata = (u8[]){ 4, 0x9c, 0x60, 0x85, 0x54 },
337 { 143870000, 166667, 0xbc, 0x41 },
338 { 158870000, 166667, 0xf4, 0x41 },
339 { 329870000, 166667, 0xbc, 0x42 },
340 { 441870000, 166667, 0xf4, 0x42 },
341 { 625870000, 166667, 0xbc, 0x44 },
342 { 803870000, 166667, 0xf4, 0x44 },
343 { 999999999, 166667, 0xfc, 0x44 },
348 * used in Nebula-Cards and USB boxes
350 static void tded4_bw(struct dvb_frontend *fe, u8 *buf,
351 const struct dvb_frontend_parameters *params)
353 if (params->u.ofdm.bandwidth == BANDWIDTH_8_MHZ)
357 static struct dvb_pll_desc dvb_pll_tded4 = {
358 .name = "ALPS TDED4",
365 { 153000000, 166667, 0x85, 0x01 },
366 { 470000000, 166667, 0x85, 0x02 },
367 { 823000000, 166667, 0x85, 0x08 },
368 { 999999999, 166667, 0x85, 0x88 },
373 * used in AverTVHD MCE A180
375 static struct dvb_pll_desc dvb_pll_tdhu2 = {
376 .name = "ALPS TDHU2",
382 { 162000000, 62500, 0x85, 0x01 },
383 { 426000000, 62500, 0x85, 0x02 },
384 { 782000000, 62500, 0x85, 0x08 },
385 { 999999999, 62500, 0x85, 0x88 },
390 * used in ATI HDTV Wonder
392 static void tuv1236d_rf(struct dvb_frontend *fe, u8 *buf,
393 const struct dvb_frontend_parameters *params)
395 struct dvb_pll_priv *priv = fe->tuner_priv;
396 unsigned int new_rf = input[priv->nr];
398 if ((new_rf == 0) || (new_rf > 2)) {
399 switch (params->u.vsb.modulation) {
419 "%s: unhandled rf input selection: %d",
420 __FUNCTION__, new_rf);
424 static struct dvb_pll_desc dvb_pll_tuv1236d = {
425 .name = "Philips TUV1236D",
432 { 157250000, 62500, 0xc6, 0x41 },
433 { 454000000, 62500, 0xc6, 0x42 },
434 { 999999999, 62500, 0xc6, 0x44 },
438 /* Samsung TBMV30111IN / TBMV30712IN1
439 * used in Air2PC ATSC - 2nd generation (nxt2002)
441 static struct dvb_pll_desc dvb_pll_samsung_tbmv = {
442 .name = "Samsung TBMV30111IN / TBMV30712IN1",
448 { 172000000, 166667, 0xb4, 0x01 },
449 { 214000000, 166667, 0xb4, 0x02 },
450 { 467000000, 166667, 0xbc, 0x02 },
451 { 721000000, 166667, 0xbc, 0x08 },
452 { 841000000, 166667, 0xf4, 0x08 },
453 { 999999999, 166667, 0xfc, 0x02 },
458 * Philips SD1878 Tuner.
460 static struct dvb_pll_desc dvb_pll_philips_sd1878_tda8261 = {
461 .name = "Philips SD1878",
464 .iffreq= 249, /* zero-IF, offset 249 is to round up */
467 { 1250000, 500, 0xc4, 0x00},
468 { 1550000, 500, 0xc4, 0x40},
469 { 2050000, 500, 0xc4, 0x80},
470 { 2150000, 500, 0xc4, 0xc0},
475 * Philips TD1316 Tuner.
477 static void td1316_bw(struct dvb_frontend *fe, u8 *buf,
478 const struct dvb_frontend_parameters *params)
483 if (params->frequency < 161000000)
485 else if (params->frequency < 444000000)
492 /* setup PLL filter */
493 if (params->u.ofdm.bandwidth == BANDWIDTH_8_MHZ)
497 static struct dvb_pll_desc dvb_pll_philips_td1316 = {
498 .name = "Philips TD1316",
505 { 93834000, 166667, 0xca, 0x60},
506 { 123834000, 166667, 0xca, 0xa0},
507 { 163834000, 166667, 0xca, 0xc0},
508 { 253834000, 166667, 0xca, 0x60},
509 { 383834000, 166667, 0xca, 0xa0},
510 { 443834000, 166667, 0xca, 0xc0},
511 { 583834000, 166667, 0xca, 0x60},
512 { 793834000, 166667, 0xca, 0xa0},
513 { 858834000, 166667, 0xca, 0xe0},
517 /* FE6600 used on DViCO Hybrid */
518 static struct dvb_pll_desc dvb_pll_thomson_fe6600 = {
519 .name = "Thomson FE6600",
525 { 250000000, 166667, 0xb4, 0x12 },
526 { 455000000, 166667, 0xfe, 0x11 },
527 { 775500000, 166667, 0xbc, 0x18 },
528 { 999999999, 166667, 0xf4, 0x18 },
532 static void opera1_bw(struct dvb_frontend *fe, u8 *buf,
533 const struct dvb_frontend_parameters *params)
535 if (params->u.ofdm.bandwidth == BANDWIDTH_8_MHZ)
539 static struct dvb_pll_desc dvb_pll_opera1 = {
540 .name = "Opera Tuner",
547 { 1064000, 500, 0xe5, 0xc6 },
548 { 1169000, 500, 0xe5, 0xe6 },
549 { 1299000, 500, 0xe5, 0x24 },
550 { 1444000, 500, 0xe5, 0x44 },
551 { 1606000, 500, 0xe5, 0x64 },
552 { 1777000, 500, 0xe5, 0x84 },
553 { 1941000, 500, 0xe5, 0xa4 },
554 { 2250000, 500, 0xe5, 0xc4 },
560 static struct dvb_pll_desc dvb_pll_fcv1236d = {
561 /* Bit_0: RF Input select
562 * Bit_1: 0=digital, 1=analog
564 .name = "Philips FCV1236D",
570 { 159000000, 62500, 0x8e, 0xa0 },
571 { 453000000, 62500, 0x8e, 0x90 },
572 { 999999999, 62500, 0x8e, 0x30 },
576 /* ----------------------------------------------------------- */
578 static struct dvb_pll_desc *pll_list[] = {
579 [DVB_PLL_UNDEFINED] = NULL,
580 [DVB_PLL_THOMSON_DTT7579] = &dvb_pll_thomson_dtt7579,
581 [DVB_PLL_THOMSON_DTT759X] = &dvb_pll_thomson_dtt759x,
582 [DVB_PLL_THOMSON_DTT7610] = &dvb_pll_thomson_dtt7610,
583 [DVB_PLL_LG_Z201] = &dvb_pll_lg_z201,
584 [DVB_PLL_MICROTUNE_4042] = &dvb_pll_microtune_4042,
585 [DVB_PLL_THOMSON_DTT761X] = &dvb_pll_thomson_dtt761x,
586 [DVB_PLL_UNKNOWN_1] = &dvb_pll_unknown_1,
587 [DVB_PLL_TUA6010XS] = &dvb_pll_tua6010xs,
588 [DVB_PLL_ENV57H1XD5] = &dvb_pll_env57h1xd5,
589 [DVB_PLL_TUA6034] = &dvb_pll_tua6034,
590 [DVB_PLL_LG_TDVS_H06XF] = &dvb_pll_lg_tdvs_h06xf,
591 [DVB_PLL_TDA665X] = &dvb_pll_tda665x,
592 [DVB_PLL_FMD1216ME] = &dvb_pll_fmd1216me,
593 [DVB_PLL_TDED4] = &dvb_pll_tded4,
594 [DVB_PLL_TUV1236D] = &dvb_pll_tuv1236d,
595 [DVB_PLL_TDHU2] = &dvb_pll_tdhu2,
596 [DVB_PLL_SAMSUNG_TBMV] = &dvb_pll_samsung_tbmv,
597 [DVB_PLL_PHILIPS_SD1878_TDA8261] = &dvb_pll_philips_sd1878_tda8261,
598 [DVB_PLL_PHILIPS_TD1316] = &dvb_pll_philips_td1316,
599 [DVB_PLL_THOMSON_FE6600] = &dvb_pll_thomson_fe6600,
600 [DVB_PLL_OPERA1] = &dvb_pll_opera1,
601 [DVB_PLL_FCV1236D] = &dvb_pll_fcv1236d,
604 /* ----------------------------------------------------------- */
607 static int dvb_pll_configure(struct dvb_frontend *fe, u8 *buf,
608 const struct dvb_frontend_parameters *params)
610 struct dvb_pll_priv *priv = fe->tuner_priv;
611 struct dvb_pll_desc *desc = priv->pll_desc;
615 if (params->frequency != 0 && (params->frequency < desc->min ||
616 params->frequency > desc->max))
619 for (i = 0; i < desc->count; i++) {
620 if (params->frequency > desc->entries[i].limit)
626 printk("pll: %s: freq=%d | i=%d/%d\n", desc->name,
627 params->frequency, i, desc->count);
628 if (i == desc->count)
631 div = (params->frequency + desc->iffreq +
632 desc->entries[i].stepsize/2) / desc->entries[i].stepsize;
635 buf[2] = desc->entries[i].config;
636 buf[3] = desc->entries[i].cb;
639 desc->set(fe, buf, params);
642 printk("pll: %s: div=%d | buf=0x%02x,0x%02x,0x%02x,0x%02x\n",
643 desc->name, div, buf[0], buf[1], buf[2], buf[3]);
645 // calculate the frequency we set it to
646 return (div * desc->entries[i].stepsize) - desc->iffreq;
649 static int dvb_pll_release(struct dvb_frontend *fe)
651 kfree(fe->tuner_priv);
652 fe->tuner_priv = NULL;
656 static int dvb_pll_sleep(struct dvb_frontend *fe)
658 struct dvb_pll_priv *priv = fe->tuner_priv;
660 if (priv->i2c == NULL)
663 if (priv->pll_desc->sleepdata) {
664 struct i2c_msg msg = { .flags = 0,
665 .addr = priv->pll_i2c_address,
666 .buf = priv->pll_desc->sleepdata + 1,
667 .len = priv->pll_desc->sleepdata[0] };
671 if (fe->ops.i2c_gate_ctrl)
672 fe->ops.i2c_gate_ctrl(fe, 1);
673 if ((result = i2c_transfer(priv->i2c, &msg, 1)) != 1) {
678 /* Shouldn't be called when initdata is NULL, maybe BUG()? */
682 static int dvb_pll_set_params(struct dvb_frontend *fe,
683 struct dvb_frontend_parameters *params)
685 struct dvb_pll_priv *priv = fe->tuner_priv;
688 { .addr = priv->pll_i2c_address, .flags = 0,
689 .buf = buf, .len = sizeof(buf) };
693 if (priv->i2c == NULL)
696 if ((result = dvb_pll_configure(fe, buf, params)) < 0)
701 if (fe->ops.i2c_gate_ctrl)
702 fe->ops.i2c_gate_ctrl(fe, 1);
703 if ((result = i2c_transfer(priv->i2c, &msg, 1)) != 1) {
707 priv->frequency = frequency;
708 priv->bandwidth = (fe->ops.info.type == FE_OFDM) ? params->u.ofdm.bandwidth : 0;
713 static int dvb_pll_calc_regs(struct dvb_frontend *fe,
714 struct dvb_frontend_parameters *params,
715 u8 *buf, int buf_len)
717 struct dvb_pll_priv *priv = fe->tuner_priv;
724 if ((result = dvb_pll_configure(fe, buf+1, params)) < 0)
729 buf[0] = priv->pll_i2c_address;
731 priv->frequency = frequency;
732 priv->bandwidth = (fe->ops.info.type == FE_OFDM) ? params->u.ofdm.bandwidth : 0;
737 static int dvb_pll_get_frequency(struct dvb_frontend *fe, u32 *frequency)
739 struct dvb_pll_priv *priv = fe->tuner_priv;
740 *frequency = priv->frequency;
744 static int dvb_pll_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
746 struct dvb_pll_priv *priv = fe->tuner_priv;
747 *bandwidth = priv->bandwidth;
751 static int dvb_pll_init(struct dvb_frontend *fe)
753 struct dvb_pll_priv *priv = fe->tuner_priv;
755 if (priv->i2c == NULL)
758 if (priv->pll_desc->initdata) {
759 struct i2c_msg msg = { .flags = 0,
760 .addr = priv->pll_i2c_address,
761 .buf = priv->pll_desc->initdata + 1,
762 .len = priv->pll_desc->initdata[0] };
765 if (fe->ops.i2c_gate_ctrl)
766 fe->ops.i2c_gate_ctrl(fe, 1);
767 if ((result = i2c_transfer(priv->i2c, &msg, 1)) != 1) {
772 /* Shouldn't be called when initdata is NULL, maybe BUG()? */
776 static struct dvb_tuner_ops dvb_pll_tuner_ops = {
777 .release = dvb_pll_release,
778 .sleep = dvb_pll_sleep,
779 .init = dvb_pll_init,
780 .set_params = dvb_pll_set_params,
781 .calc_regs = dvb_pll_calc_regs,
782 .get_frequency = dvb_pll_get_frequency,
783 .get_bandwidth = dvb_pll_get_bandwidth,
786 struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe, int pll_addr,
787 struct i2c_adapter *i2c,
788 unsigned int pll_desc_id)
791 struct i2c_msg msg = { .addr = pll_addr, .flags = I2C_M_RD,
792 .buf = b1, .len = 1 };
793 struct dvb_pll_priv *priv = NULL;
795 struct dvb_pll_desc *desc;
797 BUG_ON(pll_desc_id < 1 || pll_desc_id >= ARRAY_SIZE(pll_list));
799 desc = pll_list[pll_desc_id];
802 if (fe->ops.i2c_gate_ctrl)
803 fe->ops.i2c_gate_ctrl(fe, 1);
805 ret = i2c_transfer (i2c, &msg, 1);
808 if (fe->ops.i2c_gate_ctrl)
809 fe->ops.i2c_gate_ctrl(fe, 0);
812 priv = kzalloc(sizeof(struct dvb_pll_priv), GFP_KERNEL);
816 priv->pll_i2c_address = pll_addr;
818 priv->pll_desc = desc;
819 priv->nr = dvb_pll_devcount++;
821 memcpy(&fe->ops.tuner_ops, &dvb_pll_tuner_ops,
822 sizeof(struct dvb_tuner_ops));
824 strncpy(fe->ops.tuner_ops.info.name, desc->name,
825 sizeof(fe->ops.tuner_ops.info.name));
826 fe->ops.tuner_ops.info.frequency_min = desc->min;
827 fe->ops.tuner_ops.info.frequency_max = desc->max;
829 fe->ops.tuner_ops.init = NULL;
830 if (!desc->sleepdata)
831 fe->ops.tuner_ops.sleep = NULL;
833 fe->tuner_priv = priv;
836 printk("dvb-pll[%d]", priv->nr);
838 printk(" %d-%04x", i2c_adapter_id(i2c), pll_addr);
839 printk(": id# %d (%s) attached\n", pll_desc_id, desc->name);
844 EXPORT_SYMBOL(dvb_pll_attach);
846 MODULE_DESCRIPTION("dvb pll library");
847 MODULE_AUTHOR("Gerd Knorr");
848 MODULE_LICENSE("GPL");