]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (7474): support key repeat with dib0700 ir receiver
authorPatrick Boettcher <pb@linuxtv.org>
Sun, 30 Mar 2008 00:37:01 +0000 (21:37 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:56 +0000 (14:07 -0300)
commit7380b1954e292a32b354f16b1ed7cbca1701a6fe
tree473c1ecb2fab26607bbd44b60e34e02a7493d104
parent0fac604104e3b6470e9fb6de73b1d84939aa866c
V4L/DVB (7474):  support key repeat with dib0700 ir receiver

This patch enables support for repeating last event when a key is holded
down with dib0700 devices. It works with rc5 and nec remotes.
It also fixes an annoying bug that floods kernel log with "Unknown key"
messages after each keypress. This happened because the driver was not
resetting infrared register after each poll so it kept polling last key
even if nothing was being pressed. Fixing this, (calling rc_setup after
each poll), permits to implement key repeat.

Signed-off-by: Filippo Argiolas <filippo.argiolas at gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-usb/dib0700.h
drivers/media/dvb/dvb-usb/dib0700_core.c
drivers/media/dvb/dvb-usb/dib0700_devices.c