Path: blob/master/drivers/media/rc/keymaps/rc-gadmei-rm008z.c
15157 views
/* gadmei-rm008z.h - Keytable for gadmei_rm008z 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/* GADMEI UTV330+ RM008Z remote15Shine Liu <[email protected]>16*/1718static struct rc_map_table gadmei_rm008z[] = {19{ 0x14, KEY_POWER2}, /* POWER OFF */20{ 0x0c, KEY_MUTE}, /* MUTE */2122{ 0x18, KEY_TV}, /* TV */23{ 0x0e, KEY_VIDEO}, /* AV */24{ 0x0b, KEY_AUDIO}, /* SV */25{ 0x0f, KEY_RADIO}, /* FM */2627{ 0x00, KEY_1},28{ 0x01, KEY_2},29{ 0x02, KEY_3},30{ 0x03, KEY_4},31{ 0x04, KEY_5},32{ 0x05, KEY_6},33{ 0x06, KEY_7},34{ 0x07, KEY_8},35{ 0x08, KEY_9},36{ 0x09, KEY_0},37{ 0x0a, KEY_INFO}, /* OSD */38{ 0x1c, KEY_BACKSPACE}, /* LAST */3940{ 0x0d, KEY_PLAY}, /* PLAY */41{ 0x1e, KEY_CAMERA}, /* SNAPSHOT */42{ 0x1a, KEY_RECORD}, /* RECORD */43{ 0x17, KEY_STOP}, /* STOP */4445{ 0x1f, KEY_UP}, /* UP */46{ 0x44, KEY_DOWN}, /* DOWN */47{ 0x46, KEY_TAB}, /* BACK */48{ 0x4a, KEY_ZOOM}, /* FULLSECREEN */4950{ 0x10, KEY_VOLUMEUP}, /* VOLUMEUP */51{ 0x11, KEY_VOLUMEDOWN}, /* VOLUMEDOWN */52{ 0x12, KEY_CHANNELUP}, /* CHANNELUP */53{ 0x13, KEY_CHANNELDOWN}, /* CHANNELDOWN */54{ 0x15, KEY_ENTER}, /* OK */55};5657static struct rc_map_list gadmei_rm008z_map = {58.map = {59.scan = gadmei_rm008z,60.size = ARRAY_SIZE(gadmei_rm008z),61.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */62.name = RC_MAP_GADMEI_RM008Z,63}64};6566static int __init init_rc_map_gadmei_rm008z(void)67{68return rc_map_register(&gadmei_rm008z_map);69}7071static void __exit exit_rc_map_gadmei_rm008z(void)72{73rc_map_unregister(&gadmei_rm008z_map);74}7576module_init(init_rc_map_gadmei_rm008z)77module_exit(exit_rc_map_gadmei_rm008z)7879MODULE_LICENSE("GPL");80MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");818283