/* avermedia-dvbt.h - Keytable for avermedia_dvbt Remote Controller * * keymap imported from ir-keymaps.c * * Copyright (c) 2010 by Mauro Carvalho Chehab * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ #include #include /* Matt Jesson >' */ { 0x3a, KEY_RECORD }, /* 'capture' */ { 0x0a, KEY_MUTE }, /* 'mute' */ { 0x2c, KEY_RECORD }, /* 'record' */ { 0x1c, KEY_PAUSE }, /* 'pause' */ { 0x3c, KEY_STOP }, /* 'stop' */ { 0x0c, KEY_PLAY }, /* 'play' */ { 0x2e, KEY_RED }, /* 'red' */ { 0x01, KEY_BLUE }, /* 'blue' / 'cancel' */ { 0x0e, KEY_YELLOW }, /* 'yellow' / 'ok' */ { 0x21, KEY_GREEN }, /* 'green' */ { 0x11, KEY_CHANNELDOWN }, /* 'channel -' */ { 0x31, KEY_CHANNELUP }, /* 'channel +' */ { 0x1e, KEY_VOLUMEDOWN }, /* 'volume -' */ { 0x3e, KEY_VOLUMEUP }, /* 'volume +' */ }; static struct rc_map_list avermedia_dvbt_map = { .map = { .scan = avermedia_dvbt, .size = ARRAY_SIZE(avermedia_dvbt), .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ .name = RC_MAP_AVERMEDIA_DVBT, } }; static int __init init_rc_map_avermedia_dvbt(void) { return rc_map_register(&avermedia_dvbt_map); } static void __exit exit_rc_map_avermedia_dvbt(void) { rc_map_unregister(&avermedia_dvbt_map); } module_init(init_rc_map_avermedia_dvbt) module_exit(exit_rc_map_avermedia_dvbt) MODULE_LICENSE("GPL"); MODULE_AUTHOR("Mauro Carvalho Chehab ");