Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame] | 1 | /* avermedia-m135a-rm-jx.h - Keytable for avermedia_m135a_rm_jx 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 | /* |
| 16 | * Avermedia M135A with IR model RM-JX |
| 17 | * The same codes exist on both Positivo (BR) and original IR |
| 18 | * Mauro Carvalho Chehab <mchehab@infradead.org> |
| 19 | */ |
| 20 | |
| 21 | static struct ir_scancode avermedia_m135a_rm_jx[] = { |
| 22 | { 0x0200, KEY_POWER2 }, |
| 23 | { 0x022e, KEY_DOT }, /* '.' */ |
| 24 | { 0x0201, KEY_MODE }, /* TV/FM or SOURCE */ |
| 25 | |
| 26 | { 0x0205, KEY_1 }, |
| 27 | { 0x0206, KEY_2 }, |
| 28 | { 0x0207, KEY_3 }, |
| 29 | { 0x0209, KEY_4 }, |
| 30 | { 0x020a, KEY_5 }, |
| 31 | { 0x020b, KEY_6 }, |
| 32 | { 0x020d, KEY_7 }, |
| 33 | { 0x020e, KEY_8 }, |
| 34 | { 0x020f, KEY_9 }, |
| 35 | { 0x0211, KEY_0 }, |
| 36 | |
| 37 | { 0x0213, KEY_RIGHT }, /* -> or L */ |
| 38 | { 0x0212, KEY_LEFT }, /* <- or R */ |
| 39 | |
| 40 | { 0x0217, KEY_SLEEP }, /* Capturar Imagem or Snapshot */ |
| 41 | { 0x0210, KEY_SHUFFLE }, /* Amostra or 16 chan prev */ |
| 42 | |
| 43 | { 0x0303, KEY_CHANNELUP }, |
| 44 | { 0x0302, KEY_CHANNELDOWN }, |
| 45 | { 0x021f, KEY_VOLUMEUP }, |
| 46 | { 0x021e, KEY_VOLUMEDOWN }, |
| 47 | { 0x020c, KEY_ENTER }, /* Full Screen */ |
| 48 | |
| 49 | { 0x0214, KEY_MUTE }, |
| 50 | { 0x0208, KEY_AUDIO }, |
| 51 | |
| 52 | { 0x0203, KEY_TEXT }, /* Teletext */ |
| 53 | { 0x0204, KEY_EPG }, |
| 54 | { 0x022b, KEY_TV2 }, /* TV2 or PIP */ |
| 55 | |
| 56 | { 0x021d, KEY_RED }, |
| 57 | { 0x021c, KEY_YELLOW }, |
| 58 | { 0x0301, KEY_GREEN }, |
| 59 | { 0x0300, KEY_BLUE }, |
| 60 | |
| 61 | { 0x021a, KEY_PLAYPAUSE }, |
| 62 | { 0x0219, KEY_RECORD }, |
| 63 | { 0x0218, KEY_PLAY }, |
| 64 | { 0x021b, KEY_STOP }, |
| 65 | }; |
| 66 | |
| 67 | static struct rc_keymap avermedia_m135a_rm_jx_map = { |
| 68 | .map = { |
| 69 | .scan = avermedia_m135a_rm_jx, |
| 70 | .size = ARRAY_SIZE(avermedia_m135a_rm_jx), |
| 71 | .ir_type = IR_TYPE_NEC, |
| 72 | .name = RC_MAP_AVERMEDIA_M135A_RM_JX, |
| 73 | } |
| 74 | }; |
| 75 | |
| 76 | static int __init init_rc_map_avermedia_m135a_rm_jx(void) |
| 77 | { |
| 78 | return ir_register_map(&avermedia_m135a_rm_jx_map); |
| 79 | } |
| 80 | |
| 81 | static void __exit exit_rc_map_avermedia_m135a_rm_jx(void) |
| 82 | { |
| 83 | ir_unregister_map(&avermedia_m135a_rm_jx_map); |
| 84 | } |
| 85 | |
| 86 | module_init(init_rc_map_avermedia_m135a_rm_jx) |
| 87 | module_exit(exit_rc_map_avermedia_m135a_rm_jx) |
| 88 | |
| 89 | MODULE_LICENSE("GPL"); |
| 90 | MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); |