1 /* manli.h - Keytable for manli Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <media/rc-map.h>
15 /* Michael Tokarev <mjt@tls.msk.ru>
16 http://www.corpit.ru/mjt/beholdTV/remote_control.jpg
17 keytable is used by MANLI MTV00[0x0c] and BeholdTV 40[13] at
18 least, and probably other cards too.
19 The "ascii-art picture" below (in comments, first row
20 is the keycode in hex, and subsequent row(s) shows
21 the button labels (several variants when appropriate)
22 helps to descide which keycodes to assign to the buttons.
25 static struct ir_scancode manli[] = {
31 { 0x1c, KEY_RADIO }, /*XXX*/
57 { 0x0a, KEY_AGAIN }, /*XXX KEY_REWIND? */
59 { 0x17, KEY_DIGITS }, /*XXX*/
78 { 0x16, KEY_OK }, /*XXX KEY_SELECT? KEY_ENTER? */
86 { 0x11, KEY_TV }, /*XXX*/
87 { 0x0d, KEY_MODE }, /*XXX there's no KEY_STEREO */
97 { 0x1b, KEY_VOLUMEUP },
98 { 0x1a, KEY_CHANNELUP },
100 { 0x1f, KEY_VOLUMEDOWN },
101 { 0x1e, KEY_CHANNELDOWN },
107 { 0x19, KEY_CAMERA },
112 static struct rc_keymap manli_map = {
115 .size = ARRAY_SIZE(manli),
116 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */
117 .name = RC_MAP_MANLI,
121 static int __init init_rc_map_manli(void)
123 return ir_register_map(&manli_map);
126 static void __exit exit_rc_map_manli(void)
128 ir_unregister_map(&manli_map);
131 module_init(init_rc_map_manli)
132 module_exit(exit_rc_map_manli)
134 MODULE_LICENSE("GPL");
135 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");