1 // SPDX-License-Identifier: GPL-2.0+
2 // iodata-bctv7e.h - Keytable for iodata_bctv7e 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 /* IO-DATA BCTV7E Remote */
13 static struct rc_map_table iodata_bctv7e
[] = {
15 { 0x20, KEY_RADIO
}, /* FM */
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 */
41 { 0x34, KEY_CHANNELUP
},
42 { 0x74, KEY_VOLUMEUP
},
45 { 0x4c, KEY_VCR
}, /* SVIDEO */
46 { 0x2c, KEY_CHANNELDOWN
},
47 { 0x6c, KEY_VOLUMEDOWN
},
51 { 0x3c, KEY_RED
}, /* || (red) */
52 { 0x7c, KEY_RECORD
}, /* recording */
55 { 0x41, KEY_REWIND
}, /* backward << */
57 { 0x61, KEY_FASTFORWARD
}, /* forward >> */
58 { 0x01, KEY_NEXT
}, /* skip >| */
61 static struct rc_map_list iodata_bctv7e_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");