1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Anysee remote controller keytable 4 * 5 * Copyright (C) 2010 Antti Palosaari <crope@iki.fi> 6 */ 7 8 #include <media/rc-map.h> 9 #include <linux/module.h> 10 11 static struct rc_map_table anysee[] = { 12 { 0x0800, KEY_NUMERIC_0 }, 13 { 0x0801, KEY_NUMERIC_1 }, 14 { 0x0802, KEY_NUMERIC_2 }, 15 { 0x0803, KEY_NUMERIC_3 }, 16 { 0x0804, KEY_NUMERIC_4 }, 17 { 0x0805, KEY_NUMERIC_5 }, 18 { 0x0806, KEY_NUMERIC_6 }, 19 { 0x0807, KEY_NUMERIC_7 }, 20 { 0x0808, KEY_NUMERIC_8 }, 21 { 0x0809, KEY_NUMERIC_9 }, 22 { 0x080a, KEY_POWER2 }, /* [red power button] */ 23 { 0x080b, KEY_VIDEO }, /* [*] MODE */ 24 { 0x080c, KEY_CHANNEL }, /* [symbol counterclockwise arrow] */ 25 { 0x080d, KEY_NEXT }, /* [>>|] */ 26 { 0x080e, KEY_MENU }, /* MENU */ 27 { 0x080f, KEY_EPG }, /* [EPG] */ 28 { 0x0810, KEY_CLEAR }, /* EXIT */ 29 { 0x0811, KEY_CHANNELUP }, 30 { 0x0812, KEY_VOLUMEDOWN }, 31 { 0x0813, KEY_VOLUMEUP }, 32 { 0x0814, KEY_CHANNELDOWN }, 33 { 0x0815, KEY_OK }, 34 { 0x0816, KEY_RADIO }, /* [symbol TV/radio] */ 35 { 0x0817, KEY_INFO }, /* [i] */ 36 { 0x0818, KEY_PREVIOUS }, /* [|<<] */ 37 { 0x0819, KEY_FAVORITES }, /* FAV. */ 38 { 0x081a, KEY_SUBTITLE }, /* Subtitle */ 39 { 0x081b, KEY_CAMERA }, /* [symbol camera] */ 40 { 0x081c, KEY_YELLOW }, 41 { 0x081d, KEY_RED }, 42 { 0x081e, KEY_LANGUAGE }, /* [symbol Second Audio Program] */ 43 { 0x081f, KEY_GREEN }, 44 { 0x0820, KEY_SLEEP }, /* Sleep */ 45 { 0x0821, KEY_SCREEN }, /* 16:9 / 4:3 */ 46 { 0x0822, KEY_ZOOM }, /* SIZE */ 47 { 0x0824, KEY_FN }, /* [F1] */ 48 { 0x0825, KEY_FN }, /* [F2] */ 49 { 0x0842, KEY_MUTE }, /* symbol mute */ 50 { 0x0844, KEY_BLUE }, 51 { 0x0847, KEY_TEXT }, /* TEXT */ 52 { 0x0848, KEY_STOP }, 53 { 0x0849, KEY_RECORD }, 54 { 0x0850, KEY_PLAY }, 55 { 0x0851, KEY_PAUSE }, 56 }; 57 58 static struct rc_map_list anysee_map = { 59 .map = { 60 .scan = anysee, 61 .size = ARRAY_SIZE(anysee), 62 .rc_proto = RC_PROTO_NEC, 63 .name = RC_MAP_ANYSEE, 64 } 65 }; 66 67 static int __init init_rc_map_anysee(void) 68 { 69 return rc_map_register(&anysee_map); 70 } 71 72 static void __exit exit_rc_map_anysee(void) 73 { 74 rc_map_unregister(&anysee_map); 75 } 76 77 module_init(init_rc_map_anysee) 78 module_exit(exit_rc_map_anysee) 79 80 MODULE_LICENSE("GPL"); 81 MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>"); 82