diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-11-09 21:00:14 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:36 -0500 |
commit | 32cf86f6d16367db5a10039c1dd938a2427d697c (patch) | |
tree | 21e6716b64d80d280da2561efd873430ca833f08 /drivers/media/rc/keymaps/rc-pixelview-new.c | |
parent | 3ffea4988be3f3fa65f2104ba31eff2b5e0e82a0 (diff) |
[media] rename drivers/media/IR to drives/media/rc
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/keymaps/rc-pixelview-new.c')
-rw-r--r-- | drivers/media/rc/keymaps/rc-pixelview-new.c | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/drivers/media/rc/keymaps/rc-pixelview-new.c b/drivers/media/rc/keymaps/rc-pixelview-new.c new file mode 100644 index 000000000000..7bbbbf5735e6 --- /dev/null +++ b/drivers/media/rc/keymaps/rc-pixelview-new.c | |||
@@ -0,0 +1,83 @@ | |||
1 | /* pixelview-new.h - Keytable for pixelview_new 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 | /* | ||
16 | Mauro Carvalho Chehab <mchehab@infradead.org> | ||
17 | present on PV MPEG 8000GT | ||
18 | */ | ||
19 | |||
20 | static struct ir_scancode pixelview_new[] = { | ||
21 | { 0x3c, KEY_TIME }, /* Timeshift */ | ||
22 | { 0x12, KEY_POWER }, | ||
23 | |||
24 | { 0x3d, KEY_1 }, | ||
25 | { 0x38, KEY_2 }, | ||
26 | { 0x18, KEY_3 }, | ||
27 | { 0x35, KEY_4 }, | ||
28 | { 0x39, KEY_5 }, | ||
29 | { 0x15, KEY_6 }, | ||
30 | { 0x36, KEY_7 }, | ||
31 | { 0x3a, KEY_8 }, | ||
32 | { 0x1e, KEY_9 }, | ||
33 | { 0x3e, KEY_0 }, | ||
34 | |||
35 | { 0x1c, KEY_AGAIN }, /* LOOP */ | ||
36 | { 0x3f, KEY_MEDIA }, /* Source */ | ||
37 | { 0x1f, KEY_LAST }, /* +100 */ | ||
38 | { 0x1b, KEY_MUTE }, | ||
39 | |||
40 | { 0x17, KEY_CHANNELDOWN }, | ||
41 | { 0x16, KEY_CHANNELUP }, | ||
42 | { 0x10, KEY_VOLUMEUP }, | ||
43 | { 0x14, KEY_VOLUMEDOWN }, | ||
44 | { 0x13, KEY_ZOOM }, | ||
45 | |||
46 | { 0x19, KEY_CAMERA }, /* SNAPSHOT */ | ||
47 | { 0x1a, KEY_SEARCH }, /* scan */ | ||
48 | |||
49 | { 0x37, KEY_REWIND }, /* << */ | ||
50 | { 0x32, KEY_RECORD }, /* o (red) */ | ||
51 | { 0x33, KEY_FORWARD }, /* >> */ | ||
52 | { 0x11, KEY_STOP }, /* square */ | ||
53 | { 0x3b, KEY_PLAY }, /* > */ | ||
54 | { 0x30, KEY_PLAYPAUSE }, /* || */ | ||
55 | |||
56 | { 0x31, KEY_TV }, | ||
57 | { 0x34, KEY_RADIO }, | ||
58 | }; | ||
59 | |||
60 | static struct rc_keymap pixelview_new_map = { | ||
61 | .map = { | ||
62 | .scan = pixelview_new, | ||
63 | .size = ARRAY_SIZE(pixelview_new), | ||
64 | .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ | ||
65 | .name = RC_MAP_PIXELVIEW_NEW, | ||
66 | } | ||
67 | }; | ||
68 | |||
69 | static int __init init_rc_map_pixelview_new(void) | ||
70 | { | ||
71 | return ir_register_map(&pixelview_new_map); | ||
72 | } | ||
73 | |||
74 | static void __exit exit_rc_map_pixelview_new(void) | ||
75 | { | ||
76 | ir_unregister_map(&pixelview_new_map); | ||
77 | } | ||
78 | |||
79 | module_init(init_rc_map_pixelview_new) | ||
80 | module_exit(exit_rc_map_pixelview_new) | ||
81 | |||
82 | MODULE_LICENSE("GPL"); | ||
83 | MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); | ||