Path: blob/master/drivers/media/rc/keymaps/rc-cinergy.c
15112 views
/* cinergy.h - Keytable for cinergy 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>1314static struct rc_map_table cinergy[] = {15{ 0x00, KEY_0 },16{ 0x01, KEY_1 },17{ 0x02, KEY_2 },18{ 0x03, KEY_3 },19{ 0x04, KEY_4 },20{ 0x05, KEY_5 },21{ 0x06, KEY_6 },22{ 0x07, KEY_7 },23{ 0x08, KEY_8 },24{ 0x09, KEY_9 },2526{ 0x0a, KEY_POWER },27{ 0x0b, KEY_MEDIA }, /* app */28{ 0x0c, KEY_ZOOM }, /* zoom/fullscreen */29{ 0x0d, KEY_CHANNELUP }, /* channel */30{ 0x0e, KEY_CHANNELDOWN }, /* channel- */31{ 0x0f, KEY_VOLUMEUP },32{ 0x10, KEY_VOLUMEDOWN },33{ 0x11, KEY_TUNER }, /* AV */34{ 0x12, KEY_NUMLOCK }, /* -/-- */35{ 0x13, KEY_AUDIO }, /* audio */36{ 0x14, KEY_MUTE },37{ 0x15, KEY_UP },38{ 0x16, KEY_DOWN },39{ 0x17, KEY_LEFT },40{ 0x18, KEY_RIGHT },41{ 0x19, BTN_LEFT, },42{ 0x1a, BTN_RIGHT, },43{ 0x1b, KEY_WWW }, /* text */44{ 0x1c, KEY_REWIND },45{ 0x1d, KEY_FORWARD },46{ 0x1e, KEY_RECORD },47{ 0x1f, KEY_PLAY },48{ 0x20, KEY_PREVIOUSSONG },49{ 0x21, KEY_NEXTSONG },50{ 0x22, KEY_PAUSE },51{ 0x23, KEY_STOP },52};5354static struct rc_map_list cinergy_map = {55.map = {56.scan = cinergy,57.size = ARRAY_SIZE(cinergy),58.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */59.name = RC_MAP_CINERGY,60}61};6263static int __init init_rc_map_cinergy(void)64{65return rc_map_register(&cinergy_map);66}6768static void __exit exit_rc_map_cinergy(void)69{70rc_map_unregister(&cinergy_map);71}7273module_init(init_rc_map_cinergy)74module_exit(exit_rc_map_cinergy)7576MODULE_LICENSE("GPL");77MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");787980