WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / rc / keymaps / rc-iodata-bctv7e.c
blob9cc6ea0f4226335e4bed474a6817ae9655c5a6b4
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
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 /* IO-DATA BCTV7E Remote */
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 },
19 /* Keys 0 to 9 */
20 { 0x44, KEY_NUMERIC_0 }, /* 10 */
21 { 0x50, KEY_NUMERIC_1 },
22 { 0x30, KEY_NUMERIC_2 },
23 { 0x70, KEY_NUMERIC_3 },
24 { 0x48, KEY_NUMERIC_4 },
25 { 0x28, KEY_NUMERIC_5 },
26 { 0x68, KEY_NUMERIC_6 },
27 { 0x58, KEY_NUMERIC_7 },
28 { 0x38, KEY_NUMERIC_8 },
29 { 0x78, KEY_NUMERIC_9 },
31 { 0x10, KEY_L }, /* Live */
32 { 0x08, KEY_TIME }, /* Time Shift */
34 { 0x18, KEY_PLAYPAUSE }, /* Play */
36 { 0x24, KEY_ENTER }, /* 11 */
37 { 0x64, KEY_ESC }, /* 12 */
38 { 0x04, KEY_M }, /* Multi */
40 { 0x54, KEY_VIDEO },
41 { 0x34, KEY_CHANNELUP },
42 { 0x74, KEY_VOLUMEUP },
43 { 0x14, KEY_MUTE },
45 { 0x4c, KEY_VCR }, /* SVIDEO */
46 { 0x2c, KEY_CHANNELDOWN },
47 { 0x6c, KEY_VOLUMEDOWN },
48 { 0x0c, KEY_ZOOM },
50 { 0x5c, KEY_PAUSE },
51 { 0x3c, KEY_RED }, /* || (red) */
52 { 0x7c, KEY_RECORD }, /* recording */
53 { 0x1c, KEY_STOP },
55 { 0x41, KEY_REWIND }, /* backward << */
56 { 0x21, KEY_PLAY },
57 { 0x61, KEY_FASTFORWARD }, /* forward >> */
58 { 0x01, KEY_NEXT }, /* skip >| */
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,
70 static int __init init_rc_map_iodata_bctv7e(void)
72 return rc_map_register(&iodata_bctv7e_map);
75 static void __exit exit_rc_map_iodata_bctv7e(void)
77 rc_map_unregister(&iodata_bctv7e_map);
80 module_init(init_rc_map_iodata_bctv7e)
81 module_exit(exit_rc_map_iodata_bctv7e)
83 MODULE_LICENSE("GPL");
84 MODULE_AUTHOR("Mauro Carvalho Chehab");