blob: d525df9ad868b9b9a6f6143b4f300897219ecc50 [file] [log] [blame]
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -03001/* pinnacle-grey.h - Keytable for pinnacle_grey 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>
Paul Gortmaker7a707b82011-07-03 14:03:12 -040014#include <linux/module.h>
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030015
Mauro Carvalho Chehab2f4f58d2010-11-17 15:46:09 -030016static struct rc_map_table pinnacle_grey[] = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030017 { 0x3a, KEY_0 },
18 { 0x31, KEY_1 },
19 { 0x32, KEY_2 },
20 { 0x33, KEY_3 },
21 { 0x34, KEY_4 },
22 { 0x35, KEY_5 },
23 { 0x36, KEY_6 },
24 { 0x37, KEY_7 },
25 { 0x38, KEY_8 },
26 { 0x39, KEY_9 },
27
28 { 0x2f, KEY_POWER },
29
30 { 0x2e, KEY_P },
31 { 0x1f, KEY_L },
32 { 0x2b, KEY_I },
33
34 { 0x2d, KEY_SCREEN },
35 { 0x1e, KEY_ZOOM },
36 { 0x1b, KEY_VOLUMEUP },
37 { 0x0f, KEY_VOLUMEDOWN },
38 { 0x17, KEY_CHANNELUP },
39 { 0x1c, KEY_CHANNELDOWN },
40 { 0x25, KEY_INFO },
41
42 { 0x3c, KEY_MUTE },
43
44 { 0x3d, KEY_LEFT },
45 { 0x3b, KEY_RIGHT },
46
47 { 0x3f, KEY_UP },
48 { 0x3e, KEY_DOWN },
49 { 0x1a, KEY_ENTER },
50
51 { 0x1d, KEY_MENU },
52 { 0x19, KEY_AGAIN },
53 { 0x16, KEY_PREVIOUSSONG },
54 { 0x13, KEY_NEXTSONG },
55 { 0x15, KEY_PAUSE },
56 { 0x0e, KEY_REWIND },
57 { 0x0d, KEY_PLAY },
58 { 0x0b, KEY_STOP },
59 { 0x07, KEY_FORWARD },
60 { 0x27, KEY_RECORD },
61 { 0x26, KEY_TUNER },
62 { 0x29, KEY_TEXT },
63 { 0x2a, KEY_MEDIA },
64 { 0x18, KEY_EPG },
65};
66
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030067static struct rc_map_list pinnacle_grey_map = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030068 .map = {
69 .scan = pinnacle_grey,
70 .size = ARRAY_SIZE(pinnacle_grey),
Mauro Carvalho Chehab52b66142010-11-17 14:20:52 -030071 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030072 .name = RC_MAP_PINNACLE_GREY,
73 }
74};
75
76static int __init init_rc_map_pinnacle_grey(void)
77{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030078 return rc_map_register(&pinnacle_grey_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030079}
80
81static void __exit exit_rc_map_pinnacle_grey(void)
82{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030083 rc_map_unregister(&pinnacle_grey_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030084}
85
86module_init(init_rc_map_pinnacle_grey)
87module_exit(exit_rc_map_pinnacle_grey)
88
89MODULE_LICENSE("GPL");
90MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");