diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-06 21:32:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-06 21:32:12 -0500 |
commit | 9e9bc9736756f25d6c47b4eba0ebf25b20a6f153 (patch) | |
tree | 647240f479c5f23910c3e6194d1c35b6ba54d75e /drivers/media/rc/keymaps/rc-nebula.c | |
parent | 3c0cb7c31c206aaedb967e44b98442bbeb17a6c4 (diff) | |
parent | e3c92215198cb6aa00ad38db2780faa6b72e0a3f (diff) |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (255 commits)
[media] radio-aimslab.c: Fix gcc 4.5+ bug
[media] cx25821: Fix compilation breakage due to BKL dependency
[media] v4l2-compat-ioctl32: fix compile warning
[media] zoran: fix compiler warning
[media] tda18218: fix compile warning
[media] ngene: fix compile warning
[media] DVB: IR support for TechnoTrend CT-3650
[media] cx23885, cimax2.c: Fix case of two CAM insertion irq
[media] ir-nec-decoder: fix repeat key issue
[media] staging: se401 depends on USB
[media] staging: usbvideo/vicam depends on USB
[media] soc_camera: Add the ability to bind regulators to soc_camedra devices
[media] V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV2640 sensor
[media] v4l: soc-camera: switch to .unlocked_ioctl
[media] v4l: ov772x: simplify pointer dereference
[media] ov9640: fix OmniVision OV9640 sensor driver's priv data retrieving
[media] ov9640: use macro to request OmniVision OV9640 sensor private data
[media] ivtv-i2c: Fix two warnings
[media] staging/lirc: Update lirc TODO files
[media] cx88: Remove the obsolete i2c_adapter.id field
...
Diffstat (limited to 'drivers/media/rc/keymaps/rc-nebula.c')
-rw-r--r-- | drivers/media/rc/keymaps/rc-nebula.c | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/drivers/media/rc/keymaps/rc-nebula.c b/drivers/media/rc/keymaps/rc-nebula.c new file mode 100644 index 000000000000..3e6f077eb700 --- /dev/null +++ b/drivers/media/rc/keymaps/rc-nebula.c | |||
@@ -0,0 +1,96 @@ | |||
1 | /* nebula.h - Keytable for nebula 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 | static struct rc_map_table nebula[] = { | ||
16 | { 0x00, KEY_0 }, | ||
17 | { 0x01, KEY_1 }, | ||
18 | { 0x02, KEY_2 }, | ||
19 | { 0x03, KEY_3 }, | ||
20 | { 0x04, KEY_4 }, | ||
21 | { 0x05, KEY_5 }, | ||
22 | { 0x06, KEY_6 }, | ||
23 | { 0x07, KEY_7 }, | ||
24 | { 0x08, KEY_8 }, | ||
25 | { 0x09, KEY_9 }, | ||
26 | { 0x0a, KEY_TV }, | ||
27 | { 0x0b, KEY_AUX }, | ||
28 | { 0x0c, KEY_DVD }, | ||
29 | { 0x0d, KEY_POWER }, | ||
30 | { 0x0e, KEY_MHP }, /* labelled 'Picture' */ | ||
31 | { 0x0f, KEY_AUDIO }, | ||
32 | { 0x10, KEY_INFO }, | ||
33 | { 0x11, KEY_F13 }, /* 16:9 */ | ||
34 | { 0x12, KEY_F14 }, /* 14:9 */ | ||
35 | { 0x13, KEY_EPG }, | ||
36 | { 0x14, KEY_EXIT }, | ||
37 | { 0x15, KEY_MENU }, | ||
38 | { 0x16, KEY_UP }, | ||
39 | { 0x17, KEY_DOWN }, | ||
40 | { 0x18, KEY_LEFT }, | ||
41 | { 0x19, KEY_RIGHT }, | ||
42 | { 0x1a, KEY_ENTER }, | ||
43 | { 0x1b, KEY_CHANNELUP }, | ||
44 | { 0x1c, KEY_CHANNELDOWN }, | ||
45 | { 0x1d, KEY_VOLUMEUP }, | ||
46 | { 0x1e, KEY_VOLUMEDOWN }, | ||
47 | { 0x1f, KEY_RED }, | ||
48 | { 0x20, KEY_GREEN }, | ||
49 | { 0x21, KEY_YELLOW }, | ||
50 | { 0x22, KEY_BLUE }, | ||
51 | { 0x23, KEY_SUBTITLE }, | ||
52 | { 0x24, KEY_F15 }, /* AD */ | ||
53 | { 0x25, KEY_TEXT }, | ||
54 | { 0x26, KEY_MUTE }, | ||
55 | { 0x27, KEY_REWIND }, | ||
56 | { 0x28, KEY_STOP }, | ||
57 | { 0x29, KEY_PLAY }, | ||
58 | { 0x2a, KEY_FASTFORWARD }, | ||
59 | { 0x2b, KEY_F16 }, /* chapter */ | ||
60 | { 0x2c, KEY_PAUSE }, | ||
61 | { 0x2d, KEY_PLAY }, | ||
62 | { 0x2e, KEY_RECORD }, | ||
63 | { 0x2f, KEY_F17 }, /* picture in picture */ | ||
64 | { 0x30, KEY_KPPLUS }, /* zoom in */ | ||
65 | { 0x31, KEY_KPMINUS }, /* zoom out */ | ||
66 | { 0x32, KEY_F18 }, /* capture */ | ||
67 | { 0x33, KEY_F19 }, /* web */ | ||
68 | { 0x34, KEY_EMAIL }, | ||
69 | { 0x35, KEY_PHONE }, | ||
70 | { 0x36, KEY_PC }, | ||
71 | }; | ||
72 | |||
73 | static struct rc_map_list nebula_map = { | ||
74 | .map = { | ||
75 | .scan = nebula, | ||
76 | .size = ARRAY_SIZE(nebula), | ||
77 | .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ | ||
78 | .name = RC_MAP_NEBULA, | ||
79 | } | ||
80 | }; | ||
81 | |||
82 | static int __init init_rc_map_nebula(void) | ||
83 | { | ||
84 | return rc_map_register(&nebula_map); | ||
85 | } | ||
86 | |||
87 | static void __exit exit_rc_map_nebula(void) | ||
88 | { | ||
89 | rc_map_unregister(&nebula_map); | ||
90 | } | ||
91 | |||
92 | module_init(init_rc_map_nebula) | ||
93 | module_exit(exit_rc_map_nebula) | ||
94 | |||
95 | MODULE_LICENSE("GPL"); | ||
96 | MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); | ||