1 // SPDX-License-Identifier: GPL-2.0-only
3 * keymap imported from cxusb.c
5 * Copyright (C) 2016 Sean Young
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 static struct rc_map_table rc_map_dvico_mce_table
[] = {
15 { 0x011e, KEY_FAVORITES
},
16 { 0x0116, KEY_SETUP
},
17 { 0x0146, KEY_POWER2
},
23 { 0x015f, KEY_RIGHT
},
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 */
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
},
50 { 0x0143, KEY_REWIND
},
51 { 0x0147, KEY_PLAYPAUSE
},
52 { 0x014f, KEY_FASTFORWARD
},
55 { 0x0101, KEY_RECORD
},
56 { 0x014e, KEY_POWER
},
59 static struct rc_map_list dvico_mce_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");