2 * keymap imported from cxusb.c
4 * Copyright (C) 2016 Sean Young
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2.
11 #include <media/rc-map.h>
12 #include <linux/module.h>
14 static struct rc_map_table rc_map_dvico_mce_table
[] = {
18 { 0x011e, KEY_FAVORITES
},
19 { 0x0116, KEY_SETUP
},
20 { 0x0146, KEY_POWER2
},
26 { 0x015f, KEY_RIGHT
},
31 { 0x010f, KEY_PREVIOUSSONG
},/* Replay */
32 { 0x0112, KEY_NEXTSONG
}, /* Skip */
33 { 0x0142, KEY_ENTER
}, /* Windows/Start */
34 { 0x0115, KEY_VOLUMEUP
},
35 { 0x0105, KEY_VOLUMEDOWN
},
36 { 0x0111, KEY_CHANNELUP
},
37 { 0x0109, KEY_CHANNELDOWN
},
38 { 0x0152, KEY_CAMERA
},
39 { 0x015a, KEY_TUNER
}, /* Live */
50 { 0x0113, KEY_ANGLE
}, /* Aspect */
53 { 0x0143, KEY_REWIND
},
54 { 0x0147, KEY_PLAYPAUSE
},
55 { 0x014f, KEY_FASTFORWARD
},
58 { 0x0101, KEY_RECORD
},
59 { 0x014e, KEY_POWER
},
62 static struct rc_map_list dvico_mce_map
= {
64 .scan
= rc_map_dvico_mce_table
,
65 .size
= ARRAY_SIZE(rc_map_dvico_mce_table
),
66 .rc_proto
= RC_PROTO_NEC
,
67 .name
= RC_MAP_DVICO_MCE
,
71 static int __init
init_rc_map_dvico_mce(void)
73 return rc_map_register(&dvico_mce_map
);
76 static void __exit
exit_rc_map_dvico_mce(void)
78 rc_map_unregister(&dvico_mce_map
);
81 module_init(init_rc_map_dvico_mce
)
82 module_exit(exit_rc_map_dvico_mce
)
84 MODULE_LICENSE("GPL");
85 MODULE_AUTHOR("Mauro Carvalho Chehab");