|
@@ -10,6 +10,8 @@
|
|
* Ulrich Mueller <ulrich.mueller42@web.de>
|
|
* Ulrich Mueller <ulrich.mueller42@web.de>
|
|
* modified for em2820 based USB TV tuners by
|
|
* modified for em2820 based USB TV tuners by
|
|
* Markus Rechberger <mrechberger@gmail.com>
|
|
* Markus Rechberger <mrechberger@gmail.com>
|
|
|
|
+ * modified for DViCO Fusion HDTV 5 RT GOLD by
|
|
|
|
+ * Chaogui Zhang <czhang1974@gmail.com>
|
|
*
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* it under the terms of the GNU General Public License as published by
|
|
@@ -141,6 +143,32 @@ static int get_key_pv951(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw)
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static int get_key_fusion_gold(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw)
|
|
|
|
+{
|
|
|
|
+ unsigned char buf[4];
|
|
|
|
+
|
|
|
|
+ /* poll IR chip */
|
|
|
|
+ if (4 != i2c_master_recv(&ir->c,buf,4)) {
|
|
|
|
+ dprintk(1,"read error\n");
|
|
|
|
+ return -EIO;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(buf[0] !=0 || buf[1] !=0 || buf[2] !=0 || buf[3] != 0)
|
|
|
|
+ dprintk(2, "ir fusion gold: 0x%2x 0x%2x 0x%2x 0x%2x\n",
|
|
|
|
+ buf[0], buf[1], buf[2], buf[3]);
|
|
|
|
+
|
|
|
|
+ /* no key pressed or signal from other ir remote */
|
|
|
|
+ if(buf[0] != 0x1 || buf[1] != 0xfe)
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
|
|
+ *ir_key = buf[2];
|
|
|
|
+ *ir_raw = (buf[2] << 8) | buf[3];
|
|
|
|
+
|
|
|
|
+ return 1;
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
static int get_key_knc1(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw)
|
|
static int get_key_knc1(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw)
|
|
{
|
|
{
|
|
unsigned char b;
|
|
unsigned char b;
|
|
@@ -363,6 +391,12 @@ static int ir_attach(struct i2c_adapter *adap, int addr,
|
|
ir_type = IR_TYPE_OTHER;
|
|
ir_type = IR_TYPE_OTHER;
|
|
ir_codes = ir_codes_empty;
|
|
ir_codes = ir_codes_empty;
|
|
break;
|
|
break;
|
|
|
|
+ case 0x6b:
|
|
|
|
+ name = "FusionGold";
|
|
|
|
+ ir->get_key = get_key_fusion_gold;
|
|
|
|
+ ir_type = IR_TYPE_RC5;
|
|
|
|
+ ir_codes = ir_codes_fusion_gold;
|
|
|
|
+ break;
|
|
case 0x7a:
|
|
case 0x7a:
|
|
case 0x47:
|
|
case 0x47:
|
|
case 0x71:
|
|
case 0x71:
|
|
@@ -474,7 +508,7 @@ static int ir_probe(struct i2c_adapter *adap)
|
|
static const int probe_bttv[] = { 0x1a, 0x18, 0x4b, 0x64, 0x30, -1};
|
|
static const int probe_bttv[] = { 0x1a, 0x18, 0x4b, 0x64, 0x30, -1};
|
|
static const int probe_saa7134[] = { 0x7a, 0x47, 0x71, -1 };
|
|
static const int probe_saa7134[] = { 0x7a, 0x47, 0x71, -1 };
|
|
static const int probe_em28XX[] = { 0x30, 0x47, -1 };
|
|
static const int probe_em28XX[] = { 0x30, 0x47, -1 };
|
|
- static const int probe_cx88[] = { 0x18, 0x71, -1 };
|
|
|
|
|
|
+ static const int probe_cx88[] = { 0x18, 0x6b, 0x71, -1 };
|
|
const int *probe = NULL;
|
|
const int *probe = NULL;
|
|
struct i2c_client c;
|
|
struct i2c_client c;
|
|
unsigned char buf;
|
|
unsigned char buf;
|