Path: blob/master/drivers/media/rc/keymaps/rc-anysee.c
15112 views
/*1* Anysee remote controller keytable2*3* Copyright (C) 2010 Antti Palosaari <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License along16* with this program; if not, write to the Free Software Foundation, Inc.,17* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.18*/1920#include <media/rc-map.h>2122static struct rc_map_table anysee[] = {23{ 0x0800, KEY_0 },24{ 0x0801, KEY_1 },25{ 0x0802, KEY_2 },26{ 0x0803, KEY_3 },27{ 0x0804, KEY_4 },28{ 0x0805, KEY_5 },29{ 0x0806, KEY_6 },30{ 0x0807, KEY_7 },31{ 0x0808, KEY_8 },32{ 0x0809, KEY_9 },33{ 0x080a, KEY_POWER2 }, /* [red power button] */34{ 0x080b, KEY_VIDEO }, /* [*] MODE */35{ 0x080c, KEY_CHANNEL }, /* [symbol counterclockwise arrow] */36{ 0x080d, KEY_NEXT }, /* [>>|] */37{ 0x080e, KEY_MENU }, /* MENU */38{ 0x080f, KEY_EPG }, /* [EPG] */39{ 0x0810, KEY_CLEAR }, /* EXIT */40{ 0x0811, KEY_CHANNELUP },41{ 0x0812, KEY_VOLUMEDOWN },42{ 0x0813, KEY_VOLUMEUP },43{ 0x0814, KEY_CHANNELDOWN },44{ 0x0815, KEY_OK },45{ 0x0816, KEY_RADIO }, /* [symbol TV/radio] */46{ 0x0817, KEY_INFO }, /* [i] */47{ 0x0818, KEY_PREVIOUS }, /* [|<<] */48{ 0x0819, KEY_FAVORITES }, /* FAV. */49{ 0x081a, KEY_SUBTITLE }, /* Subtitle */50{ 0x081b, KEY_CAMERA }, /* [symbol camera] */51{ 0x081c, KEY_YELLOW },52{ 0x081d, KEY_RED },53{ 0x081e, KEY_LANGUAGE }, /* [symbol Second Audio Program] */54{ 0x081f, KEY_GREEN },55{ 0x0820, KEY_SLEEP }, /* Sleep */56{ 0x0821, KEY_SCREEN }, /* 16:9 / 4:3 */57{ 0x0822, KEY_ZOOM }, /* SIZE */58{ 0x0824, KEY_FN }, /* [F1] */59{ 0x0825, KEY_FN }, /* [F2] */60{ 0x0842, KEY_MUTE }, /* symbol mute */61{ 0x0844, KEY_BLUE },62{ 0x0847, KEY_TEXT }, /* TEXT */63{ 0x0848, KEY_STOP },64{ 0x0849, KEY_RECORD },65{ 0x0850, KEY_PLAY },66{ 0x0851, KEY_PAUSE },67};6869static struct rc_map_list anysee_map = {70.map = {71.scan = anysee,72.size = ARRAY_SIZE(anysee),73.rc_type = RC_TYPE_NEC,74.name = RC_MAP_ANYSEE,75}76};7778static int __init init_rc_map_anysee(void)79{80return rc_map_register(&anysee_map);81}8283static void __exit exit_rc_map_anysee(void)84{85rc_map_unregister(&anysee_map);86}8788module_init(init_rc_map_anysee)89module_exit(exit_rc_map_anysee)9091MODULE_LICENSE("GPL");92MODULE_AUTHOR("Antti Palosaari <[email protected]>");939495