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_portable_table
[] = {
15 { 0x0302, KEY_SETUP
}, /* Profile */
16 { 0x0343, KEY_POWER2
},
22 { 0x0342, KEY_PREVIOUSSONG
},/* Replay */
23 { 0x0349, KEY_VOLUMEUP
},
24 { 0x0309, KEY_VOLUMEDOWN
},
25 { 0x0354, KEY_CHANNELUP
},
26 { 0x030b, KEY_CHANNELDOWN
},
27 { 0x0316, KEY_CAMERA
},
28 { 0x0340, KEY_TUNER
}, /* ATV/DTV */
39 { 0x0344, KEY_ANGLE
}, /* Aspect */
42 { 0x030a, KEY_REWIND
},
43 { 0x0308, KEY_PLAYPAUSE
},
44 { 0x034b, KEY_FASTFORWARD
},
47 { 0x0356, KEY_RECORD
},
48 { 0x0357, KEY_POWER
},
49 { 0x0341, KEY_UNKNOWN
}, /* INPUT */
50 { 0x0300, KEY_UNKNOWN
}, /* HD */
53 static struct rc_map_list dvico_portable_map
= {
55 .scan
= rc_map_dvico_portable_table
,
56 .size
= ARRAY_SIZE(rc_map_dvico_portable_table
),
57 .rc_proto
= RC_PROTO_NEC
,
58 .name
= RC_MAP_DVICO_PORTABLE
,
62 static int __init
init_rc_map_dvico_portable(void)
64 return rc_map_register(&dvico_portable_map
);
67 static void __exit
exit_rc_map_dvico_portable(void)
69 rc_map_unregister(&dvico_portable_map
);
72 module_init(init_rc_map_dvico_portable
)
73 module_exit(exit_rc_map_dvico_portable
)
75 MODULE_LICENSE("GPL");
76 MODULE_AUTHOR("Mauro Carvalho Chehab");