WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / rc / keymaps / rc-dvico-mce.c
blobb1bb8cdb3705d0fcbd8f94ac8d06f0f5bc59925c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * keymap imported from cxusb.c
5 * Copyright (C) 2016 Sean Young
6 */
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 static struct rc_map_table rc_map_dvico_mce_table[] = {
12 { 0x0102, KEY_TV },
13 { 0x010e, KEY_MP3 },
14 { 0x011a, KEY_DVD },
15 { 0x011e, KEY_FAVORITES },
16 { 0x0116, KEY_SETUP },
17 { 0x0146, KEY_POWER2 },
18 { 0x010a, KEY_EPG },
19 { 0x0149, KEY_BACK },
20 { 0x014d, KEY_MENU },
21 { 0x0151, KEY_UP },
22 { 0x015b, KEY_LEFT },
23 { 0x015f, KEY_RIGHT },
24 { 0x0153, KEY_DOWN },
25 { 0x015e, KEY_OK },
26 { 0x0159, KEY_INFO },
27 { 0x0155, KEY_TAB },
28 { 0x010f, KEY_PREVIOUSSONG },/* Replay */
29 { 0x0112, KEY_NEXTSONG }, /* Skip */
30 { 0x0142, KEY_ENTER }, /* Windows/Start */
31 { 0x0115, KEY_VOLUMEUP },
32 { 0x0105, KEY_VOLUMEDOWN },
33 { 0x0111, KEY_CHANNELUP },
34 { 0x0109, KEY_CHANNELDOWN },
35 { 0x0152, KEY_CAMERA },
36 { 0x015a, KEY_TUNER }, /* Live */
37 { 0x0119, KEY_OPEN },
38 { 0x010b, KEY_NUMERIC_1 },
39 { 0x0117, KEY_NUMERIC_2 },
40 { 0x011b, KEY_NUMERIC_3 },
41 { 0x0107, KEY_NUMERIC_4 },
42 { 0x0150, KEY_NUMERIC_5 },
43 { 0x0154, KEY_NUMERIC_6 },
44 { 0x0148, KEY_NUMERIC_7 },
45 { 0x014c, KEY_NUMERIC_8 },
46 { 0x0158, KEY_NUMERIC_9 },
47 { 0x0113, KEY_ANGLE }, /* Aspect */
48 { 0x0103, KEY_NUMERIC_0 },
49 { 0x011f, KEY_ZOOM },
50 { 0x0143, KEY_REWIND },
51 { 0x0147, KEY_PLAYPAUSE },
52 { 0x014f, KEY_FASTFORWARD },
53 { 0x0157, KEY_MUTE },
54 { 0x010d, KEY_STOP },
55 { 0x0101, KEY_RECORD },
56 { 0x014e, KEY_POWER },
59 static struct rc_map_list dvico_mce_map = {
60 .map = {
61 .scan = rc_map_dvico_mce_table,
62 .size = ARRAY_SIZE(rc_map_dvico_mce_table),
63 .rc_proto = RC_PROTO_NEC,
64 .name = RC_MAP_DVICO_MCE,
68 static int __init init_rc_map_dvico_mce(void)
70 return rc_map_register(&dvico_mce_map);
73 static void __exit exit_rc_map_dvico_mce(void)
75 rc_map_unregister(&dvico_mce_map);
78 module_init(init_rc_map_dvico_mce)
79 module_exit(exit_rc_map_dvico_mce)
81 MODULE_LICENSE("GPL");
82 MODULE_AUTHOR("Mauro Carvalho Chehab");