blob: 9a8752fdcca1f0b3f22398b04887206defc07ed6 [file] [log] [blame]
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -03001/* adstech-dvb-t-pci.h - Keytable for adstech_dvb_t_pci 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>
14
15/* ADS Tech Instant TV DVB-T PCI Remote */
16
Mauro Carvalho Chehab2f4f58d2010-11-17 15:46:09 -030017static struct rc_map_table adstech_dvb_t_pci[] = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030018 /* Keys 0 to 9 */
19 { 0x4d, KEY_0 },
20 { 0x57, KEY_1 },
21 { 0x4f, KEY_2 },
22 { 0x53, KEY_3 },
23 { 0x56, KEY_4 },
24 { 0x4e, KEY_5 },
25 { 0x5e, KEY_6 },
26 { 0x54, KEY_7 },
27 { 0x4c, KEY_8 },
28 { 0x5c, KEY_9 },
29
30 { 0x5b, KEY_POWER },
31 { 0x5f, KEY_MUTE },
32 { 0x55, KEY_GOTO },
33 { 0x5d, KEY_SEARCH },
34 { 0x17, KEY_EPG }, /* Guide */
35 { 0x1f, KEY_MENU },
36 { 0x0f, KEY_UP },
37 { 0x46, KEY_DOWN },
38 { 0x16, KEY_LEFT },
39 { 0x1e, KEY_RIGHT },
40 { 0x0e, KEY_SELECT }, /* Enter */
41 { 0x5a, KEY_INFO },
42 { 0x52, KEY_EXIT },
43 { 0x59, KEY_PREVIOUS },
44 { 0x51, KEY_NEXT },
45 { 0x58, KEY_REWIND },
46 { 0x50, KEY_FORWARD },
47 { 0x44, KEY_PLAYPAUSE },
48 { 0x07, KEY_STOP },
49 { 0x1b, KEY_RECORD },
50 { 0x13, KEY_TUNER }, /* Live */
51 { 0x0a, KEY_A },
52 { 0x12, KEY_B },
Mauro Carvalho Chehabd9e9f412011-01-24 12:18:38 -030053 { 0x03, KEY_RED }, /* 1 */
54 { 0x01, KEY_GREEN }, /* 2 */
55 { 0x00, KEY_YELLOW }, /* 3 */
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030056 { 0x06, KEY_DVD },
57 { 0x48, KEY_AUX }, /* Photo */
58 { 0x40, KEY_VIDEO },
59 { 0x19, KEY_AUDIO }, /* Music */
60 { 0x0b, KEY_CHANNELUP },
61 { 0x08, KEY_CHANNELDOWN },
62 { 0x15, KEY_VOLUMEUP },
63 { 0x1c, KEY_VOLUMEDOWN },
64};
65
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030066static struct rc_map_list adstech_dvb_t_pci_map = {
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030067 .map = {
68 .scan = adstech_dvb_t_pci,
69 .size = ARRAY_SIZE(adstech_dvb_t_pci),
Mauro Carvalho Chehab52b66142010-11-17 14:20:52 -030070 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030071 .name = RC_MAP_ADSTECH_DVB_T_PCI,
72 }
73};
74
75static int __init init_rc_map_adstech_dvb_t_pci(void)
76{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030077 return rc_map_register(&adstech_dvb_t_pci_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030078}
79
80static void __exit exit_rc_map_adstech_dvb_t_pci(void)
81{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030082 rc_map_unregister(&adstech_dvb_t_pci_map);
Mauro Carvalho Chehab6686fa62010-04-02 03:05:46 -030083}
84
85module_init(init_rc_map_adstech_dvb_t_pci)
86module_exit(exit_rc_map_adstech_dvb_t_pci)
87
88MODULE_LICENSE("GPL");
89MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");