Path: blob/master/drivers/media/rc/keymaps/rc-genius-tvgo-a11mce.c
15157 views
/* genius-tvgo-a11mce.h - Keytable for genius_tvgo_a11mce Remote Controller1*2* keymap imported from ir-keymaps.c3*4* Copyright (c) 2010 by Mauro Carvalho Chehab <[email protected]>5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (at your option) any later version.10*/1112#include <media/rc-map.h>1314/*15* Remote control for the Genius TVGO A11MCE16* Adrian Pardini <[email protected]>17*/1819static struct rc_map_table genius_tvgo_a11mce[] = {20/* Keys 0 to 9 */21{ 0x48, KEY_0 },22{ 0x09, KEY_1 },23{ 0x1d, KEY_2 },24{ 0x1f, KEY_3 },25{ 0x19, KEY_4 },26{ 0x1b, KEY_5 },27{ 0x11, KEY_6 },28{ 0x17, KEY_7 },29{ 0x12, KEY_8 },30{ 0x16, KEY_9 },3132{ 0x54, KEY_RECORD }, /* recording */33{ 0x06, KEY_MUTE }, /* mute */34{ 0x10, KEY_POWER },35{ 0x40, KEY_LAST }, /* recall */36{ 0x4c, KEY_CHANNELUP }, /* channel / program + */37{ 0x00, KEY_CHANNELDOWN }, /* channel / program - */38{ 0x0d, KEY_VOLUMEUP },39{ 0x15, KEY_VOLUMEDOWN },40{ 0x4d, KEY_OK }, /* also labeled as Pause */41{ 0x1c, KEY_ZOOM }, /* full screen and Stop*/42{ 0x02, KEY_MODE }, /* AV Source or Rewind*/43{ 0x04, KEY_LIST }, /* -/-- */44/* small arrows above numbers */45{ 0x1a, KEY_NEXT }, /* also Fast Forward */46{ 0x0e, KEY_PREVIOUS }, /* also Rewind */47/* these are in a rather non standard layout and have48an alternate name written */49{ 0x1e, KEY_UP }, /* Video Setting */50{ 0x0a, KEY_DOWN }, /* Video Default */51{ 0x05, KEY_CAMERA }, /* Snapshot */52{ 0x0c, KEY_RIGHT }, /* Hide Panel */53/* Four buttons without label */54{ 0x49, KEY_RED },55{ 0x0b, KEY_GREEN },56{ 0x13, KEY_YELLOW },57{ 0x50, KEY_BLUE },58};5960static struct rc_map_list genius_tvgo_a11mce_map = {61.map = {62.scan = genius_tvgo_a11mce,63.size = ARRAY_SIZE(genius_tvgo_a11mce),64.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */65.name = RC_MAP_GENIUS_TVGO_A11MCE,66}67};6869static int __init init_rc_map_genius_tvgo_a11mce(void)70{71return rc_map_register(&genius_tvgo_a11mce_map);72}7374static void __exit exit_rc_map_genius_tvgo_a11mce(void)75{76rc_map_unregister(&genius_tvgo_a11mce_map);77}7879module_init(init_rc_map_genius_tvgo_a11mce)80module_exit(exit_rc_map_genius_tvgo_a11mce)8182MODULE_LICENSE("GPL");83MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");848586