1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* videomate-k100.h - Keytable for videomate_k100 Remote Controller
4 * keymap imported from ir-keymaps.c
6 * Copyright (c) 2010 by Pavel Osnova <pvosnova@gmail.com>
9 #include <media/rc-map.h>
10 #include <linux/module.h>
12 static struct rc_map_table videomate_k100
[] = {
18 { 0x2d, KEY_NEW
}, /* TV record button */
19 { 0x17, KEY_CYCLEWINDOWS
},
21 { 0x2b, KEY_LANGUAGE
},
22 { 0x32, KEY_SEARCH
}, /* '...' button */
28 { 0x16, KEY_BACKSPACE
},
29 { 0x02, KEY_ZOOM
}, /* WIN key */
31 { 0x05, KEY_VOLUMEUP
},
33 { 0x07, KEY_CHANNELUP
},
34 { 0x06, KEY_VOLUMEDOWN
},
35 { 0x08, KEY_CHANNELDOWN
},
40 { 0x09, KEY_FORWARD
},
41 { 0x10, KEY_PREVIOUS
},
44 { 0x1e, KEY_NUMERIC_1
},
45 { 0x1f, KEY_NUMERIC_2
},
46 { 0x20, KEY_NUMERIC_3
},
47 { 0x21, KEY_NUMERIC_4
},
48 { 0x22, KEY_NUMERIC_5
},
49 { 0x23, KEY_NUMERIC_6
},
50 { 0x24, KEY_NUMERIC_7
},
51 { 0x25, KEY_NUMERIC_8
},
52 { 0x26, KEY_NUMERIC_9
},
53 { 0x2a, KEY_NUMERIC_STAR
}, /* * key */
54 { 0x1d, KEY_NUMERIC_0
},
55 { 0x29, KEY_SUBTITLE
}, /* # key */
66 static struct rc_map_list videomate_k100_map
= {
68 .scan
= videomate_k100
,
69 .size
= ARRAY_SIZE(videomate_k100
),
70 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
71 .name
= RC_MAP_VIDEOMATE_K100
,
75 static int __init
init_rc_map_videomate_k100(void)
77 return rc_map_register(&videomate_k100_map
);
80 static void __exit
exit_rc_map_videomate_k100(void)
82 rc_map_unregister(&videomate_k100_map
);
85 module_init(init_rc_map_videomate_k100
)
86 module_exit(exit_rc_map_videomate_k100
)
88 MODULE_LICENSE("GPL");
89 MODULE_AUTHOR("Pavel Osnova <pvosnova@gmail.com>");