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_portable_table
[] = {
12 { 0x0302, KEY_SETUP
}, /* Profile */
13 { 0x0343, KEY_POWER2
},
19 { 0x0342, KEY_PREVIOUSSONG
},/* Replay */
20 { 0x0349, KEY_VOLUMEUP
},
21 { 0x0309, KEY_VOLUMEDOWN
},
22 { 0x0354, KEY_CHANNELUP
},
23 { 0x030b, KEY_CHANNELDOWN
},
24 { 0x0316, KEY_CAMERA
},
25 { 0x0340, KEY_TUNER
}, /* ATV/DTV */
27 { 0x0319, KEY_NUMERIC_1
},
28 { 0x0318, KEY_NUMERIC_2
},
29 { 0x031b, KEY_NUMERIC_3
},
30 { 0x031a, KEY_NUMERIC_4
},
31 { 0x0358, KEY_NUMERIC_5
},
32 { 0x0359, KEY_NUMERIC_6
},
33 { 0x0315, KEY_NUMERIC_7
},
34 { 0x0314, KEY_NUMERIC_8
},
35 { 0x0317, KEY_NUMERIC_9
},
36 { 0x0344, KEY_ANGLE
}, /* Aspect */
37 { 0x0355, KEY_NUMERIC_0
},
39 { 0x030a, KEY_REWIND
},
40 { 0x0308, KEY_PLAYPAUSE
},
41 { 0x034b, KEY_FASTFORWARD
},
44 { 0x0356, KEY_RECORD
},
45 { 0x0357, KEY_POWER
},
46 { 0x0341, KEY_UNKNOWN
}, /* INPUT */
47 { 0x0300, KEY_UNKNOWN
}, /* HD */
50 static struct rc_map_list dvico_portable_map
= {
52 .scan
= rc_map_dvico_portable_table
,
53 .size
= ARRAY_SIZE(rc_map_dvico_portable_table
),
54 .rc_proto
= RC_PROTO_NEC
,
55 .name
= RC_MAP_DVICO_PORTABLE
,
59 static int __init
init_rc_map_dvico_portable(void)
61 return rc_map_register(&dvico_portable_map
);
64 static void __exit
exit_rc_map_dvico_portable(void)
66 rc_map_unregister(&dvico_portable_map
);
69 module_init(init_rc_map_dvico_portable
)
70 module_exit(exit_rc_map_dvico_portable
)
72 MODULE_LICENSE("GPL");
73 MODULE_AUTHOR("Mauro Carvalho Chehab");