aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci
diff options
context:
space:
mode:
authorOliver Endriss <o.endriss@gmx.de>2007-04-27 11:31:24 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-27 14:43:48 -0400
commitac52ea3c3c04403d10acf0253180ec6f51977142 (patch)
tree9f78522cad067fd4d30b7f1789e09bcbe1b28475 /drivers/media/dvb/ttpci
parent1b5888cea1d371239a130150222e63d476298d89 (diff)
V4L/DVB (5344): Dvb-ttpci: Support for MSC_RAW and MSC_SCAN RC events
Support for MSC_RAW and MSC_SCAN remote control events. Signed-off-by: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/ttpci')
-rw-r--r--drivers/media/dvb/ttpci/av7110_ir.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/dvb/ttpci/av7110_ir.c b/drivers/media/dvb/ttpci/av7110_ir.c
index 921ff199ed19..b7fd15959aad 100644
--- a/drivers/media/dvb/ttpci/av7110_ir.c
+++ b/drivers/media/dvb/ttpci/av7110_ir.c
@@ -138,6 +138,9 @@ static void av7110_emit_key(unsigned long parm)
138 return; 138 return;
139 } 139 }
140 140
141 input_event(ir->input_dev, EV_MSC, MSC_RAW, (addr << 16) | data);
142 input_event(ir->input_dev, EV_MSC, MSC_SCAN, data);
143
141 keycode = ir->key_map[data]; 144 keycode = ir->key_map[data];
142 145
143 dprintk(16, "%s: code %08x -> addr %i data 0x%02x -> keycode %i\n", 146 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)
186 189
187 set_bit(EV_KEY, ir->input_dev->evbit); 190 set_bit(EV_KEY, ir->input_dev->evbit);
188 set_bit(EV_REP, ir->input_dev->evbit); 191 set_bit(EV_REP, ir->input_dev->evbit);
192 set_bit(EV_MSC, ir->input_dev->evbit);
193
194 set_bit(MSC_RAW, ir->input_dev->mscbit);
195 set_bit(MSC_SCAN, ir->input_dev->mscbit);
189 196
190 memset(ir->input_dev->keybit, 0, sizeof(ir->input_dev->keybit)); 197 memset(ir->input_dev->keybit, 0, sizeof(ir->input_dev->keybit));
191 198