Path: blob/master/drivers/media/rc/keymaps/rc-gotview7135.c
15112 views
/* gotview7135.h - Keytable for gotview7135 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/* Mike Baikov <[email protected]> */1516static struct rc_map_table gotview7135[] = {1718{ 0x11, KEY_POWER },19{ 0x35, KEY_TV },20{ 0x1b, KEY_0 },21{ 0x29, KEY_1 },22{ 0x19, KEY_2 },23{ 0x39, KEY_3 },24{ 0x1f, KEY_4 },25{ 0x2c, KEY_5 },26{ 0x21, KEY_6 },27{ 0x24, KEY_7 },28{ 0x18, KEY_8 },29{ 0x2b, KEY_9 },30{ 0x3b, KEY_AGAIN }, /* LOOP */31{ 0x06, KEY_AUDIO },32{ 0x31, KEY_PRINT }, /* PREVIEW */33{ 0x3e, KEY_VIDEO },34{ 0x10, KEY_CHANNELUP },35{ 0x20, KEY_CHANNELDOWN },36{ 0x0c, KEY_VOLUMEDOWN },37{ 0x28, KEY_VOLUMEUP },38{ 0x08, KEY_MUTE },39{ 0x26, KEY_SEARCH }, /* SCAN */40{ 0x3f, KEY_CAMERA }, /* SNAPSHOT */41{ 0x12, KEY_RECORD },42{ 0x32, KEY_STOP },43{ 0x3c, KEY_PLAY },44{ 0x1d, KEY_REWIND },45{ 0x2d, KEY_PAUSE },46{ 0x0d, KEY_FORWARD },47{ 0x05, KEY_ZOOM }, /*FULL*/4849{ 0x2a, KEY_F21 }, /* LIVE TIMESHIFT */50{ 0x0e, KEY_F22 }, /* MIN TIMESHIFT */51{ 0x1e, KEY_TIME }, /* TIMESHIFT */52{ 0x38, KEY_F24 }, /* NORMAL TIMESHIFT */53};5455static struct rc_map_list gotview7135_map = {56.map = {57.scan = gotview7135,58.size = ARRAY_SIZE(gotview7135),59.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */60.name = RC_MAP_GOTVIEW7135,61}62};6364static int __init init_rc_map_gotview7135(void)65{66return rc_map_register(&gotview7135_map);67}6869static void __exit exit_rc_map_gotview7135(void)70{71rc_map_unregister(&gotview7135_map);72}7374module_init(init_rc_map_gotview7135)75module_exit(exit_rc_map_gotview7135)7677MODULE_LICENSE("GPL");78MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");798081