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>
16 * Igor Kuznetsov <igk72@ya.ru>
17 * Andrey J. Melnikov <temnota@kmv.ru>
19 * Keytable is used by BeholdTV 60x series, M6 series at
20 * least, and probably other cards too.
21 * The "ascii-art picture" below (in comments, first row
22 * is the keycode in hex, and subsequent row(s) shows
23 * the button labels (several variants when appropriate)
24 * helps to descide which keycodes to assign to the buttons.
27 static struct ir_scancode behold[] = {
32 { 0x1c, KEY_TUNER }, /* XXX KEY_TV / KEY_RADIO */
76 { 0x0b, KEY_CHANNELUP },
77 { 0x18, KEY_VOLUMEDOWN },
78 { 0x16, KEY_OK }, /* XXX KEY_ENTER */
79 { 0x0c, KEY_VOLUMEUP },
80 { 0x15, KEY_CHANNELDOWN },
89 * RECORD PLAY/PAUSE STOP *
92 *TELETEXT AUDIO SOURCE *
96 { 0x1b, KEY_PLAYPAUSE },
99 { 0x1f, KEY_RED }, /*XXX KEY_AUDIO */
100 { 0x1e, KEY_YELLOW }, /*XXX KEY_SOURCE */
103 * SLEEP PREVIEW DVB *
108 { 0x19, KEY_BLUE }, /* XXX KEY_SAT */
114 { 0x5c, KEY_CAMERA },
118 static struct rc_keymap behold_map = {
121 .size = ARRAY_SIZE(behold),
122 .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */
123 .name = RC_MAP_BEHOLD,
127 static int __init init_rc_map_behold(void)
129 return ir_register_map(&behold_map);
132 static void __exit exit_rc_map_behold(void)
134 ir_unregister_map(&behold_map);
137 module_init(init_rc_map_behold)
138 module_exit(exit_rc_map_behold)
140 MODULE_LICENSE("GPL");
141 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");