1 // SPDX-License-Identifier: GPL-2.0+
2 // iodata-bctv7e.h - Keytable for iodata_bctv7e Remote Controller
3 //
4 // keymap imported from ir-keymaps.c
5 //
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
7
8 #include <media/rc-map.h>
9 #include <linux/module.h>
10
11 /* IO-DATA BCTV7E Remote */
12
13 static struct rc_map_table iodata_bctv7e[] = {
14 { 0x40, KEY_TV },
15 { 0x20, KEY_RADIO }, /* FM */
16 { 0x60, KEY_EPG },
17 { 0x00, KEY_POWER },
18
19 /* Keys 0 to 9 */
20 { 0x44, KEY_0 }, /* 10 */
21 { 0x50, KEY_1 },
22 { 0x30, KEY_2 },
23 { 0x70, KEY_3 },
24 { 0x48, KEY_4 },
25 { 0x28, KEY_5 },
26 { 0x68, KEY_6 },
27 { 0x58, KEY_7 },
28 { 0x38, KEY_8 },
29 { 0x78, KEY_9 },
30
31 { 0x10, KEY_L }, /* Live */
32 { 0x08, KEY_TIME }, /* Time Shift */
33
34 { 0x18, KEY_PLAYPAUSE }, /* Play */
35
36 { 0x24, KEY_ENTER }, /* 11 */
37 { 0x64, KEY_ESC }, /* 12 */
38 { 0x04, KEY_M }, /* Multi */
39
40 { 0x54, KEY_VIDEO },
41 { 0x34, KEY_CHANNELUP },
42 { 0x74, KEY_VOLUMEUP },
43 { 0x14, KEY_MUTE },
44
45 { 0x4c, KEY_VCR }, /* SVIDEO */
46 { 0x2c, KEY_CHANNELDOWN },
47 { 0x6c, KEY_VOLUMEDOWN },
48 { 0x0c, KEY_ZOOM },
49
50 { 0x5c, KEY_PAUSE },
51 { 0x3c, KEY_RED }, /* || (red) */
52 { 0x7c, KEY_RECORD }, /* recording */
53 { 0x1c, KEY_STOP },
54
55 { 0x41, KEY_REWIND }, /* backward << */
56 { 0x21, KEY_PLAY },
57 { 0x61, KEY_FASTFORWARD }, /* forward >> */
58 { 0x01, KEY_NEXT }, /* skip >| */
59 };
60
61 static struct rc_map_list iodata_bctv7e_map = {
62 .map = {
63 .scan = iodata_bctv7e,
64 .size = ARRAY_SIZE(iodata_bctv7e),
65 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
66 .name = RC_MAP_IODATA_BCTV7E,
67 }
68 };
69
init_rc_map_iodata_bctv7e(void)70 static int __init init_rc_map_iodata_bctv7e(void)
71 {
72 return rc_map_register(&iodata_bctv7e_map);
73 }
74
exit_rc_map_iodata_bctv7e(void)75 static void __exit exit_rc_map_iodata_bctv7e(void)
76 {
77 rc_map_unregister(&iodata_bctv7e_map);
78 }
79
80 module_init(init_rc_map_iodata_bctv7e)
81 module_exit(exit_rc_map_iodata_bctv7e)
82
83 MODULE_LICENSE("GPL");
84 MODULE_AUTHOR("Mauro Carvalho Chehab");
85