Path: blob/master/drivers/media/rc/keymaps/rc-apac-viewcomp.c
15112 views
/* apac-viewcomp.h - Keytable for apac_viewcomp 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/* Attila Kondoros <[email protected]> */1516static struct rc_map_table apac_viewcomp[] = {1718{ 0x01, KEY_1 },19{ 0x02, KEY_2 },20{ 0x03, KEY_3 },21{ 0x04, KEY_4 },22{ 0x05, KEY_5 },23{ 0x06, KEY_6 },24{ 0x07, KEY_7 },25{ 0x08, KEY_8 },26{ 0x09, KEY_9 },27{ 0x00, KEY_0 },28{ 0x17, KEY_LAST }, /* +100 */29{ 0x0a, KEY_LIST }, /* recall */303132{ 0x1c, KEY_TUNER }, /* TV/FM */33{ 0x15, KEY_SEARCH }, /* scan */34{ 0x12, KEY_POWER }, /* power */35{ 0x1f, KEY_VOLUMEDOWN }, /* vol up */36{ 0x1b, KEY_VOLUMEUP }, /* vol down */37{ 0x1e, KEY_CHANNELDOWN }, /* chn up */38{ 0x1a, KEY_CHANNELUP }, /* chn down */3940{ 0x11, KEY_VIDEO }, /* video */41{ 0x0f, KEY_ZOOM }, /* full screen */42{ 0x13, KEY_MUTE }, /* mute/unmute */43{ 0x10, KEY_TEXT }, /* min */4445{ 0x0d, KEY_STOP }, /* freeze */46{ 0x0e, KEY_RECORD }, /* record */47{ 0x1d, KEY_PLAYPAUSE }, /* stop */48{ 0x19, KEY_PLAY }, /* play */4950{ 0x16, KEY_GOTO }, /* osd */51{ 0x14, KEY_REFRESH }, /* default */52{ 0x0c, KEY_KPPLUS }, /* fine tune >>>> */53{ 0x18, KEY_KPMINUS }, /* fine tune <<<< */54};5556static struct rc_map_list apac_viewcomp_map = {57.map = {58.scan = apac_viewcomp,59.size = ARRAY_SIZE(apac_viewcomp),60.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */61.name = RC_MAP_APAC_VIEWCOMP,62}63};6465static int __init init_rc_map_apac_viewcomp(void)66{67return rc_map_register(&apac_viewcomp_map);68}6970static void __exit exit_rc_map_apac_viewcomp(void)71{72rc_map_unregister(&apac_viewcomp_map);73}7475module_init(init_rc_map_apac_viewcomp)76module_exit(exit_rc_map_apac_viewcomp)7778MODULE_LICENSE("GPL");79MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");808182