116216333SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-or-later 232cf86f6SMauro Carvalho Chehab /* 332cf86f6SMauro Carvalho Chehab * Anysee remote controller keytable 432cf86f6SMauro Carvalho Chehab * 532cf86f6SMauro Carvalho Chehab * Copyright (C) 2010 Antti Palosaari <crope@iki.fi> 632cf86f6SMauro Carvalho Chehab */ 732cf86f6SMauro Carvalho Chehab 832cf86f6SMauro Carvalho Chehab #include <media/rc-map.h> 97a707b89SPaul Gortmaker #include <linux/module.h> 1032cf86f6SMauro Carvalho Chehab 112f4f58d6SMauro Carvalho Chehab static struct rc_map_table anysee[] = { 121910ea42SBastien Nocera { 0x0800, KEY_NUMERIC_0 }, 131910ea42SBastien Nocera { 0x0801, KEY_NUMERIC_1 }, 141910ea42SBastien Nocera { 0x0802, KEY_NUMERIC_2 }, 151910ea42SBastien Nocera { 0x0803, KEY_NUMERIC_3 }, 161910ea42SBastien Nocera { 0x0804, KEY_NUMERIC_4 }, 171910ea42SBastien Nocera { 0x0805, KEY_NUMERIC_5 }, 181910ea42SBastien Nocera { 0x0806, KEY_NUMERIC_6 }, 191910ea42SBastien Nocera { 0x0807, KEY_NUMERIC_7 }, 201910ea42SBastien Nocera { 0x0808, KEY_NUMERIC_8 }, 211910ea42SBastien Nocera { 0x0809, KEY_NUMERIC_9 }, 2232cf86f6SMauro Carvalho Chehab { 0x080a, KEY_POWER2 }, /* [red power button] */ 2332cf86f6SMauro Carvalho Chehab { 0x080b, KEY_VIDEO }, /* [*] MODE */ 2432cf86f6SMauro Carvalho Chehab { 0x080c, KEY_CHANNEL }, /* [symbol counterclockwise arrow] */ 2532cf86f6SMauro Carvalho Chehab { 0x080d, KEY_NEXT }, /* [>>|] */ 2632cf86f6SMauro Carvalho Chehab { 0x080e, KEY_MENU }, /* MENU */ 2732cf86f6SMauro Carvalho Chehab { 0x080f, KEY_EPG }, /* [EPG] */ 2832cf86f6SMauro Carvalho Chehab { 0x0810, KEY_CLEAR }, /* EXIT */ 2932cf86f6SMauro Carvalho Chehab { 0x0811, KEY_CHANNELUP }, 3032cf86f6SMauro Carvalho Chehab { 0x0812, KEY_VOLUMEDOWN }, 3132cf86f6SMauro Carvalho Chehab { 0x0813, KEY_VOLUMEUP }, 3232cf86f6SMauro Carvalho Chehab { 0x0814, KEY_CHANNELDOWN }, 3332cf86f6SMauro Carvalho Chehab { 0x0815, KEY_OK }, 3432cf86f6SMauro Carvalho Chehab { 0x0816, KEY_RADIO }, /* [symbol TV/radio] */ 3532cf86f6SMauro Carvalho Chehab { 0x0817, KEY_INFO }, /* [i] */ 3632cf86f6SMauro Carvalho Chehab { 0x0818, KEY_PREVIOUS }, /* [|<<] */ 3732cf86f6SMauro Carvalho Chehab { 0x0819, KEY_FAVORITES }, /* FAV. */ 3832cf86f6SMauro Carvalho Chehab { 0x081a, KEY_SUBTITLE }, /* Subtitle */ 3932cf86f6SMauro Carvalho Chehab { 0x081b, KEY_CAMERA }, /* [symbol camera] */ 4032cf86f6SMauro Carvalho Chehab { 0x081c, KEY_YELLOW }, 4132cf86f6SMauro Carvalho Chehab { 0x081d, KEY_RED }, 4232cf86f6SMauro Carvalho Chehab { 0x081e, KEY_LANGUAGE }, /* [symbol Second Audio Program] */ 4332cf86f6SMauro Carvalho Chehab { 0x081f, KEY_GREEN }, 4432cf86f6SMauro Carvalho Chehab { 0x0820, KEY_SLEEP }, /* Sleep */ 4532cf86f6SMauro Carvalho Chehab { 0x0821, KEY_SCREEN }, /* 16:9 / 4:3 */ 4632cf86f6SMauro Carvalho Chehab { 0x0822, KEY_ZOOM }, /* SIZE */ 4732cf86f6SMauro Carvalho Chehab { 0x0824, KEY_FN }, /* [F1] */ 4832cf86f6SMauro Carvalho Chehab { 0x0825, KEY_FN }, /* [F2] */ 4932cf86f6SMauro Carvalho Chehab { 0x0842, KEY_MUTE }, /* symbol mute */ 5032cf86f6SMauro Carvalho Chehab { 0x0844, KEY_BLUE }, 5132cf86f6SMauro Carvalho Chehab { 0x0847, KEY_TEXT }, /* TEXT */ 5232cf86f6SMauro Carvalho Chehab { 0x0848, KEY_STOP }, 5332cf86f6SMauro Carvalho Chehab { 0x0849, KEY_RECORD }, 5432cf86f6SMauro Carvalho Chehab { 0x0850, KEY_PLAY }, 5532cf86f6SMauro Carvalho Chehab { 0x0851, KEY_PAUSE }, 5632cf86f6SMauro Carvalho Chehab }; 5732cf86f6SMauro Carvalho Chehab 58d100e659SMauro Carvalho Chehab static struct rc_map_list anysee_map = { 5932cf86f6SMauro Carvalho Chehab .map = { 6032cf86f6SMauro Carvalho Chehab .scan = anysee, 6132cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(anysee), 626d741bfeSSean Young .rc_proto = RC_PROTO_NEC, 6332cf86f6SMauro Carvalho Chehab .name = RC_MAP_ANYSEE, 6432cf86f6SMauro Carvalho Chehab } 6532cf86f6SMauro Carvalho Chehab }; 6632cf86f6SMauro Carvalho Chehab 6732cf86f6SMauro Carvalho Chehab static int __init init_rc_map_anysee(void) 6832cf86f6SMauro Carvalho Chehab { 69d100e659SMauro Carvalho Chehab return rc_map_register(&anysee_map); 7032cf86f6SMauro Carvalho Chehab } 7132cf86f6SMauro Carvalho Chehab 7232cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_anysee(void) 7332cf86f6SMauro Carvalho Chehab { 74d100e659SMauro Carvalho Chehab rc_map_unregister(&anysee_map); 7532cf86f6SMauro Carvalho Chehab } 7632cf86f6SMauro Carvalho Chehab 7732cf86f6SMauro Carvalho Chehab module_init(init_rc_map_anysee) 7832cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_anysee) 7932cf86f6SMauro Carvalho Chehab 8032cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 8132cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); 82*462e108bSHans Verkuil MODULE_DESCRIPTION("Anysee remote keytable"); 83