1 // SPDX-License-Identifier: GPL-2.0+ 2 // pixelview.h - Keytable for pixelview Remote Controller 3 // 4 // keymap imported from ir-keymaps.c 5 // 6 // Copyright (c) 2010 by Mauro Carvalho Chehab 7 8 #include <media/rc-map.h> 9 #include <linux/module.h> 10 11 static struct rc_map_table pixelview[] = { 12 13 { 0x1e, KEY_POWER }, /* power */ 14 { 0x07, KEY_VIDEO }, /* source */ 15 { 0x1c, KEY_SEARCH }, /* scan */ 16 17 18 { 0x03, KEY_TUNER }, /* TV/FM */ 19 20 { 0x00, KEY_RECORD }, 21 { 0x08, KEY_STOP }, 22 { 0x11, KEY_PLAY }, 23 24 { 0x1a, KEY_PLAYPAUSE }, /* freeze */ 25 { 0x19, KEY_ZOOM }, /* zoom */ 26 { 0x0f, KEY_TEXT }, /* min */ 27 28 { 0x01, KEY_NUMERIC_1 }, 29 { 0x0b, KEY_NUMERIC_2 }, 30 { 0x1b, KEY_NUMERIC_3 }, 31 { 0x05, KEY_NUMERIC_4 }, 32 { 0x09, KEY_NUMERIC_5 }, 33 { 0x15, KEY_NUMERIC_6 }, 34 { 0x06, KEY_NUMERIC_7 }, 35 { 0x0a, KEY_NUMERIC_8 }, 36 { 0x12, KEY_NUMERIC_9 }, 37 { 0x02, KEY_NUMERIC_0 }, 38 { 0x10, KEY_LAST }, /* +100 */ 39 { 0x13, KEY_LIST }, /* recall */ 40 41 { 0x1f, KEY_CHANNELUP }, /* chn down */ 42 { 0x17, KEY_CHANNELDOWN }, /* chn up */ 43 { 0x16, KEY_VOLUMEUP }, /* vol down */ 44 { 0x14, KEY_VOLUMEDOWN }, /* vol up */ 45 46 { 0x04, KEY_KPMINUS }, /* <<< */ 47 { 0x0e, KEY_SETUP }, /* function */ 48 { 0x0c, KEY_KPPLUS }, /* >>> */ 49 50 { 0x0d, KEY_GOTO }, /* mts */ 51 { 0x1d, KEY_REFRESH }, /* reset */ 52 { 0x18, KEY_MUTE }, /* mute/unmute */ 53 }; 54 55 static struct rc_map_list pixelview_map = { 56 .map = { 57 .scan = pixelview, 58 .size = ARRAY_SIZE(pixelview), 59 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 60 .name = RC_MAP_PIXELVIEW, 61 } 62 }; 63 64 static int __init init_rc_map_pixelview(void) 65 { 66 return rc_map_register(&pixelview_map); 67 } 68 69 static void __exit exit_rc_map_pixelview(void) 70 { 71 rc_map_unregister(&pixelview_map); 72 } 73 74 module_init(init_rc_map_pixelview) 75 module_exit(exit_rc_map_pixelview) 76 77 MODULE_LICENSE("GPL"); 78 MODULE_AUTHOR("Mauro Carvalho Chehab"); 79