1 /* dntv-live-dvbt-pro.h - Keytable for dntv_live_dvbt_pro Remote Controller 2 * 3 * keymap imported from ir-keymaps.c 4 * 5 * Copyright (c) 2010 by Mauro Carvalho Chehab 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 #include <linux/module.h> 15 16 /* DigitalNow DNTV Live! DVB-T Pro Remote */ 17 18 static struct rc_map_table dntv_live_dvbt_pro[] = { 19 { 0x16, KEY_POWER }, 20 { 0x5b, KEY_HOME }, 21 22 { 0x55, KEY_TV }, /* live tv */ 23 { 0x58, KEY_TUNER }, /* digital Radio */ 24 { 0x5a, KEY_RADIO }, /* FM radio */ 25 { 0x59, KEY_DVD }, /* dvd menu */ 26 { 0x03, KEY_1 }, 27 { 0x01, KEY_2 }, 28 { 0x06, KEY_3 }, 29 { 0x09, KEY_4 }, 30 { 0x1d, KEY_5 }, 31 { 0x1f, KEY_6 }, 32 { 0x0d, KEY_7 }, 33 { 0x19, KEY_8 }, 34 { 0x1b, KEY_9 }, 35 { 0x0c, KEY_CANCEL }, 36 { 0x15, KEY_0 }, 37 { 0x4a, KEY_CLEAR }, 38 { 0x13, KEY_BACK }, 39 { 0x00, KEY_TAB }, 40 { 0x4b, KEY_UP }, 41 { 0x4e, KEY_LEFT }, 42 { 0x4f, KEY_OK }, 43 { 0x52, KEY_RIGHT }, 44 { 0x51, KEY_DOWN }, 45 { 0x1e, KEY_VOLUMEUP }, 46 { 0x0a, KEY_VOLUMEDOWN }, 47 { 0x02, KEY_CHANNELDOWN }, 48 { 0x05, KEY_CHANNELUP }, 49 { 0x11, KEY_RECORD }, 50 { 0x14, KEY_PLAY }, 51 { 0x4c, KEY_PAUSE }, 52 { 0x1a, KEY_STOP }, 53 { 0x40, KEY_REWIND }, 54 { 0x12, KEY_FASTFORWARD }, 55 { 0x41, KEY_PREVIOUSSONG }, /* replay |< */ 56 { 0x42, KEY_NEXTSONG }, /* skip >| */ 57 { 0x54, KEY_CAMERA }, /* capture */ 58 { 0x50, KEY_LANGUAGE }, /* sap */ 59 { 0x47, KEY_TV2 }, /* pip */ 60 { 0x4d, KEY_SCREEN }, 61 { 0x43, KEY_SUBTITLE }, 62 { 0x10, KEY_MUTE }, 63 { 0x49, KEY_AUDIO }, /* l/r */ 64 { 0x07, KEY_SLEEP }, 65 { 0x08, KEY_VIDEO }, /* a/v */ 66 { 0x0e, KEY_PREVIOUS }, /* recall */ 67 { 0x45, KEY_ZOOM }, /* zoom + */ 68 { 0x46, KEY_ANGLE }, /* zoom - */ 69 { 0x56, KEY_RED }, 70 { 0x57, KEY_GREEN }, 71 { 0x5c, KEY_YELLOW }, 72 { 0x5d, KEY_BLUE }, 73 }; 74 75 static struct rc_map_list dntv_live_dvbt_pro_map = { 76 .map = { 77 .scan = dntv_live_dvbt_pro, 78 .size = ARRAY_SIZE(dntv_live_dvbt_pro), 79 .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 80 .name = RC_MAP_DNTV_LIVE_DVBT_PRO, 81 } 82 }; 83 84 static int __init init_rc_map_dntv_live_dvbt_pro(void) 85 { 86 return rc_map_register(&dntv_live_dvbt_pro_map); 87 } 88 89 static void __exit exit_rc_map_dntv_live_dvbt_pro(void) 90 { 91 rc_map_unregister(&dntv_live_dvbt_pro_map); 92 } 93 94 module_init(init_rc_map_dntv_live_dvbt_pro) 95 module_exit(exit_rc_map_dntv_live_dvbt_pro) 96 97 MODULE_LICENSE("GPL"); 98 MODULE_AUTHOR("Mauro Carvalho Chehab"); 99