blob: 2c647fc2591606195cd9cb21128b4f48b950d191 [file] [log] [blame]
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -03001/* evga-indtube.h - Keytable for evga_indtube Remote Controller
2 *
3 * keymap imported from ir-keymaps.c
4 *
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
6 *
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.
11 */
12
13#include <media/rc-map.h>
Paul Gortmaker7a707b82011-07-03 14:03:12 -040014#include <linux/module.h>
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030015
16/* EVGA inDtube
17 Devin Heitmueller <devin.heitmueller@gmail.com>
18 */
19
Mauro Carvalho Chehab2f4f58d2010-11-17 15:46:09 -030020static struct rc_map_table evga_indtube[] = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030021 { 0x12, KEY_POWER},
22 { 0x02, KEY_MODE}, /* TV */
23 { 0x14, KEY_MUTE},
24 { 0x1a, KEY_CHANNELUP},
25 { 0x16, KEY_TV2}, /* PIP */
26 { 0x1d, KEY_VOLUMEUP},
27 { 0x05, KEY_CHANNELDOWN},
28 { 0x0f, KEY_PLAYPAUSE},
29 { 0x19, KEY_VOLUMEDOWN},
30 { 0x1c, KEY_REWIND},
31 { 0x0d, KEY_RECORD},
32 { 0x18, KEY_FORWARD},
33 { 0x1e, KEY_PREVIOUS},
34 { 0x1b, KEY_STOP},
35 { 0x1f, KEY_NEXT},
36 { 0x13, KEY_CAMERA},
37};
38
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030039static struct rc_map_list evga_indtube_map = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030040 .map = {
41 .scan = evga_indtube,
42 .size = ARRAY_SIZE(evga_indtube),
Mauro Carvalho Chehab52b66142010-11-17 14:20:52 -030043 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030044 .name = RC_MAP_EVGA_INDTUBE,
45 }
46};
47
48static int __init init_rc_map_evga_indtube(void)
49{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030050 return rc_map_register(&evga_indtube_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030051}
52
53static void __exit exit_rc_map_evga_indtube(void)
54{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030055 rc_map_unregister(&evga_indtube_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030056}
57
58module_init(init_rc_map_evga_indtube)
59module_exit(exit_rc_map_evga_indtube)
60
61MODULE_LICENSE("GPL");
62MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");