tuner-xc2028.c 16.1 KB
Newer Older
1 2 3
/* tuner-xc2028
 *
 * Copyright (c) 2007 Mauro Carvalho Chehab (mchehab@infradead.org)
4 5
 * Copyright (c) 2007 Michel Ludwig (michel.ludwig@gmail.com)
 *       - frontend interface
6 7 8 9 10 11 12 13
 * This code is placed under the terms of the GNU General Public License v2
 */

#include <linux/i2c.h>
#include <asm/div64.h>
#include <linux/firmware.h>
#include <linux/videodev.h>
#include <linux/delay.h>
14
#include <media/tuner.h>
15
#include <linux/mutex.h>
16
#include "tuner-i2c.h"
17
#include "tuner-xc2028.h"
18
#include "tuner-xc2028-types.h"
19

20 21 22
#include <linux/dvb/frontend.h>
#include "dvb_frontend.h"

23 24 25
#define PREFIX "xc2028 "

static LIST_HEAD(xc2028_list);
26 27 28 29 30 31 32
/* struct for storing firmware table */
struct firmware_description {
	unsigned int  type;
	v4l2_std_id   id;
	unsigned char *ptr;
	unsigned int  size;
};
33 34

struct xc2028_data {
35 36 37 38 39 40 41
	struct list_head        xc2028_list;
	struct tuner_i2c_props  i2c_props;
	int                     (*tuner_callback) (void *dev,
						   int command, int arg);
	struct device           *dev;
	void			*video_dev;
	int			count;
42 43 44 45 46 47 48 49
	__u32			frequency;

	struct firmware_description *firm;
	int			firm_size;

	__u16			version;

	struct xc2028_ctrl	ctrl;
50

51 52 53 54 55 56
	v4l2_std_id		firm_type;	   /* video stds supported
							by current firmware */
	fe_bandwidth_t		bandwidth;	   /* Firmware bandwidth:
							      6M, 7M or 8M */
	int			need_load_generic; /* The generic firmware
							      were loaded? */
57 58 59

	int			max_len;	/* Max firmware chunk */

60 61
	enum tuner_mode	mode;
	struct i2c_client	*i2c_client;
62 63

	struct mutex lock;
64 65
};

66 67 68
#define i2c_send(rc, priv, buf, size)					\
if (size != (rc = tuner_i2c_xfer_send(&priv->i2c_props, buf, size)))	\
	tuner_info("i2c output error: rc = %d (should be %d)\n",	\
69 70
	rc, (int)size);

71 72 73
#define i2c_rcv(rc, priv, buf, size)					\
if (size != (rc = tuner_i2c_xfer_recv(&priv->i2c_props, buf, size)))	\
	tuner_info("i2c input error: rc = %d (should be %d)\n",		\
74 75
	rc, (int)size);

76
#define send_seq(priv, data...)						\
77
{	int rc;								\
78
	static u8 _val[] = data;					\
79
	if (sizeof(_val) !=						\
80 81 82 83
			(rc = tuner_i2c_xfer_send (&priv->i2c_props,	\
						_val, sizeof(_val)))) {	\
		tuner_info("Error on line %d: %d\n",__LINE__,rc);	\
		return -EINVAL;							\
84 85 86 87
	}								\
	msleep (10);							\
}

88
static int xc2028_get_reg(struct xc2028_data *priv, u16 reg)
89 90 91
{
	int rc;
	unsigned char buf[1];
92 93

	tuner_info("%s called\n", __FUNCTION__);
94 95 96

	buf[0]= reg;

97
	i2c_send(rc, priv, buf, sizeof(buf));
98 99 100
	if (rc<0)
		return rc;

101
	i2c_rcv(rc, priv, buf, 2);
102 103 104 105 106 107
	if (rc<0)
		return rc;

	return (buf[1])|(buf[0]<<8);
}

108
static void free_firmware (struct xc2028_data *priv)
109
{
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
	int i;

	if (!priv->firm)
		return;

	for (i=0;i<priv->firm_size;i++) {
		if (priv->firm[i].ptr)
			kfree(priv->firm[i].ptr);
	}
	kfree(priv->firm);

	priv->firm=NULL;
	priv->need_load_generic = 1;
}

