Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 1 | /* winfast-usbii-deluxe.h - Keytable for winfast_usbii_deluxe 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 | /* Leadtek Winfast TV USB II Deluxe remote |
| 17 | Magnus Alm <magnus.alm@gmail.com> |
| 18 | */ |
| 19 | |
Mauro Carvalho Chehab | 2f4f58d | 2010-11-17 15:46:09 -0300 | [diff] [blame] | 20 | static struct rc_map_table winfast_usbii_deluxe[] = { |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 21 | { 0x62, KEY_0}, |
| 22 | { 0x75, KEY_1}, |
| 23 | { 0x76, KEY_2}, |
| 24 | { 0x77, KEY_3}, |
| 25 | { 0x79, KEY_4}, |
| 26 | { 0x7a, KEY_5}, |
| 27 | { 0x7b, KEY_6}, |
| 28 | { 0x7d, KEY_7}, |
| 29 | { 0x7e, KEY_8}, |
| 30 | { 0x7f, KEY_9}, |
| 31 | |
| 32 | { 0x38, KEY_CAMERA}, /* SNAPSHOT */ |
| 33 | { 0x37, KEY_RECORD}, /* RECORD */ |
| 34 | { 0x35, KEY_TIME}, /* TIMESHIFT */ |
| 35 | |
| 36 | { 0x74, KEY_VOLUMEUP}, /* VOLUMEUP */ |
| 37 | { 0x78, KEY_VOLUMEDOWN}, /* VOLUMEDOWN */ |
| 38 | { 0x64, KEY_MUTE}, /* MUTE */ |
| 39 | |
| 40 | { 0x21, KEY_CHANNEL}, /* SURF */ |
| 41 | { 0x7c, KEY_CHANNELUP}, /* CHANNELUP */ |
| 42 | { 0x60, KEY_CHANNELDOWN}, /* CHANNELDOWN */ |
| 43 | { 0x61, KEY_LAST}, /* LAST CHANNEL (RECALL) */ |
| 44 | |
| 45 | { 0x72, KEY_VIDEO}, /* INPUT MODES (TV/FM) */ |
| 46 | |
| 47 | { 0x70, KEY_POWER2}, /* TV ON/OFF */ |
| 48 | |
| 49 | { 0x39, KEY_CYCLEWINDOWS}, /* MINIMIZE (BOSS) */ |
| 50 | { 0x3a, KEY_NEW}, /* PIP */ |
| 51 | { 0x73, KEY_ZOOM}, /* FULLSECREEN */ |
| 52 | |
| 53 | { 0x66, KEY_INFO}, /* OSD (DISPLAY) */ |
| 54 | |
| 55 | { 0x31, KEY_DOT}, /* '.' */ |
| 56 | { 0x63, KEY_ENTER}, /* ENTER */ |
| 57 | |
| 58 | }; |
| 59 | |
Mauro Carvalho Chehab | d100e65 | 2010-11-17 15:56:53 -0300 | [diff] [blame] | 60 | static struct rc_map_list winfast_usbii_deluxe_map = { |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 61 | .map = { |
| 62 | .scan = winfast_usbii_deluxe, |
| 63 | .size = ARRAY_SIZE(winfast_usbii_deluxe), |
Mauro Carvalho Chehab | 52b6614 | 2010-11-17 14:20:52 -0300 | [diff] [blame] | 64 | .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 65 | .name = RC_MAP_WINFAST_USBII_DELUXE, |
| 66 | } |
| 67 | }; |
| 68 | |
| 69 | static int __init init_rc_map_winfast_usbii_deluxe(void) |
| 70 | { |
Mauro Carvalho Chehab | d100e65 | 2010-11-17 15:56:53 -0300 | [diff] [blame] | 71 | return rc_map_register(&winfast_usbii_deluxe_map); |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 72 | } |
| 73 | |
| 74 | static void __exit exit_rc_map_winfast_usbii_deluxe(void) |
| 75 | { |
Mauro Carvalho Chehab | d100e65 | 2010-11-17 15:56:53 -0300 | [diff] [blame] | 76 | rc_map_unregister(&winfast_usbii_deluxe_map); |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 77 | } |
| 78 | |
| 79 | module_init(init_rc_map_winfast_usbii_deluxe) |
| 80 | module_exit(exit_rc_map_winfast_usbii_deluxe) |
| 81 | |
| 82 | MODULE_LICENSE("GPL"); |
Mauro Carvalho Chehab | 37e59f8 | 2014-02-07 08:03:07 -0200 | [diff] [blame] | 83 | MODULE_AUTHOR("Mauro Carvalho Chehab"); |