Path: blob/master/drivers/media/rc/keymaps/rc-em-terratec.c
15112 views
/* em-terratec.h - Keytable for em_terratec 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>1314static struct rc_map_table em_terratec[] = {15{ 0x01, KEY_CHANNEL },16{ 0x02, KEY_SELECT },17{ 0x03, KEY_MUTE },18{ 0x04, KEY_POWER },19{ 0x05, KEY_1 },20{ 0x06, KEY_2 },21{ 0x07, KEY_3 },22{ 0x08, KEY_CHANNELUP },23{ 0x09, KEY_4 },24{ 0x0a, KEY_5 },25{ 0x0b, KEY_6 },26{ 0x0c, KEY_CHANNELDOWN },27{ 0x0d, KEY_7 },28{ 0x0e, KEY_8 },29{ 0x0f, KEY_9 },30{ 0x10, KEY_VOLUMEUP },31{ 0x11, KEY_0 },32{ 0x12, KEY_MENU },33{ 0x13, KEY_PRINT },34{ 0x14, KEY_VOLUMEDOWN },35{ 0x16, KEY_PAUSE },36{ 0x18, KEY_RECORD },37{ 0x19, KEY_REWIND },38{ 0x1a, KEY_PLAY },39{ 0x1b, KEY_FORWARD },40{ 0x1c, KEY_BACKSPACE },41{ 0x1e, KEY_STOP },42{ 0x40, KEY_ZOOM },43};4445static struct rc_map_list em_terratec_map = {46.map = {47.scan = em_terratec,48.size = ARRAY_SIZE(em_terratec),49.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */50.name = RC_MAP_EM_TERRATEC,51}52};5354static int __init init_rc_map_em_terratec(void)55{56return rc_map_register(&em_terratec_map);57}5859static void __exit exit_rc_map_em_terratec(void)60{61rc_map_unregister(&em_terratec_map);62}6364module_init(init_rc_map_em_terratec)65module_exit(exit_rc_map_em_terratec)6667MODULE_LICENSE("GPL");68MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");697071