1 /* hauppauge-new.h - Keytable for hauppauge_new 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 /* Hauppauge: the newer, gray remotes (seems there are multiple
16 * slightly different versions), shipped with cx88+ivtv cards.
17 * almost rc5 coding, but some non-standard keys */
19 static struct ir_scancode hauppauge_new
[] = {
32 { 0x0a, KEY_TEXT
}, /* keypad asterisk as well */
33 { 0x0b, KEY_RED
}, /* red button */
36 { 0x0e, KEY_SUBTITLE
}, /* also the # key */
38 { 0x10, KEY_VOLUMEUP
},
39 { 0x11, KEY_VOLUMEDOWN
},
40 { 0x12, KEY_PREVIOUS
}, /* previous channel */
45 { 0x18, KEY_VIDEO
}, /* Videos */
46 { 0x19, KEY_AUDIO
}, /* Music */
47 /* 0x1a: Pictures - presume this means
48 "Multimedia Home Platform" -
49 no "PICTURES" key in input.h
53 { 0x1b, KEY_EPG
}, /* Guide */
55 { 0x1e, KEY_NEXTSONG
}, /* skip >| */
56 { 0x1f, KEY_EXIT
}, /* back/exit */
57 { 0x20, KEY_CHANNELUP
}, /* channel / program + */
58 { 0x21, KEY_CHANNELDOWN
}, /* channel / program - */
59 { 0x22, KEY_CHANNEL
}, /* source (old black remote) */
60 { 0x24, KEY_PREVIOUSSONG
}, /* replay |< */
61 { 0x25, KEY_ENTER
}, /* OK */
62 { 0x26, KEY_SLEEP
}, /* minimize (old black remote) */
63 { 0x29, KEY_BLUE
}, /* blue key */
64 { 0x2e, KEY_GREEN
}, /* green button */
65 { 0x30, KEY_PAUSE
}, /* pause */
66 { 0x32, KEY_REWIND
}, /* backward << */
67 { 0x34, KEY_FASTFORWARD
}, /* forward >> */
70 { 0x37, KEY_RECORD
}, /* recording */
71 { 0x38, KEY_YELLOW
}, /* yellow key */
72 { 0x3b, KEY_SELECT
}, /* top right button */
73 { 0x3c, KEY_ZOOM
}, /* full */
74 { 0x3d, KEY_POWER
}, /* system power (green button) */
77 static struct rc_keymap hauppauge_new_map
= {
79 .scan
= hauppauge_new
,
80 .size
= ARRAY_SIZE(hauppauge_new
),
81 .ir_type
= IR_TYPE_UNKNOWN
, /* Legacy IR type */
82 .name
= RC_MAP_HAUPPAUGE_NEW
,
86 static int __init
init_rc_map_hauppauge_new(void)
88 return ir_register_map(&hauppauge_new_map
);
91 static void __exit
exit_rc_map_hauppauge_new(void)
93 ir_unregister_map(&hauppauge_new_map
);
96 module_init(init_rc_map_hauppauge_new
)
97 module_exit(exit_rc_map_hauppauge_new
)
99 MODULE_LICENSE("GPL");
100 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");