]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/media/rc/keymaps/rc-avertv-303.c
drivers/media: Add module.h to all files using it implicitly
[mirror_ubuntu-artful-kernel.git] / drivers / media / rc / keymaps / rc-avertv-303.c
CommitLineData
6686fa69
MCC
1/* avertv-303.h - Keytable for avertv_303 Remote Controller
2 *
3 * keymap imported from ir-keymaps.c
4 *
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13#include <media/rc-map.h>
7a707b89 14#include <linux/module.h>
6686fa69
MCC
15
16/* AVERTV STUDIO 303 Remote */
17
2f4f58d6 18static struct rc_map_table avertv_303[] = {
6686fa69
MCC
19 { 0x2a, KEY_1 },
20 { 0x32, KEY_2 },
21 { 0x3a, KEY_3 },
22 { 0x4a, KEY_4 },
23 { 0x52, KEY_5 },
24 { 0x5a, KEY_6 },
25 { 0x6a, KEY_7 },
26 { 0x72, KEY_8 },
27 { 0x7a, KEY_9 },
28 { 0x0e, KEY_0 },
29
30 { 0x02, KEY_POWER },
31 { 0x22, KEY_VIDEO },
32 { 0x42, KEY_AUDIO },
33 { 0x62, KEY_ZOOM },
34 { 0x0a, KEY_TV },
35 { 0x12, KEY_CD },
36 { 0x1a, KEY_TEXT },
37
38 { 0x16, KEY_SUBTITLE },
39 { 0x1e, KEY_REWIND },
40 { 0x06, KEY_PRINT },
41
42 { 0x2e, KEY_SEARCH },
43 { 0x36, KEY_SLEEP },
44 { 0x3e, KEY_SHUFFLE },
45 { 0x26, KEY_MUTE },
46
47 { 0x4e, KEY_RECORD },
48 { 0x56, KEY_PAUSE },
49 { 0x5e, KEY_STOP },
50 { 0x46, KEY_PLAY },
51
52 { 0x6e, KEY_RED },
53 { 0x0b, KEY_GREEN },
54 { 0x66, KEY_YELLOW },
55 { 0x03, KEY_BLUE },
56
57 { 0x76, KEY_LEFT },
58 { 0x7e, KEY_RIGHT },
59 { 0x13, KEY_DOWN },
60 { 0x1b, KEY_UP },
61};
62
d100e659 63static struct rc_map_list avertv_303_map = {
6686fa69
MCC
64 .map = {
65 .scan = avertv_303,
66 .size = ARRAY_SIZE(avertv_303),
52b66144 67 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
6686fa69
MCC
68 .name = RC_MAP_AVERTV_303,
69 }
70};
71
72static int __init init_rc_map_avertv_303(void)
73{
d100e659 74 return rc_map_register(&avertv_303_map);
6686fa69
MCC
75}
76
77static void __exit exit_rc_map_avertv_303(void)
78{
d100e659 79 rc_map_unregister(&avertv_303_map);
6686fa69
MCC
80}
81
82module_init(init_rc_map_avertv_303)
83module_exit(exit_rc_map_avertv_303)
84
85MODULE_LICENSE("GPL");
86MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");