blob: ca1b82a2c54f5f6ff65e3510ce321c8edd0bd0da [file] [log] [blame]
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -03001/* norwood.h - Keytable for norwood Remote Controller
2 *
3 * keymap imported from ir-keymaps.c
4 *
Mauro Carvalho Chehab37e59f82014-02-07 08:03:07 -02005 * Copyright (c) 2010 by Mauro Carvalho Chehab
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -03006 *
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>
Paul Gortmaker7a707b82011-07-03 14:03:12 -040014#include <linux/module.h>
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030015
16/* Norwood Micro (non-Pro) TV Tuner
17 By Peter Naulls <peter@chocky.org>
18 Key comments are the functions given in the manual */
19
Mauro Carvalho Chehab2f4f58d2010-11-17 15:46:09 -030020static struct rc_map_table norwood[] = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030021 /* Keys 0 to 9 */
22 { 0x20, KEY_0 },
23 { 0x21, KEY_1 },
24 { 0x22, KEY_2 },
25 { 0x23, KEY_3 },
26 { 0x24, KEY_4 },
27 { 0x25, KEY_5 },
28 { 0x26, KEY_6 },
29 { 0x27, KEY_7 },
30 { 0x28, KEY_8 },
31 { 0x29, KEY_9 },
32
Mauro Carvalho Chehab6f9e46b2011-01-24 12:18:37 -030033 { 0x78, KEY_VIDEO }, /* Video Source */
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030034 { 0x2c, KEY_EXIT }, /* Open/Close software */
35 { 0x2a, KEY_SELECT }, /* 2 Digit Select */
36 { 0x69, KEY_AGAIN }, /* Recall */
37
38 { 0x32, KEY_BRIGHTNESSUP }, /* Brightness increase */
39 { 0x33, KEY_BRIGHTNESSDOWN }, /* Brightness decrease */
40 { 0x6b, KEY_KPPLUS }, /* (not named >>>>>) */
41 { 0x6c, KEY_KPMINUS }, /* (not named <<<<<) */
42
43 { 0x2d, KEY_MUTE }, /* Mute */
44 { 0x30, KEY_VOLUMEUP }, /* Volume up */
45 { 0x31, KEY_VOLUMEDOWN }, /* Volume down */
46 { 0x60, KEY_CHANNELUP }, /* Channel up */
47 { 0x61, KEY_CHANNELDOWN }, /* Channel down */
48
49 { 0x3f, KEY_RECORD }, /* Record */
50 { 0x37, KEY_PLAY }, /* Play */
51 { 0x36, KEY_PAUSE }, /* Pause */
52 { 0x2b, KEY_STOP }, /* Stop */
Lucas De Marchi25985ed2011-03-30 22:57:33 -030053 { 0x67, KEY_FASTFORWARD }, /* Forward */
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030054 { 0x66, KEY_REWIND }, /* Rewind */
55 { 0x3e, KEY_SEARCH }, /* Auto Scan */
56 { 0x2e, KEY_CAMERA }, /* Capture Video */
57 { 0x6d, KEY_MENU }, /* Show/Hide Control */
58 { 0x2f, KEY_ZOOM }, /* Full Screen */
59 { 0x34, KEY_RADIO }, /* FM */
60 { 0x65, KEY_POWER }, /* Computer power */
61};
62
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030063static struct rc_map_list norwood_map = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030064 .map = {
65 .scan = norwood,
66 .size = ARRAY_SIZE(norwood),
Mauro Carvalho Chehab52b66142010-11-17 14:20:52 -030067 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030068 .name = RC_MAP_NORWOOD,
69 }
70};
71
72static int __init init_rc_map_norwood(void)
73{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030074 return rc_map_register(&norwood_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030075}
76
77static void __exit exit_rc_map_norwood(void)
78{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030079 rc_map_unregister(&norwood_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030080}
81
82module_init(init_rc_map_norwood)
83module_exit(exit_rc_map_norwood)
84
85MODULE_LICENSE("GPL");
Mauro Carvalho Chehab37e59f82014-02-07 08:03:07 -020086MODULE_AUTHOR("Mauro Carvalho Chehab");