1688c73c6SMauro Carvalho Chehab // SPDX-License-Identifier: GPL-2.0+ 2688c73c6SMauro Carvalho Chehab // pixelview.h - Keytable for pixelview Remote Controller 3688c73c6SMauro Carvalho Chehab // 4688c73c6SMauro Carvalho Chehab // keymap imported from ir-keymaps.c 5688c73c6SMauro Carvalho Chehab // 6688c73c6SMauro Carvalho Chehab // Copyright (c) 2010 by Mauro 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 pixelview[] = { 1232cf86f6SMauro Carvalho Chehab 1332cf86f6SMauro Carvalho Chehab { 0x1e, KEY_POWER }, /* power */ 146f9e46b4SMauro Carvalho Chehab { 0x07, KEY_VIDEO }, /* source */ 1532cf86f6SMauro Carvalho Chehab { 0x1c, KEY_SEARCH }, /* scan */ 1632cf86f6SMauro Carvalho Chehab 1732cf86f6SMauro Carvalho Chehab 1832cf86f6SMauro Carvalho Chehab { 0x03, KEY_TUNER }, /* TV/FM */ 1932cf86f6SMauro Carvalho Chehab 2032cf86f6SMauro Carvalho Chehab { 0x00, KEY_RECORD }, 2132cf86f6SMauro Carvalho Chehab { 0x08, KEY_STOP }, 2232cf86f6SMauro Carvalho Chehab { 0x11, KEY_PLAY }, 2332cf86f6SMauro Carvalho Chehab 2432cf86f6SMauro Carvalho Chehab { 0x1a, KEY_PLAYPAUSE }, /* freeze */ 2532cf86f6SMauro Carvalho Chehab { 0x19, KEY_ZOOM }, /* zoom */ 2632cf86f6SMauro Carvalho Chehab { 0x0f, KEY_TEXT }, /* min */ 2732cf86f6SMauro Carvalho Chehab 28*1910ea42SBastien Nocera { 0x01, KEY_NUMERIC_1 }, 29*1910ea42SBastien Nocera { 0x0b, KEY_NUMERIC_2 }, 30*1910ea42SBastien Nocera { 0x1b, KEY_NUMERIC_3 }, 31*1910ea42SBastien Nocera { 0x05, KEY_NUMERIC_4 }, 32*1910ea42SBastien Nocera { 0x09, KEY_NUMERIC_5 }, 33*1910ea42SBastien Nocera { 0x15, KEY_NUMERIC_6 }, 34*1910ea42SBastien Nocera { 0x06, KEY_NUMERIC_7 }, 35*1910ea42SBastien Nocera { 0x0a, KEY_NUMERIC_8 }, 36*1910ea42SBastien Nocera { 0x12, KEY_NUMERIC_9 }, 37*1910ea42SBastien Nocera { 0x02, KEY_NUMERIC_0 }, 3832cf86f6SMauro Carvalho Chehab { 0x10, KEY_LAST }, /* +100 */ 3932cf86f6SMauro Carvalho Chehab { 0x13, KEY_LIST }, /* recall */ 4032cf86f6SMauro Carvalho Chehab 4132cf86f6SMauro Carvalho Chehab { 0x1f, KEY_CHANNELUP }, /* chn down */ 4232cf86f6SMauro Carvalho Chehab { 0x17, KEY_CHANNELDOWN }, /* chn up */ 4332cf86f6SMauro Carvalho Chehab { 0x16, KEY_VOLUMEUP }, /* vol down */ 4432cf86f6SMauro Carvalho Chehab { 0x14, KEY_VOLUMEDOWN }, /* vol up */ 4532cf86f6SMauro Carvalho Chehab 4632cf86f6SMauro Carvalho Chehab { 0x04, KEY_KPMINUS }, /* <<< */ 4732cf86f6SMauro Carvalho Chehab { 0x0e, KEY_SETUP }, /* function */ 4832cf86f6SMauro Carvalho Chehab { 0x0c, KEY_KPPLUS }, /* >>> */ 4932cf86f6SMauro Carvalho Chehab 5032cf86f6SMauro Carvalho Chehab { 0x0d, KEY_GOTO }, /* mts */ 5132cf86f6SMauro Carvalho Chehab { 0x1d, KEY_REFRESH }, /* reset */ 5232cf86f6SMauro Carvalho Chehab { 0x18, KEY_MUTE }, /* mute/unmute */ 5332cf86f6SMauro Carvalho Chehab }; 5432cf86f6SMauro Carvalho Chehab 55d100e659SMauro Carvalho Chehab static struct rc_map_list pixelview_map = { 5632cf86f6SMauro Carvalho Chehab .map = { 5732cf86f6SMauro Carvalho Chehab .scan = pixelview, 5832cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(pixelview), 596d741bfeSSean Young .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 6032cf86f6SMauro Carvalho Chehab .name = RC_MAP_PIXELVIEW, 6132cf86f6SMauro Carvalho Chehab } 6232cf86f6SMauro Carvalho Chehab }; 6332cf86f6SMauro Carvalho Chehab 6432cf86f6SMauro Carvalho Chehab static int __init init_rc_map_pixelview(void) 6532cf86f6SMauro Carvalho Chehab { 66d100e659SMauro Carvalho Chehab return rc_map_register(&pixelview_map); 6732cf86f6SMauro Carvalho Chehab } 6832cf86f6SMauro Carvalho Chehab 6932cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_pixelview(void) 7032cf86f6SMauro Carvalho Chehab { 71d100e659SMauro Carvalho Chehab rc_map_unregister(&pixelview_map); 7232cf86f6SMauro Carvalho Chehab } 7332cf86f6SMauro Carvalho Chehab 7432cf86f6SMauro Carvalho Chehab module_init(init_rc_map_pixelview) 7532cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_pixelview) 7632cf86f6SMauro Carvalho Chehab 7732cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 7837e59f87SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab"); 79