diff options
Diffstat (limited to 'drivers/media/rc/keymaps/rc-eztv.c')
-rw-r--r-- | drivers/media/rc/keymaps/rc-eztv.c | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/drivers/media/rc/keymaps/rc-eztv.c b/drivers/media/rc/keymaps/rc-eztv.c new file mode 100644 index 000000000000..660907a78db9 --- /dev/null +++ b/drivers/media/rc/keymaps/rc-eztv.c | |||
@@ -0,0 +1,96 @@ | |||
1 | /* eztv.h - Keytable for eztv 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 | /* Alfons Geser <a.geser@cox.net> | ||
16 | * updates from Job D. R. Borges <jobdrb@ig.com.br> */ | ||
17 | |||
18 | static struct ir_scancode eztv[] = { | ||
19 | { 0x12, KEY_POWER }, | ||
20 | { 0x01, KEY_TV }, /* DVR */ | ||
21 | { 0x15, KEY_DVD }, /* DVD */ | ||
22 | { 0x17, KEY_AUDIO }, /* music */ | ||
23 | /* DVR mode / DVD mode / music mode */ | ||
24 | |||
25 | { 0x1b, KEY_MUTE }, /* mute */ | ||
26 | { 0x02, KEY_LANGUAGE }, /* MTS/SAP / audio / autoseek */ | ||
27 | { 0x1e, KEY_SUBTITLE }, /* closed captioning / subtitle / seek */ | ||
28 | { 0x16, KEY_ZOOM }, /* full screen */ | ||
29 | { 0x1c, KEY_VIDEO }, /* video source / eject / delall */ | ||
30 | { 0x1d, KEY_RESTART }, /* playback / angle / del */ | ||
31 | { 0x2f, KEY_SEARCH }, /* scan / menu / playlist */ | ||
32 | { 0x30, KEY_CHANNEL }, /* CH surfing / bookmark / memo */ | ||
33 | |||
34 | { 0x31, KEY_HELP }, /* help */ | ||
35 | { 0x32, KEY_MODE }, /* num/memo */ | ||
36 | { 0x33, KEY_ESC }, /* cancel */ | ||
37 | |||
38 | { 0x0c, KEY_UP }, /* up */ | ||
39 | { 0x10, KEY_DOWN }, /* down */ | ||
40 | { 0x08, KEY_LEFT }, /* left */ | ||
41 | { 0x04, KEY_RIGHT }, /* right */ | ||
42 | { 0x03, KEY_SELECT }, /* select */ | ||
43 | |||
44 | { 0x1f, KEY_REWIND }, /* rewind */ | ||
45 | { 0x20, KEY_PLAYPAUSE },/* play/pause */ | ||
46 | { 0x29, KEY_FORWARD }, /* forward */ | ||
47 | { 0x14, KEY_AGAIN }, /* repeat */ | ||
48 | { 0x2b, KEY_RECORD }, /* recording */ | ||
49 | { 0x2c, KEY_STOP }, /* stop */ | ||
50 | { 0x2d, KEY_PLAY }, /* play */ | ||
51 | { 0x2e, KEY_CAMERA }, /* snapshot / shuffle */ | ||
52 | |||
53 | { 0x00, KEY_0 }, | ||
54 | { 0x05, KEY_1 }, | ||
55 | { 0x06, KEY_2 }, | ||
56 | { 0x07, KEY_3 }, | ||
57 | { 0x09, KEY_4 }, | ||
58 | { 0x0a, KEY_5 }, | ||
59 | { 0x0b, KEY_6 }, | ||
60 | { 0x0d, KEY_7 }, | ||
61 | { 0x0e, KEY_8 }, | ||
62 | { 0x0f, KEY_9 }, | ||
63 | |||
64 | { 0x2a, KEY_VOLUMEUP }, | ||
65 | { 0x11, KEY_VOLUMEDOWN }, | ||
66 | { 0x18, KEY_CHANNELUP },/* CH.tracking up */ | ||
67 | { 0x19, KEY_CHANNELDOWN },/* CH.tracking down */ | ||
68 | |||
69 | { 0x13, KEY_ENTER }, /* enter */ | ||
70 | { 0x21, KEY_DOT }, /* . (decimal dot) */ | ||
71 | }; | ||
72 | |||
73 | static struct rc_keymap eztv_map = { | ||
74 | .map = { | ||
75 | .scan = eztv, | ||
76 | .size = ARRAY_SIZE(eztv), | ||
77 | .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ | ||
78 | .name = RC_MAP_EZTV, | ||
79 | } | ||
80 | }; | ||
81 | |||
82 | static int __init init_rc_map_eztv(void) | ||
83 | { | ||
84 | return ir_register_map(&eztv_map); | ||
85 | } | ||
86 | |||
87 | static void __exit exit_rc_map_eztv(void) | ||
88 | { | ||
89 | ir_unregister_map(&eztv_map); | ||
90 | } | ||
91 | |||
92 | module_init(init_rc_map_eztv) | ||
93 | module_exit(exit_rc_map_eztv) | ||
94 | |||
95 | MODULE_LICENSE("GPL"); | ||
96 | MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); | ||