static int load_all_firmwares (struct dvb_frontend *fe)
{
	struct xc2028_data    *priv = fe->tuner_priv;
128 129
	const struct firmware *fw=NULL;
	unsigned char         *p, *endp;
130 131
	int                   rc=0, n, n_array;
	char		      name[33];
132

133 134
	tuner_info("%s called\n", __FUNCTION__);

135 136
	tuner_info("Loading firmware %s\n", priv->ctrl.fname);
	rc = request_firmware(&fw, priv->ctrl.fname, priv->dev);
137
	if (rc < 0) {
138
		if (rc==-ENOENT)
139 140
			tuner_info("Error: firmware %s not found.\n",
				   priv->ctrl.fname);
141
		else
142 143
			tuner_info("Error %d while requesting firmware %s \n",
				   rc, priv->ctrl.fname);
144

145 146 147 148 149
		return rc;
	}
	p=fw->data;
	endp=p+fw->size;

150
	if(fw->size<sizeof(name)-1+2) {
151 152
		tuner_info("Error: firmware size is zero!\n");
		rc=-EINVAL;
153
		goto done;
154
	}
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179

	memcpy(name,p,sizeof(name)-1);
	name[sizeof(name)-1]=0;
	p+=sizeof(name)-1;

	priv->version = le16_to_cpu(*(__u16 *)p);
	p += 2;

	tuner_info("firmware: %s, ver %d.%d\n", name,
					priv->version>>8, priv->version&0xff);

	if (p+2>endp)
		goto corrupt;

	n_array = le16_to_cpu(*(__u16 *)p);
	p += 2;

	tuner_info("there are %d firmwares at %s\n", n_array, priv->ctrl.fname);

	priv->firm=kzalloc(sizeof(*priv->firm)*n_array,GFP_KERNEL);

	if (!fw) {
		tuner_info("Not enough memory for loading firmware.\n");
		rc=-ENOMEM;
		goto done;
180 181
	}

182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
	priv->firm_size = n_array;
	n=-1;
	while (p<endp) {
		__u32 type, size;
		v4l2_std_id id;

		n++;
		if (n >= n_array) {
			tuner_info("Too much firmwares at the file\n");
			goto corrupt;
		}

		/* Checks if there's enough bytes to read */
		if (p+sizeof(type)+sizeof(id)+sizeof(size)>endp) {
			tuner_info("Lost firmware!\n");
			goto corrupt;
		}

		type = le32_to_cpu(*(__u32 *)p);
		p += sizeof(type);

		id = le64_to_cpu(*(v4l2_std_id *)p);
		p += sizeof(id);

		size = le32_to_cpu(*(v4l2_std_id *)p);
		p += sizeof(size);

		if ((!size)||(size+p>endp)) {
			tuner_info("Firmware type %x, id %lx corrupt\n",
				   type, (unsigned long) id);
			goto corrupt;
		}

		priv->firm[n].ptr=kzalloc(size,GFP_KERNEL);
		if (!priv->firm[n].ptr) {
			tuner_info("Not enough memory.\n");
			rc=-ENOMEM;
			goto err;
		}
		tuner_info("Loading firmware type %x, id %lx, size=%d.\n",
				   type, (unsigned long) id, size);

		memcpy(priv->firm[n].ptr, p, size);
		priv->firm[n].type = type;
		priv->firm[n].id   = id;
		priv->firm[n].size = size;

		p += size;
	}

	if (n+1 != priv->firm_size) {
		tuner_info("Firmware file is incomplete!\n");
		goto corrupt;
	}

	goto done;

corrupt:
	rc=-EINVAL;
	tuner_info("Error: firmware file is corrupted!\n");

err:
	tuner_info("Releasing loaded firmware file.\n");

	free_firmware(priv);

done:
	release_firmware(fw);
	tuner_info("Firmware files loaded.\n");

	return rc;
}

