Path: blob/master/drivers/media/rc/keymaps/rc-behold-columbus.c
15112 views
/* behold-columbus.h - Keytable for behold_columbus 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/* Beholder Intl. Ltd. 200815* Dmitry Belimov [email protected]16* Keytable is used by BeholdTV Columbus17* The "ascii-art picture" below (in comments, first row18* is the keycode in hex, and subsequent row(s) shows19* the button labels (several variants when appropriate)20* helps to descide which keycodes to assign to the buttons.21*/2223static struct rc_map_table behold_columbus[] = {2425/* 0x13 0x11 0x1C 0x12 *26* Mute Source TV/FM Power *27* */2829{ 0x13, KEY_MUTE },30{ 0x11, KEY_VIDEO },31{ 0x1C, KEY_TUNER }, /* KEY_TV/KEY_RADIO */32{ 0x12, KEY_POWER },3334/* 0x01 0x02 0x03 0x0D *35* 1 2 3 Stereo *36* *37* 0x04 0x05 0x06 0x19 *38* 4 5 6 Snapshot *39* *40* 0x07 0x08 0x09 0x10 *41* 7 8 9 Zoom *42* */43{ 0x01, KEY_1 },44{ 0x02, KEY_2 },45{ 0x03, KEY_3 },46{ 0x0D, KEY_SETUP }, /* Setup key */47{ 0x04, KEY_4 },48{ 0x05, KEY_5 },49{ 0x06, KEY_6 },50{ 0x19, KEY_CAMERA }, /* Snapshot key */51{ 0x07, KEY_7 },52{ 0x08, KEY_8 },53{ 0x09, KEY_9 },54{ 0x10, KEY_ZOOM },5556/* 0x0A 0x00 0x0B 0x0C *57* RECALL 0 ChannelUp VolumeUp *58* */59{ 0x0A, KEY_AGAIN },60{ 0x00, KEY_0 },61{ 0x0B, KEY_CHANNELUP },62{ 0x0C, KEY_VOLUMEUP },6364/* 0x1B 0x1D 0x15 0x18 *65* Timeshift Record ChannelDown VolumeDown *66* */6768{ 0x1B, KEY_TIME },69{ 0x1D, KEY_RECORD },70{ 0x15, KEY_CHANNELDOWN },71{ 0x18, KEY_VOLUMEDOWN },7273/* 0x0E 0x1E 0x0F 0x1A *74* Stop Pause Previouse Next *75* */7677{ 0x0E, KEY_STOP },78{ 0x1E, KEY_PAUSE },79{ 0x0F, KEY_PREVIOUS },80{ 0x1A, KEY_NEXT },8182};8384static struct rc_map_list behold_columbus_map = {85.map = {86.scan = behold_columbus,87.size = ARRAY_SIZE(behold_columbus),88.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */89.name = RC_MAP_BEHOLD_COLUMBUS,90}91};9293static int __init init_rc_map_behold_columbus(void)94{95return rc_map_register(&behold_columbus_map);96}9798static void __exit exit_rc_map_behold_columbus(void)99{100rc_map_unregister(&behold_columbus_map);101}102103module_init(init_rc_map_behold_columbus)104module_exit(exit_rc_map_behold_columbus)105106MODULE_LICENSE("GPL");107MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");108109110