Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6/btrfs-unstable.git] / drivers / media / rc / keymaps / rc-iodata-bctv7e.c
blob34540dfc3df543d4c94baad09f2cfb87f1e35e00
1 /* iodata-bctv7e.h - Keytable for iodata_bctv7e Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
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.
13 #include <media/rc-map.h>
14 #include <linux/module.h>
16 /* IO-DATA BCTV7E Remote */
18 static struct rc_map_table iodata_bctv7e[] = {
19 { 0x40, KEY_TV },
20 { 0x20, KEY_RADIO }, /* FM */
21 { 0x60, KEY_EPG },
22 { 0x00, KEY_POWER },
24 /* Keys 0 to 9 */
25 { 0x44, KEY_0 }, /* 10 */
26 { 0x50, KEY_1 },
27 { 0x30, KEY_2 },
28 { 0x70, KEY_3 },
29 { 0x48, KEY_4 },
30 { 0x28, KEY_5 },
31 { 0x68, KEY_6 },
32 { 0x58, KEY_7 },
33 { 0x38, KEY_8 },
34 { 0x78, KEY_9 },
36 { 0x10, KEY_L }, /* Live */
37 { 0x08, KEY_TIME }, /* Time Shift */
39 { 0x18, KEY_PLAYPAUSE }, /* Play */
41 { 0x24, KEY_ENTER }, /* 11 */
42 { 0x64, KEY_ESC }, /* 12 */
43 { 0x04, KEY_M }, /* Multi */
45 { 0x54, KEY_VIDEO },
46 { 0x34, KEY_CHANNELUP },
47 { 0x74, KEY_VOLUMEUP },
48 { 0x14, KEY_MUTE },
50 { 0x4c, KEY_VCR }, /* SVIDEO */
51 { 0x2c, KEY_CHANNELDOWN },
52 { 0x6c, KEY_VOLUMEDOWN },
53 { 0x0c, KEY_ZOOM },
55 { 0x5c, KEY_PAUSE },
56 { 0x3c, KEY_RED }, /* || (red) */
57 { 0x7c, KEY_RECORD }, /* recording */
58 { 0x1c, KEY_STOP },
60 { 0x41, KEY_REWIND }, /* backward << */
61 { 0x21, KEY_PLAY },
62 { 0x61, KEY_FASTFORWARD }, /* forward >> */
63 { 0x01, KEY_NEXT }, /* skip >| */
66 static struct rc_map_list iodata_bctv7e_map = {
67 .map = {
68 .scan = iodata_bctv7e,
69 .size = ARRAY_SIZE(iodata_bctv7e),
70 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
71 .name = RC_MAP_IODATA_BCTV7E,
75 static int __init init_rc_map_iodata_bctv7e(void)
77 return rc_map_register(&iodata_bctv7e_map);
80 static void __exit exit_rc_map_iodata_bctv7e(void)
82 rc_map_unregister(&iodata_bctv7e_map);
85 module_init(init_rc_map_iodata_bctv7e)
86 module_exit(exit_rc_map_iodata_bctv7e)
88 MODULE_LICENSE("GPL");
89 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");