Malcolm Priestley | d2f918b | 2010-09-02 17:29:30 -0300 | [diff] [blame^] | 1 | /* LME2510 remote control |
| 2 | * |
| 3 | * |
| 4 | * Copyright (C) 2010 Malcolm Priestley (tvboxspy@gmail.com) |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | */ |
| 11 | |
| 12 | #include <media/rc-map.h> |
| 13 | |
| 14 | |
| 15 | static struct ir_scancode lme2510_rc[] = { |
| 16 | { 0xba45, KEY_0 }, |
| 17 | { 0xa05f, KEY_1 }, |
| 18 | { 0xaf50, KEY_2 }, |
| 19 | { 0xa25d, KEY_3 }, |
| 20 | { 0xbe41, KEY_4 }, |
| 21 | { 0xf50a, KEY_5 }, |
| 22 | { 0xbd42, KEY_6 }, |
| 23 | { 0xb847, KEY_7 }, |
| 24 | { 0xb649, KEY_8 }, |
| 25 | { 0xfa05, KEY_9 }, |
| 26 | { 0xbc43, KEY_POWER }, |
| 27 | { 0xb946, KEY_SUBTITLE }, |
| 28 | { 0xf906, KEY_PAUSE }, |
| 29 | { 0xfc03, KEY_MEDIA_REPEAT}, |
| 30 | { 0xfd02, KEY_PAUSE }, |
| 31 | { 0xa15e, KEY_VOLUMEUP }, |
| 32 | { 0xa35c, KEY_VOLUMEDOWN }, |
| 33 | { 0xf609, KEY_CHANNELUP }, |
| 34 | { 0xe51a, KEY_CHANNELDOWN }, |
| 35 | { 0xe11e, KEY_PLAY }, |
| 36 | { 0xe41b, KEY_ZOOM }, |
| 37 | { 0xa659, KEY_MUTE }, |
| 38 | { 0xa55a, KEY_TV }, |
| 39 | { 0xe718, KEY_RECORD }, |
| 40 | { 0xf807, KEY_EPG }, |
| 41 | { 0xfe01, KEY_STOP }, |
| 42 | |
| 43 | }; |
| 44 | |
| 45 | static struct rc_keymap lme2510_map = { |
| 46 | .map = { |
| 47 | .scan = lme2510_rc, |
| 48 | .size = ARRAY_SIZE(lme2510_rc), |
| 49 | .ir_type = IR_TYPE_UNKNOWN, |
| 50 | .name = RC_MAP_LME2510, |
| 51 | } |
| 52 | }; |
| 53 | |
| 54 | static int __init init_rc_lme2510_map(void) |
| 55 | { |
| 56 | return ir_register_map(&lme2510_map); |
| 57 | } |
| 58 | |
| 59 | static void __exit exit_rc_lme2510_map(void) |
| 60 | { |
| 61 | ir_unregister_map(&lme2510_map); |
| 62 | } |
| 63 | |
| 64 | module_init(init_rc_lme2510_map) |
| 65 | module_exit(exit_rc_lme2510_map) |
| 66 | |
| 67 | MODULE_LICENSE("GPL"); |
| 68 | MODULE_AUTHOR("Malcolm Priestley tvboxspy@gmail.com"); |