aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc
diff options
context:
space:
mode:
authorAnssi Hannula <anssi.hannula@iki.fi>2012-05-14 08:52:38 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-20 10:40:37 -0400
commitbe1027cc0f2b941fb45545a20940380673700472 (patch)
tree1c5b7792714e3d311f1321f0a180d19e654ad0e9 /drivers/media/rc
parent5085c99eeb8e47bcfc2cce6ba0ae03db057057ba (diff)
[media] ati_remote: add regular up/down buttons to Medion Digitainer keymap
There are many different Medion X10 remotes that need slightly different keymaps. We may not yet have all the needed keymaps, in which case a wrong keymap may be used. This happened with Medion X10 OR2x remotes before the keymap for them was added, causing the ati_remote driver to select the Medion Digitainer keymap instead. Unfortunately, the Medion Digitainer keymap doesn't have the standard X10 up/down scancodes assigned to KEY_UP and KEY_DOWN keycodes, making wrongly assigned remotes mostly unusable. Add the regular KEY_UP and KEY_DOWN scancodes to the Medion X10 Digitainer keymap, making any Medion remote mostly usable even when wrongly used with that keymap (standard buttons, such as up/down/left/right, 0-9, play/stop/pause, have the same scancode in all the X10 remotes). Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r--drivers/media/rc/keymaps/rc-medion-x10-digitainer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/rc/keymaps/rc-medion-x10-digitainer.c b/drivers/media/rc/keymaps/rc-medion-x10-digitainer.c
index 0a5ce84d9fd8..966f9b3c71da 100644
--- a/drivers/media/rc/keymaps/rc-medion-x10-digitainer.c
+++ b/drivers/media/rc/keymaps/rc-medion-x10-digitainer.c
@@ -86,6 +86,14 @@ static struct rc_map_table medion_x10_digitainer[] = {
86 { 0x14, KEY_8 }, 86 { 0x14, KEY_8 },
87 { 0x15, KEY_9 }, 87 { 0x15, KEY_9 },
88 { 0x17, KEY_0 }, 88 { 0x17, KEY_0 },
89
90 /* these do not actually exist on this remote, but these scancodes
91 * exist on all other Medion X10 remotes and adding them here allows
92 * such remotes to be adequately usable with this keymap in case
93 * this keymap is wrongly used with them (which is quite possible as
94 * there are lots of different Medion X10 remotes): */
95 { 0x1a, KEY_UP },
96 { 0x22, KEY_DOWN },
89}; 97};
90 98
91static struct rc_map_list medion_x10_digitainer_map = { 99static struct rc_map_list medion_x10_digitainer_map = {