Path: blob/master/drivers/media/rc/keymaps/rc-behold.c
15112 views
/* behold.h - Keytable for behold 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/*15* Igor Kuznetsov <[email protected]>16* Andrey J. Melnikov <[email protected]>17*18* Keytable is used by BeholdTV 60x series, M6 series at19* least, and probably other cards too.20* The "ascii-art picture" below (in comments, first row21* is the keycode in hex, and subsequent row(s) shows22* the button labels (several variants when appropriate)23* helps to descide which keycodes to assign to the buttons.24*/2526static struct rc_map_table behold[] = {2728/* 0x1c 0x12 *29* TV/FM POWER *30* */31{ 0x6b861c, KEY_TUNER }, /* XXX KEY_TV / KEY_RADIO */32{ 0x6b8612, KEY_POWER },3334/* 0x01 0x02 0x03 *35* 1 2 3 *36* *37* 0x04 0x05 0x06 *38* 4 5 6 *39* *40* 0x07 0x08 0x09 *41* 7 8 9 *42* */43{ 0x6b8601, KEY_1 },44{ 0x6b8602, KEY_2 },45{ 0x6b8603, KEY_3 },46{ 0x6b8604, KEY_4 },47{ 0x6b8605, KEY_5 },48{ 0x6b8606, KEY_6 },49{ 0x6b8607, KEY_7 },50{ 0x6b8608, KEY_8 },51{ 0x6b8609, KEY_9 },5253/* 0x0a 0x00 0x17 *54* RECALL 0 MODE *55* */56{ 0x6b860a, KEY_AGAIN },57{ 0x6b8600, KEY_0 },58{ 0x6b8617, KEY_MODE },5960/* 0x14 0x10 *61* ASPECT FULLSCREEN *62* */63{ 0x6b8614, KEY_SCREEN },64{ 0x6b8610, KEY_ZOOM },6566/* 0x0b *67* Up *68* *69* 0x18 0x16 0x0c *70* Left Ok Right *71* *72* 0x015 *73* Down *74* */75{ 0x6b860b, KEY_CHANNELUP },76{ 0x6b8618, KEY_VOLUMEDOWN },77{ 0x6b8616, KEY_OK }, /* XXX KEY_ENTER */78{ 0x6b860c, KEY_VOLUMEUP },79{ 0x6b8615, KEY_CHANNELDOWN },8081/* 0x11 0x0d *82* MUTE INFO *83* */84{ 0x6b8611, KEY_MUTE },85{ 0x6b860d, KEY_INFO },8687/* 0x0f 0x1b 0x1a *88* RECORD PLAY/PAUSE STOP *89* *90* 0x0e 0x1f 0x1e *91*TELETEXT AUDIO SOURCE *92* RED YELLOW *93* */94{ 0x6b860f, KEY_RECORD },95{ 0x6b861b, KEY_PLAYPAUSE },96{ 0x6b861a, KEY_STOP },97{ 0x6b860e, KEY_TEXT },98{ 0x6b861f, KEY_RED }, /*XXX KEY_AUDIO */99{ 0x6b861e, KEY_VIDEO },100101/* 0x1d 0x13 0x19 *102* SLEEP PREVIEW DVB *103* GREEN BLUE *104* */105{ 0x6b861d, KEY_SLEEP },106{ 0x6b8613, KEY_GREEN },107{ 0x6b8619, KEY_BLUE }, /* XXX KEY_SAT */108109/* 0x58 0x5c *110* FREEZE SNAPSHOT *111* */112{ 0x6b8658, KEY_SLOW },113{ 0x6b865c, KEY_CAMERA },114115};116117static struct rc_map_list behold_map = {118.map = {119.scan = behold,120.size = ARRAY_SIZE(behold),121.rc_type = RC_TYPE_NEC,122.name = RC_MAP_BEHOLD,123}124};125126static int __init init_rc_map_behold(void)127{128return rc_map_register(&behold_map);129}130131static void __exit exit_rc_map_behold(void)132{133rc_map_unregister(&behold_map);134}135136module_init(init_rc_map_behold)137module_exit(exit_rc_map_behold)138139MODULE_LICENSE("GPL");140MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");141142143