Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 1 | /* adstech-dvb-t-pci.h - Keytable for adstech_dvb_t_pci Remote Controller |
| 2 | * |
| 3 | * keymap imported from ir-keymaps.c |
| 4 | * |
Mauro Carvalho Chehab | 37e59f8 | 2014-02-07 08:03:07 -0200 | [diff] [blame^] | 5 | * Copyright (c) 2010 by Mauro Carvalho Chehab |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 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 Gortmaker | 7a707b8 | 2011-07-03 14:03:12 -0400 | [diff] [blame] | 14 | #include <linux/module.h> |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 15 | |
| 16 | /* ADS Tech Instant TV DVB-T PCI Remote */ |
| 17 | |
Mauro Carvalho Chehab | 2f4f58d | 2010-11-17 15:46:09 -0300 | [diff] [blame] | 18 | static struct rc_map_table adstech_dvb_t_pci[] = { |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 19 | /* Keys 0 to 9 */ |
| 20 | { 0x4d, KEY_0 }, |
| 21 | { 0x57, KEY_1 }, |
| 22 | { 0x4f, KEY_2 }, |
| 23 | { 0x53, KEY_3 }, |
| 24 | { 0x56, KEY_4 }, |
| 25 | { 0x4e, KEY_5 }, |
| 26 | { 0x5e, KEY_6 }, |
| 27 | { 0x54, KEY_7 }, |
| 28 | { 0x4c, KEY_8 }, |
| 29 | { 0x5c, KEY_9 }, |
| 30 | |
| 31 | { 0x5b, KEY_POWER }, |
| 32 | { 0x5f, KEY_MUTE }, |
| 33 | { 0x55, KEY_GOTO }, |
| 34 | { 0x5d, KEY_SEARCH }, |
| 35 | { 0x17, KEY_EPG }, /* Guide */ |
| 36 | { 0x1f, KEY_MENU }, |
| 37 | { 0x0f, KEY_UP }, |
| 38 | { 0x46, KEY_DOWN }, |
| 39 | { 0x16, KEY_LEFT }, |
| 40 | { 0x1e, KEY_RIGHT }, |
| 41 | { 0x0e, KEY_SELECT }, /* Enter */ |
| 42 | { 0x5a, KEY_INFO }, |
| 43 | { 0x52, KEY_EXIT }, |
| 44 | { 0x59, KEY_PREVIOUS }, |
| 45 | { 0x51, KEY_NEXT }, |
| 46 | { 0x58, KEY_REWIND }, |
| 47 | { 0x50, KEY_FORWARD }, |
| 48 | { 0x44, KEY_PLAYPAUSE }, |
| 49 | { 0x07, KEY_STOP }, |
| 50 | { 0x1b, KEY_RECORD }, |
| 51 | { 0x13, KEY_TUNER }, /* Live */ |
| 52 | { 0x0a, KEY_A }, |
| 53 | { 0x12, KEY_B }, |
Mauro Carvalho Chehab | d9e9f41 | 2011-01-24 12:18:38 -0300 | [diff] [blame] | 54 | { 0x03, KEY_RED }, /* 1 */ |
| 55 | { 0x01, KEY_GREEN }, /* 2 */ |
| 56 | { 0x00, KEY_YELLOW }, /* 3 */ |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 57 | { 0x06, KEY_DVD }, |
| 58 | { 0x48, KEY_AUX }, /* Photo */ |
| 59 | { 0x40, KEY_VIDEO }, |
| 60 | { 0x19, KEY_AUDIO }, /* Music */ |
| 61 | { 0x0b, KEY_CHANNELUP }, |
| 62 | { 0x08, KEY_CHANNELDOWN }, |
| 63 | { 0x15, KEY_VOLUMEUP }, |
| 64 | { 0x1c, KEY_VOLUMEDOWN }, |
| 65 | }; |
| 66 | |
Mauro Carvalho Chehab | d100e65 | 2010-11-17 15:56:53 -0300 | [diff] [blame] | 67 | static struct rc_map_list adstech_dvb_t_pci_map = { |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 68 | .map = { |
| 69 | .scan = adstech_dvb_t_pci, |
| 70 | .size = ARRAY_SIZE(adstech_dvb_t_pci), |
Mauro Carvalho Chehab | 52b6614 | 2010-11-17 14:20:52 -0300 | [diff] [blame] | 71 | .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 72 | .name = RC_MAP_ADSTECH_DVB_T_PCI, |
| 73 | } |
| 74 | }; |
| 75 | |
| 76 | static int __init init_rc_map_adstech_dvb_t_pci(void) |
| 77 | { |
Mauro Carvalho Chehab | d100e65 | 2010-11-17 15:56:53 -0300 | [diff] [blame] | 78 | return rc_map_register(&adstech_dvb_t_pci_map); |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | static void __exit exit_rc_map_adstech_dvb_t_pci(void) |
| 82 | { |
Mauro Carvalho Chehab | d100e65 | 2010-11-17 15:56:53 -0300 | [diff] [blame] | 83 | rc_map_unregister(&adstech_dvb_t_pci_map); |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | module_init(init_rc_map_adstech_dvb_t_pci) |
| 87 | module_exit(exit_rc_map_adstech_dvb_t_pci) |
| 88 | |
| 89 | MODULE_LICENSE("GPL"); |
Mauro Carvalho Chehab | 37e59f8 | 2014-02-07 08:03:07 -0200 | [diff] [blame^] | 90 | MODULE_AUTHOR("Mauro Carvalho Chehab"); |