1
Description: Hauppauge TV Card is detected as Leadtek IR
2
Origin: upstream, http://lirc.cvs.sourceforge.net/viewvc/lirc/lirc/drivers/lirc_i2c/lirc_i2c.c?r1=1.71&r2=1.72
3
Bug-Ubuntu: https://launchpad.net/bugs/550369
5
--- a/drivers/lirc_i2c/lirc_i2c.c 2009/12/15 05:37:00 1.71
6
+++ b/drivers/lirc_i2c/lirc_i2c.c 2009/12/28 15:29:03 1.72
8
ir->l.add_to_buf = add_to_buf_pv951;
11
-#ifdef I2C_HW_B_CX2341X
12
- if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848) ||
13
- adap->id == (I2C_ALGO_BIT | I2C_HW_B_CX2341X)) {
15
- if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848)) {
19
+#ifdef I2C_HW_B_CX2388x
20
+ /* Leadtek Winfast PVR2000 or Hauppauge HVR-1300 */
21
+ if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_CX2388x))
22
+ strlcpy(ir->c.name, "Hauppauge HVR1300", I2C_NAME_SIZE);
27
* The PVR150 IR receiver uses the same protocol as
28
* other Hauppauge cards, but the data flow is
29
* different, so we need to deal with it by its own.
31
strlcpy(ir->c.name, "Hauppauge PVR150", I2C_NAME_SIZE);
32
- } else /* I2C_HW_B_CX2388x */
33
- strlcpy(ir->c.name, "Hauppauge HVR1300", I2C_NAME_SIZE);
35
ir->l.code_length = 13;
36
ir->l.add_to_buf = add_to_buf_haup_pvr150;
42
-#ifdef I2C_HW_B_CX2341X
43
- if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848) ||
44
- adap->id == (I2C_ALGO_BIT | I2C_HW_B_CX2341X)) {
45
+#ifdef I2C_HW_B_CX2388x
46
+ if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_CX2388x)) {
47
+ strlcpy(ir->c.name, "Leadtek IR", I2C_NAME_SIZE);
48
+ ir->l.code_length = 8;
49
+ ir->l.add_to_buf = add_to_buf_pvr2000;
52
- if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848)) {
55
strlcpy(ir->c.name, "Hauppauge IR", I2C_NAME_SIZE);
56
ir->l.code_length = 13;
57
ir->l.add_to_buf = add_to_buf_haup;
58
- } else { /* I2C_HW_B_CX2388x */
59
- strlcpy(ir->c.name, "Leadtek IR", I2C_NAME_SIZE);
60
- ir->l.code_length = 8;
61
- ir->l.add_to_buf = add_to_buf_pvr2000;