Merge branch 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind...
[pandora-kernel.git] / drivers / media / IR / keymaps / rc-avertv-303.c
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>
14
15 /* AVERTV STUDIO 303 Remote */
16
17 static struct ir_scancode avertv_303[] = {
18         { 0x2a, KEY_1 },
19         { 0x32, KEY_2 },
20         { 0x3a, KEY_3 },
21         { 0x4a, KEY_4 },
22         { 0x52, KEY_5 },
23         { 0x5a, KEY_6 },
24         { 0x6a, KEY_7 },
25         { 0x72, KEY_8 },
26         { 0x7a, KEY_9 },
27         { 0x0e, KEY_0 },
28
29         { 0x02, KEY_POWER },
30         { 0x22, KEY_VIDEO },
31         { 0x42, KEY_AUDIO },
32         { 0x62, KEY_ZOOM },
33         { 0x0a, KEY_TV },
34         { 0x12, KEY_CD },
35         { 0x1a, KEY_TEXT },
36
37         { 0x16, KEY_SUBTITLE },
38         { 0x1e, KEY_REWIND },
39         { 0x06, KEY_PRINT },
40
41         { 0x2e, KEY_SEARCH },
42         { 0x36, KEY_SLEEP },
43         { 0x3e, KEY_SHUFFLE },
44         { 0x26, KEY_MUTE },
45
46         { 0x4e, KEY_RECORD },
47         { 0x56, KEY_PAUSE },
48         { 0x5e, KEY_STOP },
49         { 0x46, KEY_PLAY },
50
51         { 0x6e, KEY_RED },
52         { 0x0b, KEY_GREEN },
53         { 0x66, KEY_YELLOW },
54         { 0x03, KEY_BLUE },
55
56         { 0x76, KEY_LEFT },
57         { 0x7e, KEY_RIGHT },
58         { 0x13, KEY_DOWN },
59         { 0x1b, KEY_UP },
60 };
61
62 static struct rc_keymap avertv_303_map = {
63         .map = {
64                 .scan    = avertv_303,
65                 .size    = ARRAY_SIZE(avertv_303),
66                 .ir_type = IR_TYPE_UNKNOWN,     /* Legacy IR type */
67                 .name    = RC_MAP_AVERTV_303,
68         }
69 };
70
71 static int __init init_rc_map_avertv_303(void)
72 {
73         return ir_register_map(&avertv_303_map);
74 }
75
76 static void __exit exit_rc_map_avertv_303(void)
77 {
78         ir_unregister_map(&avertv_303_map);
79 }
80
81 module_init(init_rc_map_avertv_303)
82 module_exit(exit_rc_map_avertv_303)
83
84 MODULE_LICENSE("GPL");
85 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");