]> git.karo-electronics.de Git - linux-beck.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)
commita96762da0cfcbe27f18febb84797269cd9faf791
treefc5d8339e60fa9efdd7306d54a3840992d918b28
parent1c35cf9ccac5cf32cd865e6a62dfd16dd50ad5dd
[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