static int load_firmware (struct dvb_frontend *fe, unsigned int type,
			  v4l2_std_id *id)
{
	struct xc2028_data *priv = fe->tuner_priv;
	int i, rc;
	unsigned char *p, *endp, buf[priv->max_len];

	tuner_info("%s called\n", __FUNCTION__);

	if (!priv->firm) {
		printk (KERN_ERR PREFIX "Error! firmware not loaded\n");
		return -EINVAL;
	}

	if ((type == 0) && (*id == 0))
		*id=V4L2_STD_PAL;

	/* Seek for exact match */
	for (i=0;i<priv->firm_size;i++) {
		if ( (type == priv->firm[i].type) &&
						(*id == priv->firm[i].id))
			goto found;
	}

	/* Seek for generic video standard match */
	for (i=0;i<priv->firm_size;i++) {
		if ( (type == priv->firm[i].type) && (*id & priv->firm[i].id))
			goto found;
	}

	/*FIXME: Would make sense to seek for type "hint" match ? */

	tuner_info ("Can't find firmware for type=%x, id=%lx\n", type,
		    (long int)*id);
	return -EINVAL;

found:
	*id = priv->firm[i].id;
	tuner_info ("Found firmware for type=%x, id=%lx\n", type,
		    (long int)*id);

	p = priv->firm[i].ptr;

	if (!p) {
		printk(KERN_ERR PREFIX "Firmware pointer were freed!");
		return -EINVAL;
301
	}
302
	endp = p+priv->firm[i].size;
303

304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320
	while (p<endp) {
		__u16 size;

		/* Checks if there's enough bytes to read */
		if (p+sizeof(size)>endp) {
			tuner_info("missing bytes\n");
			return -EINVAL;
		}


		size = le16_to_cpu(*(__u16 *)p);
		p += sizeof(size);

		if (size == 0xffff)
			return 0;

		if (!size) {
321
			/* Special callback command received */
322
			rc = priv->tuner_callback(priv->video_dev,
323
					     XC2028_TUNER_RESET, 0);
324 325 326
			if (rc<0) {
				tuner_info("Error at RESET code %d\n",
								(*p)&0x7f);
327
				return -EINVAL;
328 329 330
			}
			continue;
		}
331 332 333 334 335

		/* Checks for a sleep command */
		if (size & 0x8000) {
			msleep (size & 0x7fff);
			continue;
336 337
		}

338 339 340 341 342
		if ((size + p > endp)) {
			tuner_info("missing bytes: need %d, have %d\n",
					size, (int)(endp-p));
			return -EINVAL;
		}
343

344
		buf[0] = *p;
345
		p++;
346
		size--;
347

348 349 350
		/* Sends message chunks */
		while (size>0) {
			int len = (size<priv->max_len-1)?size:priv->max_len-1;
351

352
			memcpy(buf+1, p, len);
353

354 355 356 357 358 359 360 361 362 363 364
			i2c_send(rc, priv, buf, len+1);
			if (rc<0) {
				tuner_info("%d returned from send\n",rc);
				return -EINVAL;
			}

			p += len;
			size -= len;
		}
	}
	return -EINVAL;
365 366
}

367 368
static int check_firmware(struct dvb_frontend *fe, enum tuner_mode new_mode,
						v4l2_std_id std,
369
						fe_bandwidth_t bandwidth)
