]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mantis: add remote control support
authorJan Klötzke <jan@kloetzke.net>
Sat, 6 Jun 2015 19:58:13 +0000 (16:58 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 10 Jun 2015 14:58:24 +0000 (11:58 -0300)
commit336f853436c57fd7ed14495dff4c143899b973a1
treefc5d8339e60fa9efdd7306d54a3840992d918b28
parentb05d89a047cf415d494bfddbdfb10a25d8f36358
[media] mantis: add remote control support

The embedded UART is apparently used to receive decoded IR (RC5?) codes.
Forward these scan codes to the RC framework and (where known) add
corresponding mapping tables to translate them into regular keys.

This patch has been tested on a TechniSat CableStar HD2. The mappings of other
rc-maps were taken from Christoph Pinkl's patch
(http://patchwork.linuxtv.org/patch/7217/) and the s2-liplianin repository. The
major difference to Christoph's patch is a reworked interrupt handling of the
UART because the RX interrupt is apparently level triggered and requires
masking until the FIFO is read by the UART worker.

Signed-off-by: Jan Klötzke <jan@kloetzke.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/mantis/hopper_cards.c
drivers/media/pci/mantis/mantis_cards.c
drivers/media/pci/mantis/mantis_common.h
drivers/media/pci/mantis/mantis_dma.c
drivers/media/pci/mantis/mantis_i2c.c
drivers/media/pci/mantis/mantis_input.c
drivers/media/pci/mantis/mantis_input.h [new file with mode: 0644]
drivers/media/pci/mantis/mantis_pcmcia.c
drivers/media/pci/mantis/mantis_uart.c