Path: blob/master/drivers/media/rc/keymaps/rc-eztv.c
15112 views
/* eztv.h - Keytable for eztv 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/* Alfons Geser <[email protected]>15* updates from Job D. R. Borges <[email protected]> */1617static struct rc_map_table eztv[] = {18{ 0x12, KEY_POWER },19{ 0x01, KEY_TV }, /* DVR */20{ 0x15, KEY_DVD }, /* DVD */21{ 0x17, KEY_AUDIO }, /* music */22/* DVR mode / DVD mode / music mode */2324{ 0x1b, KEY_MUTE }, /* mute */25{ 0x02, KEY_LANGUAGE }, /* MTS/SAP / audio / autoseek */26{ 0x1e, KEY_SUBTITLE }, /* closed captioning / subtitle / seek */27{ 0x16, KEY_ZOOM }, /* full screen */28{ 0x1c, KEY_VIDEO }, /* video source / eject / delall */29{ 0x1d, KEY_RESTART }, /* playback / angle / del */30{ 0x2f, KEY_SEARCH }, /* scan / menu / playlist */31{ 0x30, KEY_CHANNEL }, /* CH surfing / bookmark / memo */3233{ 0x31, KEY_HELP }, /* help */34{ 0x32, KEY_MODE }, /* num/memo */35{ 0x33, KEY_ESC }, /* cancel */3637{ 0x0c, KEY_UP }, /* up */38{ 0x10, KEY_DOWN }, /* down */39{ 0x08, KEY_LEFT }, /* left */40{ 0x04, KEY_RIGHT }, /* right */41{ 0x03, KEY_SELECT }, /* select */4243{ 0x1f, KEY_REWIND }, /* rewind */44{ 0x20, KEY_PLAYPAUSE },/* play/pause */45{ 0x29, KEY_FORWARD }, /* forward */46{ 0x14, KEY_AGAIN }, /* repeat */47{ 0x2b, KEY_RECORD }, /* recording */48{ 0x2c, KEY_STOP }, /* stop */49{ 0x2d, KEY_PLAY }, /* play */50{ 0x2e, KEY_CAMERA }, /* snapshot / shuffle */5152{ 0x00, KEY_0 },53{ 0x05, KEY_1 },54{ 0x06, KEY_2 },55{ 0x07, KEY_3 },56{ 0x09, KEY_4 },57{ 0x0a, KEY_5 },58{ 0x0b, KEY_6 },59{ 0x0d, KEY_7 },60{ 0x0e, KEY_8 },61{ 0x0f, KEY_9 },6263{ 0x2a, KEY_VOLUMEUP },64{ 0x11, KEY_VOLUMEDOWN },65{ 0x18, KEY_CHANNELUP },/* CH.tracking up */66{ 0x19, KEY_CHANNELDOWN },/* CH.tracking down */6768{ 0x13, KEY_ENTER }, /* enter */69{ 0x21, KEY_DOT }, /* . (decimal dot) */70};7172static struct rc_map_list eztv_map = {73.map = {74.scan = eztv,75.size = ARRAY_SIZE(eztv),76.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */77.name = RC_MAP_EZTV,78}79};8081static int __init init_rc_map_eztv(void)82{83return rc_map_register(&eztv_map);84}8586static void __exit exit_rc_map_eztv(void)87{88rc_map_unregister(&eztv_map);89}9091module_init(init_rc_map_eztv)92module_exit(exit_rc_map_eztv)9394MODULE_LICENSE("GPL");95MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");969798