1 /* tbs-nec.h - Keytable for tbs_nec 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 static struct rc_map_table tbs_nec[] = {
16 { 0x84, KEY_POWER2}, /* power */
17 { 0x94, KEY_MUTE}, /* mute */
28 { 0xc0, KEY_10CHANNELSUP}, /* 10+ */
29 { 0xd0, KEY_10CHANNELSDOWN}, /* 10- */
30 { 0x96, KEY_CHANNELUP}, /* ch+ */
31 { 0x91, KEY_CHANNELDOWN}, /* ch- */
32 { 0x93, KEY_VOLUMEUP}, /* vol+ */
33 { 0x8c, KEY_VOLUMEDOWN}, /* vol- */
34 { 0x83, KEY_RECORD}, /* rec */
35 { 0x98, KEY_PAUSE}, /* pause, yellow */
36 { 0x99, KEY_OK}, /* ok */
37 { 0x9a, KEY_CAMERA}, /* snapshot */
42 { 0x95, KEY_FAVORITES}, /* blue */
43 { 0x97, KEY_SUBTITLE}, /* green */
48 { 0x80, KEY_PREVIOUS}, /* red */
52 static struct rc_map_list tbs_nec_map = {
55 .size = ARRAY_SIZE(tbs_nec),
56 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
57 .name = RC_MAP_TBS_NEC,
61 static int __init init_rc_map_tbs_nec(void)
63 return rc_map_register(&tbs_nec_map);
66 static void __exit exit_rc_map_tbs_nec(void)
68 rc_map_unregister(&tbs_nec_map);
71 module_init(init_rc_map_tbs_nec)
72 module_exit(exit_rc_map_tbs_nec)
74 MODULE_LICENSE("GPL");
75 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");