1 /* behold-columbus.h - Keytable for behold_columbus 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 /* Beholder Intl. Ltd. 2008
16 * Dmitry Belimov d.belimov@google.com
17 * Keytable is used by BeholdTV Columbus
18 * The "ascii-art picture" below (in comments, first row
19 * is the keycode in hex, and subsequent row(s) shows
20 * the button labels (several variants when appropriate)
21 * helps to descide which keycodes to assign to the buttons.
24 static struct rc_map_table behold_columbus
[] = {
26 /* 0x13 0x11 0x1C 0x12 *
27 * Mute Source TV/FM Power *
32 { 0x1C, KEY_TUNER
}, /* KEY_TV/KEY_RADIO */
35 /* 0x01 0x02 0x03 0x0D *
38 * 0x04 0x05 0x06 0x19 *
41 * 0x07 0x08 0x09 0x10 *
47 { 0x0D, KEY_SETUP
}, /* Setup key */
51 { 0x19, KEY_CAMERA
}, /* Snapshot key */
57 /* 0x0A 0x00 0x0B 0x0C *
58 * RECALL 0 ChannelUp VolumeUp *
62 { 0x0B, KEY_CHANNELUP
},
63 { 0x0C, KEY_VOLUMEUP
},
65 /* 0x1B 0x1D 0x15 0x18 *
66 * Timeshift Record ChannelDown VolumeDown *
71 { 0x15, KEY_CHANNELDOWN
},
72 { 0x18, KEY_VOLUMEDOWN
},
74 /* 0x0E 0x1E 0x0F 0x1A *
75 * Stop Pause Previouse Next *
80 { 0x0F, KEY_PREVIOUS
},
85 static struct rc_map_list behold_columbus_map
= {
87 .scan
= behold_columbus
,
88 .size
= ARRAY_SIZE(behold_columbus
),
89 .rc_type
= RC_TYPE_UNKNOWN
, /* Legacy IR type */
90 .name
= RC_MAP_BEHOLD_COLUMBUS
,
94 static int __init
init_rc_map_behold_columbus(void)
96 return rc_map_register(&behold_columbus_map
);
99 static void __exit
exit_rc_map_behold_columbus(void)
101 rc_map_unregister(&behold_columbus_map
);
104 module_init(init_rc_map_behold_columbus
)
105 module_exit(exit_rc_map_behold_columbus
)
107 MODULE_LICENSE("GPL");
108 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");