Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21568
b: refs/heads/master
c: bf47e4e
h: refs/heads/master
v: v3
  • Loading branch information
J.O. Aho authored and Mauro Carvalho Chehab committed Jan 23, 2006
1 parent 9f44747 commit 86dc408
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f74a6b395a6dea5028a1604e721dfb2b5c18fc86
refs/heads/master: bf47e4e43e4dcf88fef61b1b4139ce2da20e1f73
11 changes: 10 additions & 1 deletion trunk/drivers/media/video/ir-kbd-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ static IR_KEYTAB_TYPE ir_codes_pv951[IR_KEYTAB_SIZE] = {
static int debug;
module_param(debug, int, 0644); /* debug level (0,1,2) */

static int hauppauge = 0;
module_param(hauppauge, int, 0644); /* Choose Hauppauge remote */
MODULE_PARM_DESC(hauppauge, "Specify Hauppauge remote: 0=black, 1=grey (defaults to 0)");


#define DEVNAME "ir-kbd-i2c"
#define dprintk(level, fmt, arg...) if (debug >= level) \
printk(KERN_DEBUG DEVNAME ": " fmt , ## arg)
Expand Down Expand Up @@ -336,7 +341,11 @@ static int ir_attach(struct i2c_adapter *adap, int addr,
name = "Hauppauge";
ir->get_key = get_key_haup;
ir_type = IR_TYPE_RC5;
ir_codes = ir_codes_rc5_tv;
if (hauppauge == 1) {
ir_codes = ir_codes_rc5_tv_grey;
} else {
ir_codes = ir_codes_rc5_tv;
}
break;
case 0x30:
name = "KNC One";
Expand Down

0 comments on commit 86dc408

Please sign in to comment.