Path: blob/master/drivers/media/rc/keymaps/rc-dib0700-nec.c
15112 views
/* rc-dvb0700-big.c - Keytable for devices in dvb07001*2* Copyright (c) 2010 by Mauro Carvalho Chehab <[email protected]>3*4* TODO: This table is a real mess, as it merges RC codes from several5* devices into a big table. It also has both RC-5 and NEC codes inside.6* It should be broken into small tables, and the protocols should properly7* be indentificated.8*9* The table were imported from dib0700_devices.c.10*11* This program is free software; you can redistribute it and/or modify12* it under the terms of the GNU General Public License as published by13* the Free Software Foundation; either version 2 of the License, or14* (at your option) any later version.15*/1617#include <media/rc-map.h>1819static struct rc_map_table dib0700_nec_table[] = {20/* Key codes for the Pixelview SBTVD remote */21{ 0x866b13, KEY_MUTE },22{ 0x866b12, KEY_POWER },23{ 0x866b01, KEY_1 },24{ 0x866b02, KEY_2 },25{ 0x866b03, KEY_3 },26{ 0x866b04, KEY_4 },27{ 0x866b05, KEY_5 },28{ 0x866b06, KEY_6 },29{ 0x866b07, KEY_7 },30{ 0x866b08, KEY_8 },31{ 0x866b09, KEY_9 },32{ 0x866b00, KEY_0 },33{ 0x866b0d, KEY_CHANNELUP },34{ 0x866b19, KEY_CHANNELDOWN },35{ 0x866b10, KEY_VOLUMEUP },36{ 0x866b0c, KEY_VOLUMEDOWN },3738{ 0x866b0a, KEY_CAMERA },39{ 0x866b0b, KEY_ZOOM },40{ 0x866b1b, KEY_BACKSPACE },41{ 0x866b15, KEY_ENTER },4243{ 0x866b1d, KEY_UP },44{ 0x866b1e, KEY_DOWN },45{ 0x866b0e, KEY_LEFT },46{ 0x866b0f, KEY_RIGHT },4748{ 0x866b18, KEY_RECORD },49{ 0x866b1a, KEY_STOP },5051/* Key codes for the EvolutePC TVWay+ remote */52{ 0x7a00, KEY_MENU },53{ 0x7a01, KEY_RECORD },54{ 0x7a02, KEY_PLAY },55{ 0x7a03, KEY_STOP },56{ 0x7a10, KEY_CHANNELUP },57{ 0x7a11, KEY_CHANNELDOWN },58{ 0x7a12, KEY_VOLUMEUP },59{ 0x7a13, KEY_VOLUMEDOWN },60{ 0x7a40, KEY_POWER },61{ 0x7a41, KEY_MUTE },6263/* Key codes for the Elgato EyeTV Diversity silver remote */64{ 0x4501, KEY_POWER },65{ 0x4502, KEY_MUTE },66{ 0x4503, KEY_1 },67{ 0x4504, KEY_2 },68{ 0x4505, KEY_3 },69{ 0x4506, KEY_4 },70{ 0x4507, KEY_5 },71{ 0x4508, KEY_6 },72{ 0x4509, KEY_7 },73{ 0x450a, KEY_8 },74{ 0x450b, KEY_9 },75{ 0x450c, KEY_LAST },76{ 0x450d, KEY_0 },77{ 0x450e, KEY_ENTER },78{ 0x450f, KEY_RED },79{ 0x4510, KEY_CHANNELUP },80{ 0x4511, KEY_GREEN },81{ 0x4512, KEY_VOLUMEDOWN },82{ 0x4513, KEY_OK },83{ 0x4514, KEY_VOLUMEUP },84{ 0x4515, KEY_YELLOW },85{ 0x4516, KEY_CHANNELDOWN },86{ 0x4517, KEY_BLUE },87{ 0x4518, KEY_LEFT }, /* Skip backwards */88{ 0x4519, KEY_PLAYPAUSE },89{ 0x451a, KEY_RIGHT }, /* Skip forward */90{ 0x451b, KEY_REWIND },91{ 0x451c, KEY_L }, /* Live */92{ 0x451d, KEY_FASTFORWARD },93{ 0x451e, KEY_STOP }, /* 'Reveal' for Teletext */94{ 0x451f, KEY_MENU }, /* KEY_TEXT for Teletext */95{ 0x4540, KEY_RECORD }, /* Font 'Size' for Teletext */96{ 0x4541, KEY_SCREEN }, /* Full screen toggle, 'Hold' for Teletext */97{ 0x4542, KEY_SELECT }, /* Select video input, 'Select' for Teletext */98};99100static struct rc_map_list dib0700_nec_map = {101.map = {102.scan = dib0700_nec_table,103.size = ARRAY_SIZE(dib0700_nec_table),104.rc_type = RC_TYPE_NEC,105.name = RC_MAP_DIB0700_NEC_TABLE,106}107};108109static int __init init_rc_map(void)110{111return rc_map_register(&dib0700_nec_map);112}113114static void __exit exit_rc_map(void)115{116rc_map_unregister(&dib0700_nec_map);117}118119module_init(init_rc_map)120module_exit(exit_rc_map)121122MODULE_LICENSE("GPL");123MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");124125126