diff options
author | Oliver Endriss <o.endriss@gmx.de> | 2007-02-25 21:08:49 +0100 |
---|---|---|
committer | Oliver Endriss <o.endriss@gmx.de> | 2007-02-25 21:08:49 +0100 |
commit | dac3292969c661a4913193fc1b8f5044b63b68d1 (patch) | |
tree | cc3778714cda58da417c66be865cff85809e1b99 | |
parent | 3d7e91caf95b8dc7e0d6a19cfa533a077624d164 (diff) | |
download | mediapointer-dvb-s2-dac3292969c661a4913193fc1b8f5044b63b68d1.tar.gz mediapointer-dvb-s2-dac3292969c661a4913193fc1b8f5044b63b68d1.tar.bz2 |
dvb-ttpci: Support for MSC_RAW and MSC_SCAN remote control events
From: Oliver Endriss <o.endriss@gmx.de>
Support for MSC_RAW and MSC_SCAN remote control events.
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_ir.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_ir.c b/linux/drivers/media/dvb/ttpci/av7110_ir.c index 568dbabba..9d7610f8f 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_ir.c +++ b/linux/drivers/media/dvb/ttpci/av7110_ir.c @@ -138,6 +138,9 @@ static void av7110_emit_key(unsigned long parm) return; } + input_event(ir->input_dev, EV_MSC, MSC_RAW, (addr << 16) | data); + input_event(ir->input_dev, EV_MSC, MSC_SCAN, data); + keycode = ir->key_map[data]; dprintk(16, "%s: code %08x -> addr %i data 0x%02x -> keycode %i\n", @@ -186,6 +189,10 @@ static void input_register_keys(struct infrared *ir) set_bit(EV_KEY, ir->input_dev->evbit); set_bit(EV_REP, ir->input_dev->evbit); + set_bit(EV_MSC, ir->input_dev->evbit); + + set_bit(MSC_RAW, ir->input_dev->mscbit); + set_bit(MSC_SCAN, ir->input_dev->mscbit); memset(ir->input_dev->keybit, 0, sizeof(ir->input_dev->keybit)); |