diff options
author | Ricardo Cerqueira <devnull@localhost> | 2006-01-17 16:43:41 +0000 |
---|---|---|
committer | Ricardo Cerqueira <devnull@localhost> | 2006-01-17 16:43:41 +0000 |
commit | af22d7018442eb8de3392666a26483e76507dee8 (patch) | |
tree | 7fadabe34884bbdef551815739e111157a8778ad /linux/drivers | |
parent | ac410b7e847fdd1dbd7426eadca5b3ad177c7876 (diff) | |
download | mediapointer-dvb-s2-af22d7018442eb8de3392666a26483e76507dee8.tar.gz mediapointer-dvb-s2-af22d7018442eb8de3392666a26483e76507dee8.tar.bz2 |
Hauppauge Grey Remote support
From: J.O. Aho <trizt@iname.com>
For the Hauppauge PVR cards there are at least two different remotes, one
completly black and one that is Grey and black, they keys differ in values
eg Black remotes 'mute' has the same value as Grey remotes 'menu'.
This enables the user to select which keymapping to use by using the
hauppauge parm. Unlike to the black remote keys, all keys are
mapped for the grey remote and the ATi usb remote mappings has been
followed.
Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/ir-kbd-i2c.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/linux/drivers/media/video/ir-kbd-i2c.c b/linux/drivers/media/video/ir-kbd-i2c.c index 8486a0f99..92d3c192d 100644 --- a/linux/drivers/media/video/ir-kbd-i2c.c +++ b/linux/drivers/media/video/ir-kbd-i2c.c @@ -1,5 +1,5 @@ /* - * $Id: ir-kbd-i2c.c,v 1.33 2006/01/17 16:18:41 rmcc Exp $ + * $Id: ir-kbd-i2c.c,v 1.34 2006/01/17 16:43:41 rmcc Exp $ * * keyboard input driver for i2c IR remote controls * @@ -53,6 +53,11 @@ 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) @@ -308,7 +313,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"; |