Path: blob/master/drivers/media/rc/keymaps/rc-cinergy-1400.c
15112 views
/* cinergy-1400.h - Keytable for cinergy_1400 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/* Cinergy 1400 DVB-T */1516static struct rc_map_table cinergy_1400[] = {17{ 0x01, KEY_POWER },18{ 0x02, KEY_1 },19{ 0x03, KEY_2 },20{ 0x04, KEY_3 },21{ 0x05, KEY_4 },22{ 0x06, KEY_5 },23{ 0x07, KEY_6 },24{ 0x08, KEY_7 },25{ 0x09, KEY_8 },26{ 0x0a, KEY_9 },27{ 0x0c, KEY_0 },2829{ 0x0b, KEY_VIDEO },30{ 0x0d, KEY_REFRESH },31{ 0x0e, KEY_SELECT },32{ 0x0f, KEY_EPG },33{ 0x10, KEY_UP },34{ 0x11, KEY_LEFT },35{ 0x12, KEY_OK },36{ 0x13, KEY_RIGHT },37{ 0x14, KEY_DOWN },38{ 0x15, KEY_TEXT },39{ 0x16, KEY_INFO },4041{ 0x17, KEY_RED },42{ 0x18, KEY_GREEN },43{ 0x19, KEY_YELLOW },44{ 0x1a, KEY_BLUE },4546{ 0x1b, KEY_CHANNELUP },47{ 0x1c, KEY_VOLUMEUP },48{ 0x1d, KEY_MUTE },49{ 0x1e, KEY_VOLUMEDOWN },50{ 0x1f, KEY_CHANNELDOWN },5152{ 0x40, KEY_PAUSE },53{ 0x4c, KEY_PLAY },54{ 0x58, KEY_RECORD },55{ 0x54, KEY_PREVIOUS },56{ 0x48, KEY_STOP },57{ 0x5c, KEY_NEXT },58};5960static struct rc_map_list cinergy_1400_map = {61.map = {62.scan = cinergy_1400,63.size = ARRAY_SIZE(cinergy_1400),64.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */65.name = RC_MAP_CINERGY_1400,66}67};6869static int __init init_rc_map_cinergy_1400(void)70{71return rc_map_register(&cinergy_1400_map);72}7374static void __exit exit_rc_map_cinergy_1400(void)75{76rc_map_unregister(&cinergy_1400_map);77}7879module_init(init_rc_map_cinergy_1400)80module_exit(exit_rc_map_cinergy_1400)8182MODULE_LICENSE("GPL");83MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");848586