1 /* norwood.h - Keytable for norwood 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>
15 /* Norwood Micro (non-Pro) TV Tuner
16 By Peter Naulls <peter@chocky.org>
17 Key comments are the functions given in the manual */
19 static struct ir_scancode norwood
[] = {
32 { 0x78, KEY_TUNER
}, /* Video Source */
33 { 0x2c, KEY_EXIT
}, /* Open/Close software */
34 { 0x2a, KEY_SELECT
}, /* 2 Digit Select */
35 { 0x69, KEY_AGAIN
}, /* Recall */
37 { 0x32, KEY_BRIGHTNESSUP
}, /* Brightness increase */
38 { 0x33, KEY_BRIGHTNESSDOWN
}, /* Brightness decrease */
39 { 0x6b, KEY_KPPLUS
}, /* (not named >>>>>) */
40 { 0x6c, KEY_KPMINUS
}, /* (not named <<<<<) */
42 { 0x2d, KEY_MUTE
}, /* Mute */
43 { 0x30, KEY_VOLUMEUP
}, /* Volume up */
44 { 0x31, KEY_VOLUMEDOWN
}, /* Volume down */
45 { 0x60, KEY_CHANNELUP
}, /* Channel up */
46 { 0x61, KEY_CHANNELDOWN
}, /* Channel down */
48 { 0x3f, KEY_RECORD
}, /* Record */
49 { 0x37, KEY_PLAY
}, /* Play */
50 { 0x36, KEY_PAUSE
}, /* Pause */
51 { 0x2b, KEY_STOP
}, /* Stop */
52 { 0x67, KEY_FASTFORWARD
}, /* Foward */
53 { 0x66, KEY_REWIND
}, /* Rewind */
54 { 0x3e, KEY_SEARCH
}, /* Auto Scan */
55 { 0x2e, KEY_CAMERA
}, /* Capture Video */
56 { 0x6d, KEY_MENU
}, /* Show/Hide Control */
57 { 0x2f, KEY_ZOOM
}, /* Full Screen */
58 { 0x34, KEY_RADIO
}, /* FM */
59 { 0x65, KEY_POWER
}, /* Computer power */
62 static struct rc_keymap norwood_map
= {
65 .size
= ARRAY_SIZE(norwood
),
66 .ir_type
= IR_TYPE_UNKNOWN
, /* Legacy IR type */
67 .name
= RC_MAP_NORWOOD
,
71 static int __init
init_rc_map_norwood(void)
73 return ir_register_map(&norwood_map
);
76 static void __exit
exit_rc_map_norwood(void)
78 ir_unregister_map(&norwood_map
);
81 module_init(init_rc_map_norwood
)
82 module_exit(exit_rc_map_norwood
)
84 MODULE_LICENSE("GPL");
85 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");