1688c73c6SMauro Carvalho Chehab // SPDX-License-Identifier: GPL-2.0+
2688c73c6SMauro Carvalho Chehab // avertv-303.h - Keytable for avertv_303 Remote Controller
3688c73c6SMauro Carvalho Chehab //
4688c73c6SMauro Carvalho Chehab // keymap imported from ir-keymaps.c
5688c73c6SMauro Carvalho Chehab //
6688c73c6SMauro Carvalho Chehab // Copyright (c) 2010 by Mauro Carvalho Chehab
732cf86f6SMauro Carvalho Chehab
832cf86f6SMauro Carvalho Chehab #include <media/rc-map.h>
97a707b89SPaul Gortmaker #include <linux/module.h>
1032cf86f6SMauro Carvalho Chehab
1132cf86f6SMauro Carvalho Chehab /* AVERTV STUDIO 303 Remote */
1232cf86f6SMauro Carvalho Chehab
132f4f58d6SMauro Carvalho Chehab static struct rc_map_table avertv_303[] = {
14*1910ea42SBastien Nocera { 0x2a, KEY_NUMERIC_1 },
15*1910ea42SBastien Nocera { 0x32, KEY_NUMERIC_2 },
16*1910ea42SBastien Nocera { 0x3a, KEY_NUMERIC_3 },
17*1910ea42SBastien Nocera { 0x4a, KEY_NUMERIC_4 },
18*1910ea42SBastien Nocera { 0x52, KEY_NUMERIC_5 },
19*1910ea42SBastien Nocera { 0x5a, KEY_NUMERIC_6 },
20*1910ea42SBastien Nocera { 0x6a, KEY_NUMERIC_7 },
21*1910ea42SBastien Nocera { 0x72, KEY_NUMERIC_8 },
22*1910ea42SBastien Nocera { 0x7a, KEY_NUMERIC_9 },
23*1910ea42SBastien Nocera { 0x0e, KEY_NUMERIC_0 },
2432cf86f6SMauro Carvalho Chehab
2532cf86f6SMauro Carvalho Chehab { 0x02, KEY_POWER },
2632cf86f6SMauro Carvalho Chehab { 0x22, KEY_VIDEO },
2732cf86f6SMauro Carvalho Chehab { 0x42, KEY_AUDIO },
2832cf86f6SMauro Carvalho Chehab { 0x62, KEY_ZOOM },
2932cf86f6SMauro Carvalho Chehab { 0x0a, KEY_TV },
3032cf86f6SMauro Carvalho Chehab { 0x12, KEY_CD },
3132cf86f6SMauro Carvalho Chehab { 0x1a, KEY_TEXT },
3232cf86f6SMauro Carvalho Chehab
3332cf86f6SMauro Carvalho Chehab { 0x16, KEY_SUBTITLE },
3432cf86f6SMauro Carvalho Chehab { 0x1e, KEY_REWIND },
3532cf86f6SMauro Carvalho Chehab { 0x06, KEY_PRINT },
3632cf86f6SMauro Carvalho Chehab
3732cf86f6SMauro Carvalho Chehab { 0x2e, KEY_SEARCH },
3832cf86f6SMauro Carvalho Chehab { 0x36, KEY_SLEEP },
3932cf86f6SMauro Carvalho Chehab { 0x3e, KEY_SHUFFLE },
4032cf86f6SMauro Carvalho Chehab { 0x26, KEY_MUTE },
4132cf86f6SMauro Carvalho Chehab
4232cf86f6SMauro Carvalho Chehab { 0x4e, KEY_RECORD },
4332cf86f6SMauro Carvalho Chehab { 0x56, KEY_PAUSE },
4432cf86f6SMauro Carvalho Chehab { 0x5e, KEY_STOP },
4532cf86f6SMauro Carvalho Chehab { 0x46, KEY_PLAY },
4632cf86f6SMauro Carvalho Chehab
4732cf86f6SMauro Carvalho Chehab { 0x6e, KEY_RED },
4832cf86f6SMauro Carvalho Chehab { 0x0b, KEY_GREEN },
4932cf86f6SMauro Carvalho Chehab { 0x66, KEY_YELLOW },
5032cf86f6SMauro Carvalho Chehab { 0x03, KEY_BLUE },
5132cf86f6SMauro Carvalho Chehab
5232cf86f6SMauro Carvalho Chehab { 0x76, KEY_LEFT },
5332cf86f6SMauro Carvalho Chehab { 0x7e, KEY_RIGHT },
5432cf86f6SMauro Carvalho Chehab { 0x13, KEY_DOWN },
5532cf86f6SMauro Carvalho Chehab { 0x1b, KEY_UP },
5632cf86f6SMauro Carvalho Chehab };
5732cf86f6SMauro Carvalho Chehab
58d100e659SMauro Carvalho Chehab static struct rc_map_list avertv_303_map = {
5932cf86f6SMauro Carvalho Chehab .map = {
6032cf86f6SMauro Carvalho Chehab .scan = avertv_303,
6132cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(avertv_303),
626d741bfeSSean Young .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
6332cf86f6SMauro Carvalho Chehab .name = RC_MAP_AVERTV_303,
6432cf86f6SMauro Carvalho Chehab }
6532cf86f6SMauro Carvalho Chehab };
6632cf86f6SMauro Carvalho Chehab
init_rc_map_avertv_303(void)6732cf86f6SMauro Carvalho Chehab static int __init init_rc_map_avertv_303(void)
6832cf86f6SMauro Carvalho Chehab {
69d100e659SMauro Carvalho Chehab return rc_map_register(&avertv_303_map);
7032cf86f6SMauro Carvalho Chehab }
7132cf86f6SMauro Carvalho Chehab
exit_rc_map_avertv_303(void)7232cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_avertv_303(void)
7332cf86f6SMauro Carvalho Chehab {
74d100e659SMauro Carvalho Chehab rc_map_unregister(&avertv_303_map);
7532cf86f6SMauro Carvalho Chehab }
7632cf86f6SMauro Carvalho Chehab
7732cf86f6SMauro Carvalho Chehab module_init(init_rc_map_avertv_303)
7832cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_avertv_303)
7932cf86f6SMauro Carvalho Chehab
8032cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
8137e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab");
82