370
{
371
	struct xc2028_data      *priv = fe->tuner_priv;
372
	int			rc, version;
373 374 375
	v4l2_std_id		std0=0;
	unsigned int		type0=0,type=0;
	int			change_digital_bandwidth;
376

377
	tuner_info("%s called\n", __FUNCTION__);
378

379 380 381 382 383 384 385 386 387
	if (!priv->firm) {
		if (!priv->ctrl.fname)
			return -EINVAL;

		rc=load_all_firmwares(fe);
		if (rc<0)
			return rc;
	}

388 389
	tuner_info( "I am in mode %u and I should switch to mode %i\n",
						    priv->mode, new_mode);
390 391

	/* first of all, determine whether we have switched the mode */
392 393 394
	if(new_mode != priv->mode) {
		priv->mode = new_mode;
		priv->need_load_generic = 1;
395 396
	}

397 398 399
	change_digital_bandwidth = (priv->mode == T_DIGITAL_TV
				 && bandwidth != priv->bandwidth) ? 1 : 0;
	tuner_info("old bandwidth %u, new bandwidth %u\n", priv->bandwidth,
400
		    bandwidth);
401

402
	if (priv->need_load_generic) {
403
		/* Reset is needed before loading firmware */
404 405
		rc = priv->tuner_callback(priv->video_dev,
					  XC2028_TUNER_RESET, 0);
406 407 408
		if (rc<0)
			return rc;

409 410 411 412 413 414 415 416 417 418 419 420 421 422
		type0=BASE;

		if (priv->ctrl.type == XC2028_FIRM_MTS)
			type0 |= MTS;

		if (priv->bandwidth==8)
			type0 |= F8MHZ;

		/* FIXME: How to load FM and FM|INPUT1 firmwares? */

		rc = load_firmware(fe, type0, &std0);
		if (rc<0) {
			tuner_info("Error %d while loading generic firmware\n",
				   rc);
423
			return rc;
424
		}
425

426 427 428
		priv->need_load_generic=0;
		priv->firm_type=0;
		if(priv->mode == T_DIGITAL_TV) {
429 430 431 432
			change_digital_bandwidth=1;
		}
	}

433
	tuner_info("I should change bandwidth %u\n",
434 435 436
						   change_digital_bandwidth);

	if (change_digital_bandwidth) {
437 438 439 440 441 442

		/*FIXME: Should allow selecting between D2620 and D2633 */
		type |= D2620;

		/* FIXME: When should select a DTV78 firmware?
		 */
443
		switch(bandwidth) {
444 445
		case BANDWIDTH_8_MHZ:
			type |= DTV8;
446
			break;
447 448
		case BANDWIDTH_7_MHZ:
			type |= DTV7;
449
			break;
450 451 452
		case BANDWIDTH_6_MHZ:
			/* FIXME: Should allow select also ATSC */
			type |= DTV6_QAM;
453 454
			break;

455 456
		default:
			tuner_info("error: bandwidth not supported.\n");
457
		};
458
		priv->bandwidth = bandwidth;
459 460
	}

461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476
	/* Load INIT1, if needed */
	tuner_info("Trying to load init1 firmware\n");
	type0 = BASE | INIT1 | priv->ctrl.type;
	if (priv->ctrl.type == XC2028_FIRM_MTS)
		type0 |= MTS;

	/* FIXME: Should handle errors - if INIT1 found */
	rc = load_firmware(fe, type0, &std0);

	/* FIXME: Should add support for FM radio
	 */

	if (priv->ctrl.type == XC2028_FIRM_MTS)
		type |= MTS;

	tuner_info("firmware standard to load: %08lx\n",(unsigned long) std);
477
	if (priv->firm_type & std) {
478
		tuner_info("no need to load a std-specific firmware.\n");
479
		return 0;
480
	}
481

482
	rc = load_firmware(fe, type, &std);
483 484 485
	if (rc<0)
		return rc;

486
	version = xc2028_get_reg(priv, 0x4);
487 488 489
	tuner_info("Firmware version is %d.%d\n",
					(version>>4)&0x0f,(version)&0x0f);

490
	priv->firm_type=std;
491 492 493 494

	return 0;
}

495
static int xc2028_signal(struct dvb_frontend *fe, u16 *strength)
496
{
497
	struct xc2028_data *priv = fe->tuner_priv;
498 499
	int                frq_lock, signal=0;

500
	tuner_info("%s called\n", __FUNCTION__);
501

502
	mutex_lock(&priv->lock);
503

504 505 506
	*strength = 0;

	frq_lock = xc2028_get_reg(priv, 0x2);
507 508
	if (frq_lock<=0)
		goto ret;
509 510 511

	/* Frequency is locked. Return signal quality */

512
	signal = xc2028_get_reg(priv, 0x40);
513

514 515 516 517 518
	if(signal<=0) {
		signal=frq_lock;
	}

ret:
519 520 521
	mutex_unlock(&priv->lock);

	*strength = signal;
522

523
	return 0;
524 525 526 527
}

#define DIV 15625

