Path: blob/master/drivers/media/rc/keymaps/rc-kworld-315u.c
15112 views
/* kworld-315u.h - Keytable for kworld_315u 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/* Kworld 315U15*/1617static struct rc_map_table kworld_315u[] = {18{ 0x6143, KEY_POWER },19{ 0x6101, KEY_VIDEO }, /* source */20{ 0x610b, KEY_ZOOM },21{ 0x6103, KEY_POWER2 }, /* shutdown */2223{ 0x6104, KEY_1 },24{ 0x6108, KEY_2 },25{ 0x6102, KEY_3 },26{ 0x6109, KEY_CHANNELUP },2728{ 0x610f, KEY_4 },29{ 0x6105, KEY_5 },30{ 0x6106, KEY_6 },31{ 0x6107, KEY_CHANNELDOWN },3233{ 0x610c, KEY_7 },34{ 0x610d, KEY_8 },35{ 0x610a, KEY_9 },36{ 0x610e, KEY_VOLUMEUP },3738{ 0x6110, KEY_LAST },39{ 0x6111, KEY_0 },40{ 0x6112, KEY_ENTER },41{ 0x6113, KEY_VOLUMEDOWN },4243{ 0x6114, KEY_RECORD },44{ 0x6115, KEY_STOP },45{ 0x6116, KEY_PLAY },46{ 0x6117, KEY_MUTE },4748{ 0x6118, KEY_UP },49{ 0x6119, KEY_DOWN },50{ 0x611a, KEY_LEFT },51{ 0x611b, KEY_RIGHT },5253{ 0x611c, KEY_RED },54{ 0x611d, KEY_GREEN },55{ 0x611e, KEY_YELLOW },56{ 0x611f, KEY_BLUE },57};5859static struct rc_map_list kworld_315u_map = {60.map = {61.scan = kworld_315u,62.size = ARRAY_SIZE(kworld_315u),63.rc_type = RC_TYPE_NEC,64.name = RC_MAP_KWORLD_315U,65}66};6768static int __init init_rc_map_kworld_315u(void)69{70return rc_map_register(&kworld_315u_map);71}7273static void __exit exit_rc_map_kworld_315u(void)74{75rc_map_unregister(&kworld_315u_map);76}7778module_init(init_rc_map_kworld_315u)79module_exit(exit_rc_map_kworld_315u)8081MODULE_LICENSE("GPL");82MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");838485