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
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>
16 /* Beholder Intl. Ltd. 2008
17 * Dmitry Belimov d.belimov@google.com
18 * Keytable is used by BeholdTV Columbus
19 * The "ascii-art picture" below (in comments, first row
20 * is the keycode in hex, and subsequent row(s) shows
21 * the button labels (several variants when appropriate)
22 * helps to descide which keycodes to assign to the buttons.
25 static struct rc_map_table behold_columbus
[] = {
27 /* 0x13 0x11 0x1C 0x12 *
28 * Mute Source TV/FM Power *
33 { 0x1C, KEY_TUNER
}, /* KEY_TV/KEY_RADIO */
36 /* 0x01 0x02 0x03 0x0D *
39 * 0x04 0x05 0x06 0x19 *
42 * 0x07 0x08 0x09 0x10 *
48 { 0x0D, KEY_SETUP
}, /* Setup key */
52 { 0x19, KEY_CAMERA
}, /* Snapshot key */
58 /* 0x0A 0x00 0x0B 0x0C *
59 * RECALL 0 ChannelUp VolumeUp *
63 { 0x0B, KEY_CHANNELUP
},
64 { 0x0C, KEY_VOLUMEUP
},
66 /* 0x1B 0x1D 0x15 0x18 *
67 * Timeshift Record ChannelDown VolumeDown *
72 { 0x15, KEY_CHANNELDOWN
},
73 { 0x18, KEY_VOLUMEDOWN
},
75 /* 0x0E 0x1E 0x0F 0x1A *
76 * Stop Pause Previouse Next *
81 { 0x0F, KEY_PREVIOUS
},
86 static struct rc_map_list behold_columbus_map
= {
88 .scan
= behold_columbus
,
89 .size
= ARRAY_SIZE(behold_columbus
),
90 .rc_type
= RC_TYPE_UNKNOWN
, /* Legacy IR type */
91 .name
= RC_MAP_BEHOLD_COLUMBUS
,
95 static int __init
init_rc_map_behold_columbus(void)
97 return rc_map_register(&behold_columbus_map
);
100 static void __exit
exit_rc_map_behold_columbus(void)
102 rc_map_unregister(&behold_columbus_map
);
105 module_init(init_rc_map_behold_columbus
)
106 module_exit(exit_rc_map_behold_columbus
)
108 MODULE_LICENSE("GPL");
109 MODULE_AUTHOR("Mauro Carvalho Chehab");