Path: blob/master/drivers/media/rc/keymaps/rc-kaiomy.c
15112 views
/* kaiomy.h - Keytable for kaiomy Remote Controller1*2* keymap imported from ir-keymaps.c3*4* Copyright (c) 2010 by Mauro Carvalho Chehab <[email protected]>5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (at your option) any later version.10*/1112#include <media/rc-map.h>1314/* Kaiomy TVnPC U215Mauro Carvalho Chehab <[email protected]>16*/1718static struct rc_map_table kaiomy[] = {19{ 0x43, KEY_POWER2},20{ 0x01, KEY_LIST},21{ 0x0b, KEY_ZOOM},22{ 0x03, KEY_POWER},2324{ 0x04, KEY_1},25{ 0x08, KEY_2},26{ 0x02, KEY_3},2728{ 0x0f, KEY_4},29{ 0x05, KEY_5},30{ 0x06, KEY_6},3132{ 0x0c, KEY_7},33{ 0x0d, KEY_8},34{ 0x0a, KEY_9},3536{ 0x11, KEY_0},3738{ 0x09, KEY_CHANNELUP},39{ 0x07, KEY_CHANNELDOWN},4041{ 0x0e, KEY_VOLUMEUP},42{ 0x13, KEY_VOLUMEDOWN},4344{ 0x10, KEY_HOME},45{ 0x12, KEY_ENTER},4647{ 0x14, KEY_RECORD},48{ 0x15, KEY_STOP},49{ 0x16, KEY_PLAY},50{ 0x17, KEY_MUTE},5152{ 0x18, KEY_UP},53{ 0x19, KEY_DOWN},54{ 0x1a, KEY_LEFT},55{ 0x1b, KEY_RIGHT},5657{ 0x1c, KEY_RED},58{ 0x1d, KEY_GREEN},59{ 0x1e, KEY_YELLOW},60{ 0x1f, KEY_BLUE},61};6263static struct rc_map_list kaiomy_map = {64.map = {65.scan = kaiomy,66.size = ARRAY_SIZE(kaiomy),67.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */68.name = RC_MAP_KAIOMY,69}70};7172static int __init init_rc_map_kaiomy(void)73{74return rc_map_register(&kaiomy_map);75}7677static void __exit exit_rc_map_kaiomy(void)78{79rc_map_unregister(&kaiomy_map);80}8182module_init(init_rc_map_kaiomy)83module_exit(exit_rc_map_kaiomy)8485MODULE_LICENSE("GPL");86MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");878889