Path: blob/master/drivers/media/rc/keymaps/rc-iodata-bctv7e.c
15157 views
/* iodata-bctv7e.h - Keytable for iodata_bctv7e 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/* IO-DATA BCTV7E Remote */1516static struct rc_map_table iodata_bctv7e[] = {17{ 0x40, KEY_TV },18{ 0x20, KEY_RADIO }, /* FM */19{ 0x60, KEY_EPG },20{ 0x00, KEY_POWER },2122/* Keys 0 to 9 */23{ 0x44, KEY_0 }, /* 10 */24{ 0x50, KEY_1 },25{ 0x30, KEY_2 },26{ 0x70, KEY_3 },27{ 0x48, KEY_4 },28{ 0x28, KEY_5 },29{ 0x68, KEY_6 },30{ 0x58, KEY_7 },31{ 0x38, KEY_8 },32{ 0x78, KEY_9 },3334{ 0x10, KEY_L }, /* Live */35{ 0x08, KEY_TIME }, /* Time Shift */3637{ 0x18, KEY_PLAYPAUSE }, /* Play */3839{ 0x24, KEY_ENTER }, /* 11 */40{ 0x64, KEY_ESC }, /* 12 */41{ 0x04, KEY_M }, /* Multi */4243{ 0x54, KEY_VIDEO },44{ 0x34, KEY_CHANNELUP },45{ 0x74, KEY_VOLUMEUP },46{ 0x14, KEY_MUTE },4748{ 0x4c, KEY_VCR }, /* SVIDEO */49{ 0x2c, KEY_CHANNELDOWN },50{ 0x6c, KEY_VOLUMEDOWN },51{ 0x0c, KEY_ZOOM },5253{ 0x5c, KEY_PAUSE },54{ 0x3c, KEY_RED }, /* || (red) */55{ 0x7c, KEY_RECORD }, /* recording */56{ 0x1c, KEY_STOP },5758{ 0x41, KEY_REWIND }, /* backward << */59{ 0x21, KEY_PLAY },60{ 0x61, KEY_FASTFORWARD }, /* forward >> */61{ 0x01, KEY_NEXT }, /* skip >| */62};6364static struct rc_map_list iodata_bctv7e_map = {65.map = {66.scan = iodata_bctv7e,67.size = ARRAY_SIZE(iodata_bctv7e),68.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */69.name = RC_MAP_IODATA_BCTV7E,70}71};7273static int __init init_rc_map_iodata_bctv7e(void)74{75return rc_map_register(&iodata_bctv7e_map);76}7778static void __exit exit_rc_map_iodata_bctv7e(void)79{80rc_map_unregister(&iodata_bctv7e_map);81}8283module_init(init_rc_map_iodata_bctv7e)84module_exit(exit_rc_map_iodata_bctv7e)8586MODULE_LICENSE("GPL");87MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");888990