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 keytable is used by MANLI MTV00[0x0c] and BeholdTV 40[13] at
17 least, and probably other cards too.
18 The "ascii-art picture" below (in comments, first row
19 is the keycode in hex, and subsequent row(s) shows
20 the button labels (several variants when appropriate)
21 helps to descide which keycodes to assign to the buttons.
24 static struct rc_map_table manli
[] = {
30 { 0x1c, KEY_RADIO
}, /*XXX*/
56 { 0x0a, KEY_AGAIN
}, /*XXX KEY_REWIND? */
58 { 0x17, KEY_DIGITS
}, /*XXX*/
77 { 0x16, KEY_OK
}, /*XXX KEY_SELECT? KEY_ENTER? */
85 { 0x11, KEY_TV
}, /*XXX*/
86 { 0x0d, KEY_MODE
}, /*XXX there's no KEY_STEREO */
96 { 0x1b, KEY_VOLUMEUP
},
97 { 0x1a, KEY_CHANNELUP
},
99 { 0x1f, KEY_VOLUMEDOWN
},
100 { 0x1e, KEY_CHANNELDOWN
},
106 { 0x19, KEY_CAMERA
},
111 static struct rc_map_list manli_map
= {
114 .size
= ARRAY_SIZE(manli
),
115 .rc_type
= RC_TYPE_UNKNOWN
, /* Legacy IR type */
116 .name
= RC_MAP_MANLI
,
120 static int __init
init_rc_map_manli(void)
122 return rc_map_register(&manli_map
);
125 static void __exit
exit_rc_map_manli(void)
127 rc_map_unregister(&manli_map
);
130 module_init(init_rc_map_manli
)
131 module_exit(exit_rc_map_manli
)
133 MODULE_LICENSE("GPL");
134 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");