Mauro Carvalho Chehab | 6686fa6 | 2010-04-02 03:05:46 -0300 | [diff] [blame^] | 1 | /* pinnacle-grey.h - Keytable for pinnacle_grey 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 | static struct ir_scancode pinnacle_grey[] = { |
| 16 | { 0x3a, KEY_0 }, |
| 17 | { 0x31, KEY_1 }, |
| 18 | { 0x32, KEY_2 }, |
| 19 | { 0x33, KEY_3 }, |
| 20 | { 0x34, KEY_4 }, |
| 21 | { 0x35, KEY_5 }, |
| 22 | { 0x36, KEY_6 }, |
| 23 | { 0x37, KEY_7 }, |
| 24 | { 0x38, KEY_8 }, |
| 25 | { 0x39, KEY_9 }, |
| 26 | |
| 27 | { 0x2f, KEY_POWER }, |
| 28 | |
| 29 | { 0x2e, KEY_P }, |
| 30 | { 0x1f, KEY_L }, |
| 31 | { 0x2b, KEY_I }, |
| 32 | |
| 33 | { 0x2d, KEY_SCREEN }, |
| 34 | { 0x1e, KEY_ZOOM }, |
| 35 | { 0x1b, KEY_VOLUMEUP }, |
| 36 | { 0x0f, KEY_VOLUMEDOWN }, |
| 37 | { 0x17, KEY_CHANNELUP }, |
| 38 | { 0x1c, KEY_CHANNELDOWN }, |
| 39 | { 0x25, KEY_INFO }, |
| 40 | |
| 41 | { 0x3c, KEY_MUTE }, |
| 42 | |
| 43 | { 0x3d, KEY_LEFT }, |
| 44 | { 0x3b, KEY_RIGHT }, |
| 45 | |
| 46 | { 0x3f, KEY_UP }, |
| 47 | { 0x3e, KEY_DOWN }, |
| 48 | { 0x1a, KEY_ENTER }, |
| 49 | |
| 50 | { 0x1d, KEY_MENU }, |
| 51 | { 0x19, KEY_AGAIN }, |
| 52 | { 0x16, KEY_PREVIOUSSONG }, |
| 53 | { 0x13, KEY_NEXTSONG }, |
| 54 | { 0x15, KEY_PAUSE }, |
| 55 | { 0x0e, KEY_REWIND }, |
| 56 | { 0x0d, KEY_PLAY }, |
| 57 | { 0x0b, KEY_STOP }, |
| 58 | { 0x07, KEY_FORWARD }, |
| 59 | { 0x27, KEY_RECORD }, |
| 60 | { 0x26, KEY_TUNER }, |
| 61 | { 0x29, KEY_TEXT }, |
| 62 | { 0x2a, KEY_MEDIA }, |
| 63 | { 0x18, KEY_EPG }, |
| 64 | }; |
| 65 | |
| 66 | static struct rc_keymap pinnacle_grey_map = { |
| 67 | .map = { |
| 68 | .scan = pinnacle_grey, |
| 69 | .size = ARRAY_SIZE(pinnacle_grey), |
| 70 | .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */ |
| 71 | .name = RC_MAP_PINNACLE_GREY, |
| 72 | } |
| 73 | }; |
| 74 | |
| 75 | static int __init init_rc_map_pinnacle_grey(void) |
| 76 | { |
| 77 | return ir_register_map(&pinnacle_grey_map); |
| 78 | } |
| 79 | |
| 80 | static void __exit exit_rc_map_pinnacle_grey(void) |
| 81 | { |
| 82 | ir_unregister_map(&pinnacle_grey_map); |
| 83 | } |
| 84 | |
| 85 | module_init(init_rc_map_pinnacle_grey) |
| 86 | module_exit(exit_rc_map_pinnacle_grey) |
| 87 | |
| 88 | MODULE_LICENSE("GPL"); |
| 89 | MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); |