132cf86f6SMauro Carvalho Chehab /* avermedia-m733a-rm-k6.h - Keytable for avermedia_m733a_rm_k6 Remote Controller 232cf86f6SMauro Carvalho Chehab * 332cf86f6SMauro Carvalho Chehab * Copyright (c) 2010 by Herton Ronaldo Krzesinski <herton@mandriva.com.br> 432cf86f6SMauro Carvalho Chehab * 532cf86f6SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify 632cf86f6SMauro Carvalho Chehab * it under the terms of the GNU General Public License as published by 732cf86f6SMauro Carvalho Chehab * the Free Software Foundation; either version 2 of the License, or 832cf86f6SMauro Carvalho Chehab * (at your option) any later version. 932cf86f6SMauro Carvalho Chehab */ 1032cf86f6SMauro Carvalho Chehab 1132cf86f6SMauro Carvalho Chehab #include <media/rc-map.h> 127a707b89SPaul Gortmaker #include <linux/module.h> 1332cf86f6SMauro Carvalho Chehab 1432cf86f6SMauro Carvalho Chehab /* 1532cf86f6SMauro Carvalho Chehab * Avermedia M733A with IR model RM-K6 1632cf86f6SMauro Carvalho Chehab * This is the stock remote controller used with Positivo machines with M733A 1732cf86f6SMauro Carvalho Chehab * Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1832cf86f6SMauro Carvalho Chehab */ 1932cf86f6SMauro Carvalho Chehab 202f4f58d6SMauro Carvalho Chehab static struct rc_map_table avermedia_m733a_rm_k6[] = { 2132cf86f6SMauro Carvalho Chehab { 0x0401, KEY_POWER2 }, 2232cf86f6SMauro Carvalho Chehab { 0x0406, KEY_MUTE }, 2332cf86f6SMauro Carvalho Chehab { 0x0408, KEY_MODE }, /* TV/FM */ 2432cf86f6SMauro Carvalho Chehab 2532cf86f6SMauro Carvalho Chehab { 0x0409, KEY_1 }, 2632cf86f6SMauro Carvalho Chehab { 0x040a, KEY_2 }, 2732cf86f6SMauro Carvalho Chehab { 0x040b, KEY_3 }, 2832cf86f6SMauro Carvalho Chehab { 0x040c, KEY_4 }, 2932cf86f6SMauro Carvalho Chehab { 0x040d, KEY_5 }, 3032cf86f6SMauro Carvalho Chehab { 0x040e, KEY_6 }, 3132cf86f6SMauro Carvalho Chehab { 0x040f, KEY_7 }, 3232cf86f6SMauro Carvalho Chehab { 0x0410, KEY_8 }, 3332cf86f6SMauro Carvalho Chehab { 0x0411, KEY_9 }, 3432cf86f6SMauro Carvalho Chehab { 0x044c, KEY_DOT }, /* '.' */ 3532cf86f6SMauro Carvalho Chehab { 0x0412, KEY_0 }, 3632cf86f6SMauro Carvalho Chehab { 0x0407, KEY_REFRESH }, /* Refresh/Reload */ 3732cf86f6SMauro Carvalho Chehab 3832cf86f6SMauro Carvalho Chehab { 0x0413, KEY_AUDIO }, 3932cf86f6SMauro Carvalho Chehab { 0x0440, KEY_SCREEN }, /* Full Screen toggle */ 4032cf86f6SMauro Carvalho Chehab { 0x0441, KEY_HOME }, 4132cf86f6SMauro Carvalho Chehab { 0x0442, KEY_BACK }, 4232cf86f6SMauro Carvalho Chehab { 0x0447, KEY_UP }, 4332cf86f6SMauro Carvalho Chehab { 0x0448, KEY_DOWN }, 4432cf86f6SMauro Carvalho Chehab { 0x0449, KEY_LEFT }, 4532cf86f6SMauro Carvalho Chehab { 0x044a, KEY_RIGHT }, 4632cf86f6SMauro Carvalho Chehab { 0x044b, KEY_OK }, 4732cf86f6SMauro Carvalho Chehab { 0x0404, KEY_VOLUMEUP }, 4832cf86f6SMauro Carvalho Chehab { 0x0405, KEY_VOLUMEDOWN }, 4932cf86f6SMauro Carvalho Chehab { 0x0402, KEY_CHANNELUP }, 5032cf86f6SMauro Carvalho Chehab { 0x0403, KEY_CHANNELDOWN }, 5132cf86f6SMauro Carvalho Chehab 5232cf86f6SMauro Carvalho Chehab { 0x0443, KEY_RED }, 5332cf86f6SMauro Carvalho Chehab { 0x0444, KEY_GREEN }, 5432cf86f6SMauro Carvalho Chehab { 0x0445, KEY_YELLOW }, 5532cf86f6SMauro Carvalho Chehab { 0x0446, KEY_BLUE }, 5632cf86f6SMauro Carvalho Chehab 5732cf86f6SMauro Carvalho Chehab { 0x0414, KEY_TEXT }, 5832cf86f6SMauro Carvalho Chehab { 0x0415, KEY_EPG }, 5932cf86f6SMauro Carvalho Chehab { 0x041a, KEY_TV2 }, /* PIP */ 60444cc20bSMauro Carvalho Chehab { 0x041b, KEY_CAMERA }, /* Snapshot */ 6132cf86f6SMauro Carvalho Chehab 6232cf86f6SMauro Carvalho Chehab { 0x0417, KEY_RECORD }, 6332cf86f6SMauro Carvalho Chehab { 0x0416, KEY_PLAYPAUSE }, 6432cf86f6SMauro Carvalho Chehab { 0x0418, KEY_STOP }, 6532cf86f6SMauro Carvalho Chehab { 0x0419, KEY_PAUSE }, 6632cf86f6SMauro Carvalho Chehab 6732cf86f6SMauro Carvalho Chehab { 0x041f, KEY_PREVIOUS }, 6832cf86f6SMauro Carvalho Chehab { 0x041c, KEY_REWIND }, 6932cf86f6SMauro Carvalho Chehab { 0x041d, KEY_FORWARD }, 7032cf86f6SMauro Carvalho Chehab { 0x041e, KEY_NEXT }, 7132cf86f6SMauro Carvalho Chehab }; 7232cf86f6SMauro Carvalho Chehab 73d100e659SMauro Carvalho Chehab static struct rc_map_list avermedia_m733a_rm_k6_map = { 7432cf86f6SMauro Carvalho Chehab .map = { 7532cf86f6SMauro Carvalho Chehab .scan = avermedia_m733a_rm_k6, 7632cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(avermedia_m733a_rm_k6), 7752b66144SMauro Carvalho Chehab .rc_type = RC_TYPE_NEC, 7832cf86f6SMauro Carvalho Chehab .name = RC_MAP_AVERMEDIA_M733A_RM_K6, 7932cf86f6SMauro Carvalho Chehab } 8032cf86f6SMauro Carvalho Chehab }; 8132cf86f6SMauro Carvalho Chehab 8232cf86f6SMauro Carvalho Chehab static int __init init_rc_map_avermedia_m733a_rm_k6(void) 8332cf86f6SMauro Carvalho Chehab { 84d100e659SMauro Carvalho Chehab return rc_map_register(&avermedia_m733a_rm_k6_map); 8532cf86f6SMauro Carvalho Chehab } 8632cf86f6SMauro Carvalho Chehab 8732cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_avermedia_m733a_rm_k6(void) 8832cf86f6SMauro Carvalho Chehab { 89d100e659SMauro Carvalho Chehab rc_map_unregister(&avermedia_m733a_rm_k6_map); 9032cf86f6SMauro Carvalho Chehab } 9132cf86f6SMauro Carvalho Chehab 9232cf86f6SMauro Carvalho Chehab module_init(init_rc_map_avermedia_m733a_rm_k6) 9332cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_avermedia_m733a_rm_k6) 9432cf86f6SMauro Carvalho Chehab 9532cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 96*37e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab"); 97