528 529 530 531
static int generic_set_tv_freq(struct dvb_frontend *fe, u32 freq /* in Hz */,
				enum tuner_mode new_mode,
				v4l2_std_id std,
				fe_bandwidth_t bandwidth)
532
{
533 534
	struct xc2028_data *priv = fe->tuner_priv;
	int           rc=-EINVAL;
535
	unsigned char buf[5];
536
	u32 div, offset = 0;
537

538 539
	tuner_info("%s called\n", __FUNCTION__);

540 541
	mutex_lock(&priv->lock);

542 543
	/* HACK: It seems that specific firmware need to be reloaded
	   when freq is changed */
544

545
	priv->firm_type=0;
546

547
	/* Reset GPIO 1 */
548 549 550 551
	rc = priv->tuner_callback(priv->video_dev, XC2028_TUNER_RESET, 0);
	if (rc<0)
		goto ret;

552
	msleep(10);
553
	tuner_info("should set frequency %d kHz)\n", freq / 1000);
554

555
	if (check_firmware(fe, new_mode, std, bandwidth)<0)
556
		goto ret;
557

558 559
	if(new_mode == T_DIGITAL_TV)
		offset = 2750000;
560

561
	div = (freq - offset + DIV/2)/DIV;
562

563
	/* CMD= Set frequency */
564 565 566 567 568 569 570

	if (priv->version<0x0202) {
		send_seq(priv, {0x00, 0x02, 0x00, 0x00});
	} else {
		send_seq(priv, {0x80, 0x02, 0x00, 0x00});
	}

571 572 573
	rc = priv->tuner_callback(priv->video_dev, XC2028_RESET_CLK, 1);
	if (rc<0)
		goto ret;
574 575

	msleep(10);
576

577 578 579 580 581 582
	buf[0]= 0xff & (div>>24);
	buf[1]= 0xff & (div>>16);
	buf[2]= 0xff & (div>>8);
	buf[3]= 0xff & (div);
	buf[4]= 0;

583
	i2c_send(rc, priv, buf, sizeof(buf));
584
	if (rc<0)
585
		goto ret;
586 587
	msleep(100);

588 589
	priv->frequency=freq;

590 591
	printk("divider= %02x %02x %02x %02x (freq=%d.%02d)\n",
		 buf[1],buf[2],buf[3],buf[4],
592
		 freq / 1000000, (freq%1000000)/10000);
593

594
	rc=0;
595

596 597
ret:
	mutex_unlock(&priv->lock);
598

599
	return rc;
600 601
}

602 603
static int xc2028_set_tv_freq(struct dvb_frontend *fe,
			struct analog_parameters *p)
604
{
605
	struct xc2028_data *priv = fe->tuner_priv;
606

607
	tuner_info("%s called\n", __FUNCTION__);
608

609 610 611 612
	return generic_set_tv_freq(fe, 62500l*p->frequency, T_ANALOG_TV,
					      p->std,
					      BANDWIDTH_8_MHZ /* NOT USED */);
}
613

614 615
static int xc2028_set_params(struct dvb_frontend *fe,
			     struct dvb_frontend_parameters *p)
616
{
617
	struct xc2028_data *priv = fe->tuner_priv;
618

619
	tuner_info("%s called\n", __FUNCTION__);
620

621 622 623 624
	/* FIXME: Only OFDM implemented */
	if (fe->ops.info.type != FE_OFDM) {
		tuner_info ("DTV type not implemented.\n");
		return -EINVAL;
625 626
	}

627 628 629
	return generic_set_tv_freq(fe, p->frequency, T_DIGITAL_TV,
						0, /* NOT USED */
						p->u.ofdm.bandwidth);
630 631

}
632

633
static int xc2028_dvb_release(struct dvb_frontend *fe)
634
{
635 636 637
	struct xc2028_data *priv = fe->tuner_priv;

	tuner_info("%s called\n", __FUNCTION__);
638

639
	priv->count--;
640

641
	if (!priv->count) {
642 643
		list_del(&priv->xc2028_list);

644 645 646 647
		if (priv->ctrl.fname)
			kfree(priv->ctrl.fname);

		free_firmware(priv);
648
		kfree (priv);
649
	}
650 651 652 653

	return 0;
}

