brintos

brintos / linux-shallow public Read only

0
0
Text · 1.9 KiB · f33c386 Raw
92 lines · c
1// SPDX-License-Identifier: GPL-2.0+2// pinnacle-color.h - Keytable for pinnacle_color Remote Controller3//4// keymap imported from ir-keymaps.c5//6// Copyright (c) 2010 by Mauro Carvalho Chehab7 8#include <media/rc-map.h>9#include <linux/module.h>10 11static struct rc_map_table pinnacle_color[] = {12	{ 0x59, KEY_MUTE },13	{ 0x4a, KEY_POWER },14 15	{ 0x18, KEY_TEXT },16	{ 0x26, KEY_TV },17	{ 0x3d, KEY_PRINT },18 19	{ 0x48, KEY_RED },20	{ 0x04, KEY_GREEN },21	{ 0x11, KEY_YELLOW },22	{ 0x00, KEY_BLUE },23 24	{ 0x2d, KEY_VOLUMEUP },25	{ 0x1e, KEY_VOLUMEDOWN },26 27	{ 0x49, KEY_MENU },28 29	{ 0x16, KEY_CHANNELUP },30	{ 0x17, KEY_CHANNELDOWN },31 32	{ 0x20, KEY_UP },33	{ 0x21, KEY_DOWN },34	{ 0x22, KEY_LEFT },35	{ 0x23, KEY_RIGHT },36	{ 0x0d, KEY_SELECT },37 38	{ 0x08, KEY_BACK },39	{ 0x07, KEY_REFRESH },40 41	{ 0x2f, KEY_ZOOM },42	{ 0x29, KEY_RECORD },43 44	{ 0x4b, KEY_PAUSE },45	{ 0x4d, KEY_REWIND },46	{ 0x2e, KEY_PLAY },47	{ 0x4e, KEY_FORWARD },48	{ 0x53, KEY_PREVIOUS },49	{ 0x4c, KEY_STOP },50	{ 0x54, KEY_NEXT },51 52	{ 0x69, KEY_NUMERIC_0 },53	{ 0x6a, KEY_NUMERIC_1 },54	{ 0x6b, KEY_NUMERIC_2 },55	{ 0x6c, KEY_NUMERIC_3 },56	{ 0x6d, KEY_NUMERIC_4 },57	{ 0x6e, KEY_NUMERIC_5 },58	{ 0x6f, KEY_NUMERIC_6 },59	{ 0x70, KEY_NUMERIC_7 },60	{ 0x71, KEY_NUMERIC_8 },61	{ 0x72, KEY_NUMERIC_9 },62 63	{ 0x74, KEY_CHANNEL },64	{ 0x0a, KEY_BACKSPACE },65};66 67static struct rc_map_list pinnacle_color_map = {68	.map = {69		.scan     = pinnacle_color,70		.size     = ARRAY_SIZE(pinnacle_color),71		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */72		.name     = RC_MAP_PINNACLE_COLOR,73	}74};75 76static int __init init_rc_map_pinnacle_color(void)77{78	return rc_map_register(&pinnacle_color_map);79}80 81static void __exit exit_rc_map_pinnacle_color(void)82{83	rc_map_unregister(&pinnacle_color_map);84}85 86module_init(init_rc_map_pinnacle_color)87module_exit(exit_rc_map_pinnacle_color)88 89MODULE_LICENSE("GPL");90MODULE_AUTHOR("Mauro Carvalho Chehab");91MODULE_DESCRIPTION("pinnacle-color remote controller keytable");92