Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 141841 | Differences between
and this patch

Collapse All | Expand All

(-)drivers/lirc_i2c/lirc_i2c.c.orig (-3 / +13 lines)
Lines 423-434 Link Here
423
		break;
423
		break;
424
	case 0x18:
424
	case 0x18:
425
	case 0x1a:
425
	case 0x1a:
426
		if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848)) {
426
#ifdef I2C_HW_B_CX2341X
427
		if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848) ||
428
			adap->id == (I2C_ALGO_BIT | I2C_HW_B_CX2341X))
429
#else
430
		if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848))
431
#endif
432
		{
427
			strcpy(ir->c.name,"Hauppauge IR");
433
			strcpy(ir->c.name,"Hauppauge IR");
428
			ir->l.code_length = 13;
434
			ir->l.code_length = 13;
429
			ir->l.add_to_buf=add_to_buf_haup;
435
			ir->l.add_to_buf=add_to_buf_haup;
430
		}
436
		}
431
		else {
437
		else /* I2C_HW_B_CX2388x */
432
			strcpy(ir->c.name,"Leadtek IR");
438
			strcpy(ir->c.name,"Leadtek IR");
433
			ir->l.code_length = 8;
439
			ir->l.code_length = 8;
434
			ir->l.add_to_buf=add_to_buf_pvr2000;
440
			ir->l.add_to_buf=add_to_buf_pvr2000;
Lines 501-507 Link Here
501
		-1};
507
		-1};
502
	struct i2c_client c; char buf; int i,rc;
508
	struct i2c_client c; char buf; int i,rc;
503
509
504
	if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848)) {
510
#ifdef I2C_HW_B_CX2341X
511
	if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848) ||
512
		adap->id == (I2C_ALGO_BIT | I2C_HW_B_CX2341X))
513
#endif
514
	{
505
		memset(&c,0,sizeof(c));
515
		memset(&c,0,sizeof(c));
506
		c.adapter = adap;
516
		c.adapter = adap;
507
		for (i = 0; -1 != probe[i]; i++) {
517
		for (i = 0; -1 != probe[i]; i++) {

Return to bug 141841