1 // SPDX-License-Identifier: GPL-2.0+
2 // tevii-nec.h - Keytable for tevii_nec Remote Controller
4 // keymap imported from ir-keymaps.c
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 static struct rc_map_table tevii_nec
[] = {
14 { 0x11, KEY_NUMERIC_1
},
15 { 0x12, KEY_NUMERIC_2
},
16 { 0x13, KEY_NUMERIC_3
},
17 { 0x14, KEY_NUMERIC_4
},
18 { 0x15, KEY_NUMERIC_5
},
19 { 0x16, KEY_NUMERIC_6
},
20 { 0x17, KEY_NUMERIC_7
},
21 { 0x18, KEY_NUMERIC_8
},
22 { 0x19, KEY_NUMERIC_9
},
23 { 0x10, KEY_NUMERIC_0
},
25 { 0x0f, KEY_VOLUMEDOWN
},
29 { 0x09, KEY_VOLUMEUP
},
30 { 0x08, KEY_CHANNELUP
},
39 { 0x06, KEY_CHANNELDOWN
},
40 { 0x40, KEY_PLAYPAUSE
},
42 { 0x1b, KEY_FAVORITES
},
44 { 0x4d, KEY_FASTFORWARD
},
49 { 0x45, KEY_SUBTITLE
},
58 { 0x58, KEY_SWITCHVIDEOMODE
},
61 static struct rc_map_list tevii_nec_map
= {
64 .size
= ARRAY_SIZE(tevii_nec
),
65 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
66 .name
= RC_MAP_TEVII_NEC
,
70 static int __init
init_rc_map_tevii_nec(void)
72 return rc_map_register(&tevii_nec_map
);
75 static void __exit
exit_rc_map_tevii_nec(void)
77 rc_map_unregister(&tevii_nec_map
);
80 module_init(init_rc_map_tevii_nec
)
81 module_exit(exit_rc_map_tevii_nec
)
83 MODULE_LICENSE("GPL");
84 MODULE_AUTHOR("Mauro Carvalho Chehab");