]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/media/rc/keymaps/rc-dvico-mce.c
Merge branches 'for-4.11/upstream-fixes', 'for-4.12/accutouch', 'for-4.12/cp2112...
[mirror_ubuntu-artful-kernel.git] / drivers / media / rc / keymaps / rc-dvico-mce.c
1 /*
2 * keymap imported from cxusb.c
3 *
4 * Copyright (C) 2016 Sean Young
5 *
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.
9 */
10
11 #include <media/rc-map.h>
12 #include <linux/module.h>
13
14 static struct rc_map_table rc_map_dvico_mce_table[] = {
15 { 0xfe02, KEY_TV },
16 { 0xfe0e, KEY_MP3 },
17 { 0xfe1a, KEY_DVD },
18 { 0xfe1e, KEY_FAVORITES },
19 { 0xfe16, KEY_SETUP },
20 { 0xfe46, KEY_POWER2 },
21 { 0xfe0a, KEY_EPG },
22 { 0xfe49, KEY_BACK },
23 { 0xfe4d, KEY_MENU },
24 { 0xfe51, KEY_UP },
25 { 0xfe5b, KEY_LEFT },
26 { 0xfe5f, KEY_RIGHT },
27 { 0xfe53, KEY_DOWN },
28 { 0xfe5e, KEY_OK },
29 { 0xfe59, KEY_INFO },
30 { 0xfe55, KEY_TAB },
31 { 0xfe0f, KEY_PREVIOUSSONG },/* Replay */
32 { 0xfe12, KEY_NEXTSONG }, /* Skip */
33 { 0xfe42, KEY_ENTER }, /* Windows/Start */
34 { 0xfe15, KEY_VOLUMEUP },
35 { 0xfe05, KEY_VOLUMEDOWN },
36 { 0xfe11, KEY_CHANNELUP },
37 { 0xfe09, KEY_CHANNELDOWN },
38 { 0xfe52, KEY_CAMERA },
39 { 0xfe5a, KEY_TUNER }, /* Live */
40 { 0xfe19, KEY_OPEN },
41 { 0xfe0b, KEY_1 },
42 { 0xfe17, KEY_2 },
43 { 0xfe1b, KEY_3 },
44 { 0xfe07, KEY_4 },
45 { 0xfe50, KEY_5 },
46 { 0xfe54, KEY_6 },
47 { 0xfe48, KEY_7 },
48 { 0xfe4c, KEY_8 },
49 { 0xfe58, KEY_9 },
50 { 0xfe13, KEY_ANGLE }, /* Aspect */
51 { 0xfe03, KEY_0 },
52 { 0xfe1f, KEY_ZOOM },
53 { 0xfe43, KEY_REWIND },
54 { 0xfe47, KEY_PLAYPAUSE },
55 { 0xfe4f, KEY_FASTFORWARD },
56 { 0xfe57, KEY_MUTE },
57 { 0xfe0d, KEY_STOP },
58 { 0xfe01, KEY_RECORD },
59 { 0xfe4e, KEY_POWER },
60 };
61
62 static struct rc_map_list dvico_mce_map = {
63 .map = {
64 .scan = rc_map_dvico_mce_table,
65 .size = ARRAY_SIZE(rc_map_dvico_mce_table),
66 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
67 .name = RC_MAP_DVICO_MCE,
68 }
69 };
70
71 static int __init init_rc_map_dvico_mce(void)
72 {
73 return rc_map_register(&dvico_mce_map);
74 }
75
76 static void __exit exit_rc_map_dvico_mce(void)
77 {
78 rc_map_unregister(&dvico_mce_map);
79 }
80
81 module_init(init_rc_map_dvico_mce)
82 module_exit(exit_rc_map_dvico_mce)
83
84 MODULE_LICENSE("GPL");
85 MODULE_AUTHOR("Mauro Carvalho Chehab");