提交 ac52ea3c 编写于 作者: O Oliver Endriss 提交者: Mauro Carvalho Chehab

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: NOliver Endriss <o.endriss@gmx.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 1b5888ce
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册