132cf86f6SMauro Carvalho Chehab /* avertv-303.h - Keytable for avertv_303 Remote Controller 232cf86f6SMauro Carvalho Chehab * 332cf86f6SMauro Carvalho Chehab * keymap imported from ir-keymaps.c 432cf86f6SMauro Carvalho Chehab * 532cf86f6SMauro Carvalho Chehab * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com> 632cf86f6SMauro Carvalho Chehab * 732cf86f6SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify 832cf86f6SMauro Carvalho Chehab * it under the terms of the GNU General Public License as published by 932cf86f6SMauro Carvalho Chehab * the Free Software Foundation; either version 2 of the License, or 1032cf86f6SMauro Carvalho Chehab * (at your option) any later version. 1132cf86f6SMauro Carvalho Chehab */ 1232cf86f6SMauro Carvalho Chehab 1332cf86f6SMauro Carvalho Chehab #include <media/rc-map.h> 1432cf86f6SMauro Carvalho Chehab 1532cf86f6SMauro Carvalho Chehab /* AVERTV STUDIO 303 Remote */ 1632cf86f6SMauro Carvalho Chehab 1732cf86f6SMauro Carvalho Chehab static struct ir_scancode avertv_303[] = { 1832cf86f6SMauro Carvalho Chehab { 0x2a, KEY_1 }, 1932cf86f6SMauro Carvalho Chehab { 0x32, KEY_2 }, 2032cf86f6SMauro Carvalho Chehab { 0x3a, KEY_3 }, 2132cf86f6SMauro Carvalho Chehab { 0x4a, KEY_4 }, 2232cf86f6SMauro Carvalho Chehab { 0x52, KEY_5 }, 2332cf86f6SMauro Carvalho Chehab { 0x5a, KEY_6 }, 2432cf86f6SMauro Carvalho Chehab { 0x6a, KEY_7 }, 2532cf86f6SMauro Carvalho Chehab { 0x72, KEY_8 }, 2632cf86f6SMauro Carvalho Chehab { 0x7a, KEY_9 }, 2732cf86f6SMauro Carvalho Chehab { 0x0e, KEY_0 }, 2832cf86f6SMauro Carvalho Chehab 2932cf86f6SMauro Carvalho Chehab { 0x02, KEY_POWER }, 3032cf86f6SMauro Carvalho Chehab { 0x22, KEY_VIDEO }, 3132cf86f6SMauro Carvalho Chehab { 0x42, KEY_AUDIO }, 3232cf86f6SMauro Carvalho Chehab { 0x62, KEY_ZOOM }, 3332cf86f6SMauro Carvalho Chehab { 0x0a, KEY_TV }, 3432cf86f6SMauro Carvalho Chehab { 0x12, KEY_CD }, 3532cf86f6SMauro Carvalho Chehab { 0x1a, KEY_TEXT }, 3632cf86f6SMauro Carvalho Chehab 3732cf86f6SMauro Carvalho Chehab { 0x16, KEY_SUBTITLE }, 3832cf86f6SMauro Carvalho Chehab { 0x1e, KEY_REWIND }, 3932cf86f6SMauro Carvalho Chehab { 0x06, KEY_PRINT }, 4032cf86f6SMauro Carvalho Chehab 4132cf86f6SMauro Carvalho Chehab { 0x2e, KEY_SEARCH }, 4232cf86f6SMauro Carvalho Chehab { 0x36, KEY_SLEEP }, 4332cf86f6SMauro Carvalho Chehab { 0x3e, KEY_SHUFFLE }, 4432cf86f6SMauro Carvalho Chehab { 0x26, KEY_MUTE }, 4532cf86f6SMauro Carvalho Chehab 4632cf86f6SMauro Carvalho Chehab { 0x4e, KEY_RECORD }, 4732cf86f6SMauro Carvalho Chehab { 0x56, KEY_PAUSE }, 4832cf86f6SMauro Carvalho Chehab { 0x5e, KEY_STOP }, 4932cf86f6SMauro Carvalho Chehab { 0x46, KEY_PLAY }, 5032cf86f6SMauro Carvalho Chehab 5132cf86f6SMauro Carvalho Chehab { 0x6e, KEY_RED }, 5232cf86f6SMauro Carvalho Chehab { 0x0b, KEY_GREEN }, 5332cf86f6SMauro Carvalho Chehab { 0x66, KEY_YELLOW }, 5432cf86f6SMauro Carvalho Chehab { 0x03, KEY_BLUE }, 5532cf86f6SMauro Carvalho Chehab 5632cf86f6SMauro Carvalho Chehab { 0x76, KEY_LEFT }, 5732cf86f6SMauro Carvalho Chehab { 0x7e, KEY_RIGHT }, 5832cf86f6SMauro Carvalho Chehab { 0x13, KEY_DOWN }, 5932cf86f6SMauro Carvalho Chehab { 0x1b, KEY_UP }, 6032cf86f6SMauro Carvalho Chehab }; 6132cf86f6SMauro Carvalho Chehab 6232cf86f6SMauro Carvalho Chehab static struct rc_keymap avertv_303_map = { 6332cf86f6SMauro Carvalho Chehab .map = { 6432cf86f6SMauro Carvalho Chehab .scan = avertv_303, 6532cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(avertv_303), 6652b66144SMauro Carvalho Chehab .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 6732cf86f6SMauro Carvalho Chehab .name = RC_MAP_AVERTV_303, 6832cf86f6SMauro Carvalho Chehab } 6932cf86f6SMauro Carvalho Chehab }; 7032cf86f6SMauro Carvalho Chehab 7132cf86f6SMauro Carvalho Chehab static int __init init_rc_map_avertv_303(void) 7232cf86f6SMauro Carvalho Chehab { 7332cf86f6SMauro Carvalho Chehab return ir_register_map(&avertv_303_map); 7432cf86f6SMauro Carvalho Chehab } 7532cf86f6SMauro Carvalho Chehab 7632cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_avertv_303(void) 7732cf86f6SMauro Carvalho Chehab { 7832cf86f6SMauro Carvalho Chehab ir_unregister_map(&avertv_303_map); 7932cf86f6SMauro Carvalho Chehab } 8032cf86f6SMauro Carvalho Chehab 8132cf86f6SMauro Carvalho Chehab module_init(init_rc_map_avertv_303) 8232cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_avertv_303) 8332cf86f6SMauro Carvalho Chehab 8432cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 8532cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); 86