Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-btrfs-devel.git] / drivers / media / rc / keymaps / rc-pinnacle-grey.c
blob6ba8c368d10a6ba5e0cf6ca55e6e4b12a1c6269b
1 /* pinnacle-grey.h - Keytable for pinnacle_grey Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
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.
13 #include <media/rc-map.h>
15 static struct rc_map_table pinnacle_grey[] = {
16 { 0x3a, KEY_0 },
17 { 0x31, KEY_1 },
18 { 0x32, KEY_2 },
19 { 0x33, KEY_3 },
20 { 0x34, KEY_4 },
21 { 0x35, KEY_5 },
22 { 0x36, KEY_6 },
23 { 0x37, KEY_7 },
24 { 0x38, KEY_8 },
25 { 0x39, KEY_9 },
27 { 0x2f, KEY_POWER },
29 { 0x2e, KEY_P },
30 { 0x1f, KEY_L },
31 { 0x2b, KEY_I },
33 { 0x2d, KEY_SCREEN },
34 { 0x1e, KEY_ZOOM },
35 { 0x1b, KEY_VOLUMEUP },
36 { 0x0f, KEY_VOLUMEDOWN },
37 { 0x17, KEY_CHANNELUP },
38 { 0x1c, KEY_CHANNELDOWN },
39 { 0x25, KEY_INFO },
41 { 0x3c, KEY_MUTE },
43 { 0x3d, KEY_LEFT },
44 { 0x3b, KEY_RIGHT },
46 { 0x3f, KEY_UP },
47 { 0x3e, KEY_DOWN },
48 { 0x1a, KEY_ENTER },
50 { 0x1d, KEY_MENU },
51 { 0x19, KEY_AGAIN },
52 { 0x16, KEY_PREVIOUSSONG },
53 { 0x13, KEY_NEXTSONG },
54 { 0x15, KEY_PAUSE },
55 { 0x0e, KEY_REWIND },
56 { 0x0d, KEY_PLAY },
57 { 0x0b, KEY_STOP },
58 { 0x07, KEY_FORWARD },
59 { 0x27, KEY_RECORD },
60 { 0x26, KEY_TUNER },
61 { 0x29, KEY_TEXT },
62 { 0x2a, KEY_MEDIA },
63 { 0x18, KEY_EPG },
66 static struct rc_map_list pinnacle_grey_map = {
67 .map = {
68 .scan = pinnacle_grey,
69 .size = ARRAY_SIZE(pinnacle_grey),
70 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
71 .name = RC_MAP_PINNACLE_GREY,
75 static int __init init_rc_map_pinnacle_grey(void)
77 return rc_map_register(&pinnacle_grey_map);
80 static void __exit exit_rc_map_pinnacle_grey(void)
82 rc_map_unregister(&pinnacle_grey_map);
85 module_init(init_rc_map_pinnacle_grey)
86 module_exit(exit_rc_map_pinnacle_grey)
88 MODULE_LICENSE("GPL");
89 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");