654
static int xc2028_get_frequency(struct dvb_frontend *fe, u32 *frequency)
655
{
656
	struct xc2028_data *priv = fe->tuner_priv;
657

658
	tuner_info("%s called\n", __FUNCTION__);
659

660
	*frequency = priv->frequency;
661 662 663 664

	return 0;
}

665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690
static int xc2028_set_config (struct dvb_frontend *fe, void *priv_cfg)
{
	struct xc2028_data *priv = fe->tuner_priv;
	struct xc2028_ctrl *p    = priv_cfg;

	tuner_info("%s called\n", __FUNCTION__);

	priv->ctrl.type = p->type;

	if (p->fname) {
		if (priv->ctrl.fname)
			kfree(priv->ctrl.fname);

		priv->ctrl.fname = kmalloc(strlen(p->fname)+1, GFP_KERNEL);
		if (!priv->ctrl.fname)
			return -ENOMEM;

		free_firmware(priv);
		strcpy(priv->ctrl.fname, p->fname);
	}

	tuner_info("%s OK\n", __FUNCTION__);

	return 0;
}

691
static const struct dvb_tuner_ops xc2028_dvb_tuner_ops = {
692 693 694 695 696 697 698
	.info = {
			.name           = "Xceive XC3028",
			.frequency_min  =  42000000,
			.frequency_max  = 864000000,
			.frequency_step =     50000,
		},

699
	.set_config	   = xc2028_set_config,
700 701 702 703 704
	.set_analog_params = xc2028_set_tv_freq,
	.release           = xc2028_dvb_release,
	.get_frequency     = xc2028_get_frequency,
	.get_rf_strength   = xc2028_signal,
	.set_params        = xc2028_set_params,
705 706 707 708 709 710

// 	int (*sleep)(struct dvb_frontend *fe);
// 	int (*get_bandwidth)(struct dvb_frontend *fe, u32 *bandwidth);
// 	int (*get_status)(struct dvb_frontend *fe, u32 *status);
};

711 712 713
int xc2028_attach(struct dvb_frontend *fe, struct i2c_adapter* i2c_adap,
		  u8 i2c_addr, struct device *dev, void *video_dev,
		  int (*tuner_callback) (void *dev, int command,int arg))
714
{
715
	struct xc2028_data *priv;
716

717
	printk( KERN_INFO PREFIX "Xcv2028/3028 init called!\n");
718

719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739
	if (NULL == dev)
		return -ENODEV;

	if (NULL == video_dev)
		return -ENODEV;

	if (!tuner_callback) {
		printk( KERN_ERR PREFIX "No tuner callback!\n");
		return -EINVAL;
	}

	list_for_each_entry(priv, &xc2028_list, xc2028_list) {
		if (priv->dev == dev) {
			dev = NULL;
		}
	}

	if (dev) {
		priv = kzalloc(sizeof(*priv), GFP_KERNEL);
		if (priv == NULL)
			return -ENOMEM;
740

741
		fe->tuner_priv = priv;
742

743 744 745 746 747 748 749 750
		priv->bandwidth=BANDWIDTH_6_MHZ;
		priv->need_load_generic=1;
		priv->mode = T_UNINITIALIZED;
		priv->i2c_props.addr = i2c_addr;
		priv->i2c_props.adap = i2c_adap;
		priv->dev = dev;
		priv->video_dev = video_dev;
		priv->tuner_callback = tuner_callback;
751 752
		priv->max_len = 13;

753 754 755 756 757

		mutex_init(&priv->lock);

		list_add_tail(&priv->xc2028_list,&xc2028_list);
	}
758
	priv->count++;
759 760 761 762 763 764 765 766

	memcpy(&fe->ops.tuner_ops, &xc2028_dvb_tuner_ops,
					       sizeof(xc2028_dvb_tuner_ops));

	tuner_info("type set to %s\n", "XCeive xc2028/xc3028 tuner");

	return 0;
}
767

768 769
EXPORT_SYMBOL(xc2028_attach);

770 771 772
MODULE_DESCRIPTION("Xceive xc2028/xc3028 tuner driver");
MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@infradead.org>");
MODULE_LICENSE("GPL");