Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 1 | /* kworld-315u.h - Keytable for kworld_315u 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 | /* Kworld 315U |
| 17 | */ |
| 18 | |
Mauro Carvalho Chehab | 2f4f58d | 2010-11-17 15:46:09 -0300 | [diff] [blame] | 19 | static struct rc_map_table kworld_315u[] = { |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 20 | { 0x6143, KEY_POWER }, |
Mauro Carvalho Chehab | 6f9e46b | 2011-01-24 12:18:37 -0300 | [diff] [blame] | 21 | { 0x6101, KEY_VIDEO }, /* source */ |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 22 | { 0x610b, KEY_ZOOM }, |
| 23 | { 0x6103, KEY_POWER2 }, /* shutdown */ |
| 24 | |
| 25 | { 0x6104, KEY_1 }, |
| 26 | { 0x6108, KEY_2 }, |
| 27 | { 0x6102, KEY_3 }, |
| 28 | { 0x6109, KEY_CHANNELUP }, |
| 29 | |
| 30 | { 0x610f, KEY_4 }, |
| 31 | { 0x6105, KEY_5 }, |
| 32 | { 0x6106, KEY_6 }, |
| 33 | { 0x6107, KEY_CHANNELDOWN }, |
| 34 | |
| 35 | { 0x610c, KEY_7 }, |
| 36 | { 0x610d, KEY_8 }, |
| 37 | { 0x610a, KEY_9 }, |
| 38 | { 0x610e, KEY_VOLUMEUP }, |
| 39 | |
| 40 | { 0x6110, KEY_LAST }, |
| 41 | { 0x6111, KEY_0 }, |
| 42 | { 0x6112, KEY_ENTER }, |
| 43 | { 0x6113, KEY_VOLUMEDOWN }, |
| 44 | |
| 45 | { 0x6114, KEY_RECORD }, |
| 46 | { 0x6115, KEY_STOP }, |
| 47 | { 0x6116, KEY_PLAY }, |
| 48 | { 0x6117, KEY_MUTE }, |
| 49 | |
| 50 | { 0x6118, KEY_UP }, |
| 51 | { 0x6119, KEY_DOWN }, |
| 52 | { 0x611a, KEY_LEFT }, |
| 53 | { 0x611b, KEY_RIGHT }, |
| 54 | |
| 55 | { 0x611c, KEY_RED }, |
| 56 | { 0x611d, KEY_GREEN }, |
| 57 | { 0x611e, KEY_YELLOW }, |
| 58 | { 0x611f, KEY_BLUE }, |
| 59 | }; |
| 60 | |
Mauro Carvalho Chehab | d100e65 | 2010-11-17 15:56:53 -0300 | [diff] [blame] | 61 | static struct rc_map_list kworld_315u_map = { |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 62 | .map = { |
| 63 | .scan = kworld_315u, |
| 64 | .size = ARRAY_SIZE(kworld_315u), |
Mauro Carvalho Chehab | 52b6614 | 2010-11-17 14:20:52 -0300 | [diff] [blame] | 65 | .rc_type = RC_TYPE_NEC, |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 66 | .name = RC_MAP_KWORLD_315U, |
| 67 | } |
| 68 | }; |
| 69 | |
| 70 | static int __init init_rc_map_kworld_315u(void) |
| 71 | { |
Mauro Carvalho Chehab | d100e65 | 2010-11-17 15:56:53 -0300 | [diff] [blame] | 72 | return rc_map_register(&kworld_315u_map); |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 73 | } |
| 74 | |
| 75 | static void __exit exit_rc_map_kworld_315u(void) |
| 76 | { |
Mauro Carvalho Chehab | d100e65 | 2010-11-17 15:56:53 -0300 | [diff] [blame] | 77 | rc_map_unregister(&kworld_315u_map); |
Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | module_init(init_rc_map_kworld_315u) |
| 81 | module_exit(exit_rc_map_kworld_315u) |
| 82 | |
| 83 | MODULE_LICENSE("GPL"); |
Mauro Carvalho Chehab | 37e59f8 | 2014-02-07 08:03:07 -0200 | [diff] [blame] | 84 | MODULE_AUTHOR("Mauro Carvalho Chehab"); |