1 // SPDX-License-Identifier: GPL-2.0+ 2 // eztv.h - Keytable for eztv Remote Controller 3 // 4 // keymap imported from ir-keymaps.c 5 // 6 // Copyright (c) 2010 by Mauro Carvalho Chehab 7 8 #include <media/rc-map.h> 9 #include <linux/module.h> 10 11 /* Alfons Geser <a.geser@cox.net> 12 * updates from Job D. R. Borges <jobdrb@ig.com.br> */ 13 14 static struct rc_map_table eztv[] = { 15 { 0x12, KEY_POWER }, 16 { 0x01, KEY_TV }, /* DVR */ 17 { 0x15, KEY_DVD }, /* DVD */ 18 { 0x17, KEY_AUDIO }, /* music */ 19 /* DVR mode / DVD mode / music mode */ 20 21 { 0x1b, KEY_MUTE }, /* mute */ 22 { 0x02, KEY_LANGUAGE }, /* MTS/SAP / audio / autoseek */ 23 { 0x1e, KEY_SUBTITLE }, /* closed captioning / subtitle / seek */ 24 { 0x16, KEY_ZOOM }, /* full screen */ 25 { 0x1c, KEY_VIDEO }, /* video source / eject / delall */ 26 { 0x1d, KEY_RESTART }, /* playback / angle / del */ 27 { 0x2f, KEY_SEARCH }, /* scan / menu / playlist */ 28 { 0x30, KEY_CHANNEL }, /* CH surfing / bookmark / memo */ 29 30 { 0x31, KEY_HELP }, /* help */ 31 { 0x32, KEY_MODE }, /* num/memo */ 32 { 0x33, KEY_ESC }, /* cancel */ 33 34 { 0x0c, KEY_UP }, /* up */ 35 { 0x10, KEY_DOWN }, /* down */ 36 { 0x08, KEY_LEFT }, /* left */ 37 { 0x04, KEY_RIGHT }, /* right */ 38 { 0x03, KEY_SELECT }, /* select */ 39 40 { 0x1f, KEY_REWIND }, /* rewind */ 41 { 0x20, KEY_PLAYPAUSE },/* play/pause */ 42 { 0x29, KEY_FORWARD }, /* forward */ 43 { 0x14, KEY_AGAIN }, /* repeat */ 44 { 0x2b, KEY_RECORD }, /* recording */ 45 { 0x2c, KEY_STOP }, /* stop */ 46 { 0x2d, KEY_PLAY }, /* play */ 47 { 0x2e, KEY_CAMERA }, /* snapshot / shuffle */ 48 49 { 0x00, KEY_NUMERIC_0 }, 50 { 0x05, KEY_NUMERIC_1 }, 51 { 0x06, KEY_NUMERIC_2 }, 52 { 0x07, KEY_NUMERIC_3 }, 53 { 0x09, KEY_NUMERIC_4 }, 54 { 0x0a, KEY_NUMERIC_5 }, 55 { 0x0b, KEY_NUMERIC_6 }, 56 { 0x0d, KEY_NUMERIC_7 }, 57 { 0x0e, KEY_NUMERIC_8 }, 58 { 0x0f, KEY_NUMERIC_9 }, 59 60 { 0x2a, KEY_VOLUMEUP }, 61 { 0x11, KEY_VOLUMEDOWN }, 62 { 0x18, KEY_CHANNELUP },/* CH.tracking up */ 63 { 0x19, KEY_CHANNELDOWN },/* CH.tracking down */ 64 65 { 0x13, KEY_ENTER }, /* enter */ 66 { 0x21, KEY_DOT }, /* . (decimal dot) */ 67 }; 68 69 static struct rc_map_list eztv_map = { 70 .map = { 71 .scan = eztv, 72 .size = ARRAY_SIZE(eztv), 73 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 74 .name = RC_MAP_EZTV, 75 } 76 }; 77 78 static int __init init_rc_map_eztv(void) 79 { 80 return rc_map_register(&eztv_map); 81 } 82 83 static void __exit exit_rc_map_eztv(void) 84 { 85 rc_map_unregister(&eztv_map); 86 } 87 88 module_init(init_rc_map_eztv) 89 module_exit(exit_rc_map_eztv) 90 91 MODULE_LICENSE("GPL"); 92 MODULE_AUTHOR("Mauro Carvalho Chehab"); 93 MODULE_DESCRIPTION("eztv remote controller keytable"); 94