1 /* behold.h - Keytable for behold 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>
17 * Igor Kuznetsov <igk72@ya.ru>
18 * Andrey J. Melnikov <temnota@kmv.ru>
20 * Keytable is used by BeholdTV 60x series, M6 series at
21 * least, and probably other cards too.
22 * The "ascii-art picture" below (in comments, first row
23 * is the keycode in hex, and subsequent row(s) shows
24 * the button labels (several variants when appropriate)
25 * helps to descide which keycodes to assign to the buttons.
28 static struct rc_map_table behold
[] = {
33 { 0x6b861c, KEY_TUNER
}, /* XXX KEY_TV / KEY_RADIO */
34 { 0x6b8612, KEY_POWER
},
58 { 0x6b860a, KEY_AGAIN
},
60 { 0x6b8617, KEY_MODE
},
65 { 0x6b8614, KEY_SCREEN
},
66 { 0x6b8610, KEY_ZOOM
},
77 { 0x6b860b, KEY_CHANNELUP
},
78 { 0x6b8618, KEY_VOLUMEDOWN
},
79 { 0x6b8616, KEY_OK
}, /* XXX KEY_ENTER */
80 { 0x6b860c, KEY_VOLUMEUP
},
81 { 0x6b8615, KEY_CHANNELDOWN
},
86 { 0x6b8611, KEY_MUTE
},
87 { 0x6b860d, KEY_INFO
},
90 * RECORD PLAY/PAUSE STOP *
93 *TELETEXT AUDIO SOURCE *
96 { 0x6b860f, KEY_RECORD
},
97 { 0x6b861b, KEY_PLAYPAUSE
},
98 { 0x6b861a, KEY_STOP
},
99 { 0x6b860e, KEY_TEXT
},
100 { 0x6b861f, KEY_RED
}, /*XXX KEY_AUDIO */
101 { 0x6b861e, KEY_VIDEO
},
104 * SLEEP PREVIEW DVB *
107 { 0x6b861d, KEY_SLEEP
},
108 { 0x6b8613, KEY_GREEN
},
109 { 0x6b8619, KEY_BLUE
}, /* XXX KEY_SAT */
114 { 0x6b8658, KEY_SLOW
},
115 { 0x6b865c, KEY_CAMERA
},
119 static struct rc_map_list behold_map
= {
122 .size
= ARRAY_SIZE(behold
),
123 .rc_type
= RC_TYPE_NEC
,
124 .name
= RC_MAP_BEHOLD
,
128 static int __init
init_rc_map_behold(void)
130 return rc_map_register(&behold_map
);
133 static void __exit
exit_rc_map_behold(void)
135 rc_map_unregister(&behold_map
);
138 module_init(init_rc_map_behold
)
139 module_exit(exit_rc_map_behold
)
141 MODULE_LICENSE("GPL");
142 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");