Path: blob/master/drivers/media/rc/keymaps/rc-dm1105-nec.c
15112 views
/* dm1105-nec.h - Keytable for dm1105_nec 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/* DVBWorld remotes15Igor M. Liplianin <[email protected]>16*/1718static struct rc_map_table dm1105_nec[] = {19{ 0x0a, KEY_POWER2}, /* power */20{ 0x0c, KEY_MUTE}, /* mute */21{ 0x11, KEY_1},22{ 0x12, KEY_2},23{ 0x13, KEY_3},24{ 0x14, KEY_4},25{ 0x15, KEY_5},26{ 0x16, KEY_6},27{ 0x17, KEY_7},28{ 0x18, KEY_8},29{ 0x19, KEY_9},30{ 0x10, KEY_0},31{ 0x1c, KEY_CHANNELUP}, /* ch+ */32{ 0x0f, KEY_CHANNELDOWN}, /* ch- */33{ 0x1a, KEY_VOLUMEUP}, /* vol+ */34{ 0x0e, KEY_VOLUMEDOWN}, /* vol- */35{ 0x04, KEY_RECORD}, /* rec */36{ 0x09, KEY_CHANNEL}, /* fav */37{ 0x08, KEY_BACKSPACE}, /* rewind */38{ 0x07, KEY_FASTFORWARD}, /* fast */39{ 0x0b, KEY_PAUSE}, /* pause */40{ 0x02, KEY_ESC}, /* cancel */41{ 0x03, KEY_TAB}, /* tab */42{ 0x00, KEY_UP}, /* up */43{ 0x1f, KEY_ENTER}, /* ok */44{ 0x01, KEY_DOWN}, /* down */45{ 0x05, KEY_RECORD}, /* cap */46{ 0x06, KEY_STOP}, /* stop */47{ 0x40, KEY_ZOOM}, /* full */48{ 0x1e, KEY_TV}, /* tvmode */49{ 0x1b, KEY_B}, /* recall */50};5152static struct rc_map_list dm1105_nec_map = {53.map = {54.scan = dm1105_nec,55.size = ARRAY_SIZE(dm1105_nec),56.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */57.name = RC_MAP_DM1105_NEC,58}59};6061static int __init init_rc_map_dm1105_nec(void)62{63return rc_map_register(&dm1105_nec_map);64}6566static void __exit exit_rc_map_dm1105_nec(void)67{68rc_map_unregister(&dm1105_nec_map);69}7071module_init(init_rc_map_dm1105_nec)72module_exit(exit_rc_map_dm1105_nec)7374MODULE_LICENSE("GPL");75MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");767778