brintos

brintos / linux-shallow public Read only

0
0
Text · 1.6 KiB · bea50c6 Raw
85 lines · c
1// SPDX-License-Identifier: GPL-2.0+2// kaiomy.h - Keytable for kaiomy 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 11/* Kaiomy TVnPC U212   Mauro Carvalho Chehab <mchehab@kernel.org>13 */14 15static struct rc_map_table kaiomy[] = {16	{ 0x43, KEY_POWER2},17	{ 0x01, KEY_LIST},18	{ 0x0b, KEY_ZOOM},19	{ 0x03, KEY_POWER},20 21	{ 0x04, KEY_NUMERIC_1},22	{ 0x08, KEY_NUMERIC_2},23	{ 0x02, KEY_NUMERIC_3},24 25	{ 0x0f, KEY_NUMERIC_4},26	{ 0x05, KEY_NUMERIC_5},27	{ 0x06, KEY_NUMERIC_6},28 29	{ 0x0c, KEY_NUMERIC_7},30	{ 0x0d, KEY_NUMERIC_8},31	{ 0x0a, KEY_NUMERIC_9},32 33	{ 0x11, KEY_NUMERIC_0},34 35	{ 0x09, KEY_CHANNELUP},36	{ 0x07, KEY_CHANNELDOWN},37 38	{ 0x0e, KEY_VOLUMEUP},39	{ 0x13, KEY_VOLUMEDOWN},40 41	{ 0x10, KEY_HOME},42	{ 0x12, KEY_ENTER},43 44	{ 0x14, KEY_RECORD},45	{ 0x15, KEY_STOP},46	{ 0x16, KEY_PLAY},47	{ 0x17, KEY_MUTE},48 49	{ 0x18, KEY_UP},50	{ 0x19, KEY_DOWN},51	{ 0x1a, KEY_LEFT},52	{ 0x1b, KEY_RIGHT},53 54	{ 0x1c, KEY_RED},55	{ 0x1d, KEY_GREEN},56	{ 0x1e, KEY_YELLOW},57	{ 0x1f, KEY_BLUE},58};59 60static struct rc_map_list kaiomy_map = {61	.map = {62		.scan     = kaiomy,63		.size     = ARRAY_SIZE(kaiomy),64		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */65		.name     = RC_MAP_KAIOMY,66	}67};68 69static int __init init_rc_map_kaiomy(void)70{71	return rc_map_register(&kaiomy_map);72}73 74static void __exit exit_rc_map_kaiomy(void)75{76	rc_map_unregister(&kaiomy_map);77}78 79module_init(init_rc_map_kaiomy)80module_exit(exit_rc_map_kaiomy)81 82MODULE_LICENSE("GPL");83MODULE_AUTHOR("Mauro Carvalho Chehab");84MODULE_DESCRIPTION("Kaiomy TVnPC U2 remote controller keytable");85