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-iodata-bctv7e.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-iodata-bctv7e.c')
-rw-r--r-- | drivers/media/rc/keymaps/rc-iodata-bctv7e.c | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/drivers/media/rc/keymaps/rc-iodata-bctv7e.c b/drivers/media/rc/keymaps/rc-iodata-bctv7e.c new file mode 100644 index 000000000000..1f59e163f75d --- /dev/null +++ b/drivers/media/rc/keymaps/rc-iodata-bctv7e.c | |||
@@ -0,0 +1,88 @@ | |||
1 | /* iodata-bctv7e.h - Keytable for iodata_bctv7e 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 | /* IO-DATA BCTV7E Remote */ | ||
16 | |||
17 | static struct rc_map_table iodata_bctv7e[] = { | ||
18 | { 0x40, KEY_TV }, | ||
19 | { 0x20, KEY_RADIO }, /* FM */ | ||
20 | { 0x60, KEY_EPG }, | ||
21 | { 0x00, KEY_POWER }, | ||
22 | |||
23 | /* Keys 0 to 9 */ | ||
24 | { 0x44, KEY_0 }, /* 10 */ | ||
25 | { 0x50, KEY_1 }, | ||
26 | { 0x30, KEY_2 }, | ||
27 | { 0x70, KEY_3 }, | ||
28 | { 0x48, KEY_4 }, | ||
29 | { 0x28, KEY_5 }, | ||
30 | { 0x68, KEY_6 }, | ||
31 | { 0x58, KEY_7 }, | ||
32 | { 0x38, KEY_8 }, | ||
33 | { 0x78, KEY_9 }, | ||
34 | |||
35 | { 0x10, KEY_L }, /* Live */ | ||
36 | { 0x08, KEY_TIME }, /* Time Shift */ | ||
37 | |||
38 | { 0x18, KEY_PLAYPAUSE }, /* Play */ | ||
39 | |||
40 | { 0x24, KEY_ENTER }, /* 11 */ | ||
41 | { 0x64, KEY_ESC }, /* 12 */ | ||
42 | { 0x04, KEY_M }, /* Multi */ | ||
43 | |||
44 | { 0x54, KEY_VIDEO }, | ||
45 | { 0x34, KEY_CHANNELUP }, | ||
46 | { 0x74, KEY_VOLUMEUP }, | ||
47 | { 0x14, KEY_MUTE }, | ||
48 | |||
49 | { 0x4c, KEY_VCR }, /* SVIDEO */ | ||
50 | { 0x2c, KEY_CHANNELDOWN }, | ||
51 | { 0x6c, KEY_VOLUMEDOWN }, | ||
52 | { 0x0c, KEY_ZOOM }, | ||
53 | |||
54 | { 0x5c, KEY_PAUSE }, | ||
55 | { 0x3c, KEY_RED }, /* || (red) */ | ||
56 | { 0x7c, KEY_RECORD }, /* recording */ | ||
57 | { 0x1c, KEY_STOP }, | ||
58 | |||
59 | { 0x41, KEY_REWIND }, /* backward << */ | ||
60 | { 0x21, KEY_PLAY }, | ||
61 | { 0x61, KEY_FASTFORWARD }, /* forward >> */ | ||
62 | { 0x01, KEY_NEXT }, /* skip >| */ | ||
63 | }; | ||
64 | |||
65 | static struct rc_map_list iodata_bctv7e_map = { | ||
66 | .map = { | ||
67 | .scan = iodata_bctv7e, | ||
68 | .size = ARRAY_SIZE(iodata_bctv7e), | ||
69 | .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ | ||
70 | .name = RC_MAP_IODATA_BCTV7E, | ||
71 | } | ||
72 | }; | ||
73 | |||
74 | static int __init init_rc_map_iodata_bctv7e(void) | ||
75 | { | ||
76 | return rc_map_register(&iodata_bctv7e_map); | ||
77 | } | ||
78 | |||
79 | static void __exit exit_rc_map_iodata_bctv7e(void) | ||
80 | { | ||
81 | rc_map_unregister(&iodata_bctv7e_map); | ||
82 | } | ||
83 | |||
84 | module_init(init_rc_map_iodata_bctv7e) | ||
85 | module_exit(exit_rc_map_iodata_bctv7e) | ||
86 | |||
87 | MODULE_LICENSE("GPL"); | ||
88 | MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); | ||