Linux Audio

Check our new training course

Loading...
v4.10.11
  1/* rc-dvb0700-big.c - Keytable for devices in dvb0700
  2 *
  3 * Copyright (c) 2010 by Mauro Carvalho Chehab
  4 *
  5 * TODO: This table is a real mess, as it merges RC codes from several
  6 * devices into a big table. It also has both RC-5 and NEC codes inside.
  7 * It should be broken into small tables, and the protocols should properly
  8 * be identificated.
  9 *
 10 * The table were imported from dib0700_devices.c.
 11 *
 12 * This program is free software; you can redistribute it and/or modify
 13 * it under the terms of the GNU General Public License as published by
 14 * the Free Software Foundation; either version 2 of the License, or
 15 * (at your option) any later version.
 16 */
 17
 18#include <media/rc-map.h>
 19#include <linux/module.h>
 20
 21static struct rc_map_table dib0700_nec_table[] = {
 22	/* Key codes for the Pixelview SBTVD remote */
 23	{ 0x866b13, KEY_MUTE },
 24	{ 0x866b12, KEY_POWER },
 25	{ 0x866b01, KEY_1 },
 26	{ 0x866b02, KEY_2 },
 27	{ 0x866b03, KEY_3 },
 28	{ 0x866b04, KEY_4 },
 29	{ 0x866b05, KEY_5 },
 30	{ 0x866b06, KEY_6 },
 31	{ 0x866b07, KEY_7 },
 32	{ 0x866b08, KEY_8 },
 33	{ 0x866b09, KEY_9 },
 34	{ 0x866b00, KEY_0 },
 35	{ 0x866b0d, KEY_CHANNELUP },
 36	{ 0x866b19, KEY_CHANNELDOWN },
 37	{ 0x866b10, KEY_VOLUMEUP },
 38	{ 0x866b0c, KEY_VOLUMEDOWN },
 39
 40	{ 0x866b0a, KEY_CAMERA },
 41	{ 0x866b0b, KEY_ZOOM },
 42	{ 0x866b1b, KEY_BACKSPACE },
 43	{ 0x866b15, KEY_ENTER },
 44
 45	{ 0x866b1d, KEY_UP },
 46	{ 0x866b1e, KEY_DOWN },
 47	{ 0x866b0e, KEY_LEFT },
 48	{ 0x866b0f, KEY_RIGHT },
 49
 50	{ 0x866b18, KEY_RECORD },
 51	{ 0x866b1a, KEY_STOP },
 52
 53	/* Key codes for the EvolutePC TVWay+ remote */
 54	{ 0x7a00, KEY_MENU },
 55	{ 0x7a01, KEY_RECORD },
 56	{ 0x7a02, KEY_PLAY },
 57	{ 0x7a03, KEY_STOP },
 58	{ 0x7a10, KEY_CHANNELUP },
 59	{ 0x7a11, KEY_CHANNELDOWN },
 60	{ 0x7a12, KEY_VOLUMEUP },
 61	{ 0x7a13, KEY_VOLUMEDOWN },
 62	{ 0x7a40, KEY_POWER },
 63	{ 0x7a41, KEY_MUTE },
 64
 65	/* Key codes for the Elgato EyeTV Diversity silver remote */
 66	{ 0x4501, KEY_POWER },
 67	{ 0x4502, KEY_MUTE },
 68	{ 0x4503, KEY_1 },
 69	{ 0x4504, KEY_2 },
 70	{ 0x4505, KEY_3 },
 71	{ 0x4506, KEY_4 },
 72	{ 0x4507, KEY_5 },
 73	{ 0x4508, KEY_6 },
 74	{ 0x4509, KEY_7 },
 75	{ 0x450a, KEY_8 },
 76	{ 0x450b, KEY_9 },
 77	{ 0x450c, KEY_LAST },
 78	{ 0x450d, KEY_0 },
 79	{ 0x450e, KEY_ENTER },
 80	{ 0x450f, KEY_RED },
 81	{ 0x4510, KEY_CHANNELUP },
 82	{ 0x4511, KEY_GREEN },
 83	{ 0x4512, KEY_VOLUMEDOWN },
 84	{ 0x4513, KEY_OK },
 85	{ 0x4514, KEY_VOLUMEUP },
 86	{ 0x4515, KEY_YELLOW },
 87	{ 0x4516, KEY_CHANNELDOWN },
 88	{ 0x4517, KEY_BLUE },
 89	{ 0x4518, KEY_LEFT }, /* Skip backwards */
 90	{ 0x4519, KEY_PLAYPAUSE },
 91	{ 0x451a, KEY_RIGHT }, /* Skip forward */
 92	{ 0x451b, KEY_REWIND },
 93	{ 0x451c, KEY_L }, /* Live */
 94	{ 0x451d, KEY_FASTFORWARD },
 95	{ 0x451e, KEY_STOP }, /* 'Reveal' for Teletext */
 96	{ 0x451f, KEY_MENU }, /* KEY_TEXT for Teletext */
 97	{ 0x4540, KEY_RECORD }, /* Font 'Size' for Teletext */
 98	{ 0x4541, KEY_SCREEN }, /*  Full screen toggle, 'Hold' for Teletext */
 99	{ 0x4542, KEY_SELECT }, /* Select video input, 'Select' for Teletext */
100};
101
102static struct rc_map_list dib0700_nec_map = {
103	.map = {
104		.scan    = dib0700_nec_table,
105		.size    = ARRAY_SIZE(dib0700_nec_table),
106		.rc_type = RC_TYPE_NEC,
107		.name    = RC_MAP_DIB0700_NEC_TABLE,
108	}
109};
110
111static int __init init_rc_map(void)
112{
113	return rc_map_register(&dib0700_nec_map);
114}
115
116static void __exit exit_rc_map(void)
117{
118	rc_map_unregister(&dib0700_nec_map);
119}
120
121module_init(init_rc_map)
122module_exit(exit_rc_map)
123
124MODULE_LICENSE("GPL");
125MODULE_AUTHOR("Mauro Carvalho Chehab");
v5.14.15
  1// SPDX-License-Identifier: GPL-2.0+
  2// rc-dvb0700-big.c - Keytable for devices in dvb0700
  3//
  4// Copyright (c) 2010 by Mauro Carvalho Chehab
  5//
  6// TODO: This table is a real mess, as it merges RC codes from several
  7// devices into a big table. It also has both RC-5 and NEC codes inside.
  8// It should be broken into small tables, and the protocols should properly
  9// be identificated.
 10//
 11// The table were imported from dib0700_devices.c.
 
 
 
 
 
 12
 13#include <media/rc-map.h>
 14#include <linux/module.h>
 15
 16static struct rc_map_table dib0700_nec_table[] = {
 17	/* Key codes for the Pixelview SBTVD remote */
 18	{ 0x866b13, KEY_MUTE },
 19	{ 0x866b12, KEY_POWER },
 20	{ 0x866b01, KEY_NUMERIC_1 },
 21	{ 0x866b02, KEY_NUMERIC_2 },
 22	{ 0x866b03, KEY_NUMERIC_3 },
 23	{ 0x866b04, KEY_NUMERIC_4 },
 24	{ 0x866b05, KEY_NUMERIC_5 },
 25	{ 0x866b06, KEY_NUMERIC_6 },
 26	{ 0x866b07, KEY_NUMERIC_7 },
 27	{ 0x866b08, KEY_NUMERIC_8 },
 28	{ 0x866b09, KEY_NUMERIC_9 },
 29	{ 0x866b00, KEY_NUMERIC_0 },
 30	{ 0x866b0d, KEY_CHANNELUP },
 31	{ 0x866b19, KEY_CHANNELDOWN },
 32	{ 0x866b10, KEY_VOLUMEUP },
 33	{ 0x866b0c, KEY_VOLUMEDOWN },
 34
 35	{ 0x866b0a, KEY_CAMERA },
 36	{ 0x866b0b, KEY_ZOOM },
 37	{ 0x866b1b, KEY_BACKSPACE },
 38	{ 0x866b15, KEY_ENTER },
 39
 40	{ 0x866b1d, KEY_UP },
 41	{ 0x866b1e, KEY_DOWN },
 42	{ 0x866b0e, KEY_LEFT },
 43	{ 0x866b0f, KEY_RIGHT },
 44
 45	{ 0x866b18, KEY_RECORD },
 46	{ 0x866b1a, KEY_STOP },
 47
 48	/* Key codes for the EvolutePC TVWay+ remote */
 49	{ 0x7a00, KEY_MENU },
 50	{ 0x7a01, KEY_RECORD },
 51	{ 0x7a02, KEY_PLAY },
 52	{ 0x7a03, KEY_STOP },
 53	{ 0x7a10, KEY_CHANNELUP },
 54	{ 0x7a11, KEY_CHANNELDOWN },
 55	{ 0x7a12, KEY_VOLUMEUP },
 56	{ 0x7a13, KEY_VOLUMEDOWN },
 57	{ 0x7a40, KEY_POWER },
 58	{ 0x7a41, KEY_MUTE },
 59
 60	/* Key codes for the Elgato EyeTV Diversity silver remote */
 61	{ 0x4501, KEY_POWER },
 62	{ 0x4502, KEY_MUTE },
 63	{ 0x4503, KEY_NUMERIC_1 },
 64	{ 0x4504, KEY_NUMERIC_2 },
 65	{ 0x4505, KEY_NUMERIC_3 },
 66	{ 0x4506, KEY_NUMERIC_4 },
 67	{ 0x4507, KEY_NUMERIC_5 },
 68	{ 0x4508, KEY_NUMERIC_6 },
 69	{ 0x4509, KEY_NUMERIC_7 },
 70	{ 0x450a, KEY_NUMERIC_8 },
 71	{ 0x450b, KEY_NUMERIC_9 },
 72	{ 0x450c, KEY_LAST },
 73	{ 0x450d, KEY_NUMERIC_0 },
 74	{ 0x450e, KEY_ENTER },
 75	{ 0x450f, KEY_RED },
 76	{ 0x4510, KEY_CHANNELUP },
 77	{ 0x4511, KEY_GREEN },
 78	{ 0x4512, KEY_VOLUMEDOWN },
 79	{ 0x4513, KEY_OK },
 80	{ 0x4514, KEY_VOLUMEUP },
 81	{ 0x4515, KEY_YELLOW },
 82	{ 0x4516, KEY_CHANNELDOWN },
 83	{ 0x4517, KEY_BLUE },
 84	{ 0x4518, KEY_LEFT }, /* Skip backwards */
 85	{ 0x4519, KEY_PLAYPAUSE },
 86	{ 0x451a, KEY_RIGHT }, /* Skip forward */
 87	{ 0x451b, KEY_REWIND },
 88	{ 0x451c, KEY_L }, /* Live */
 89	{ 0x451d, KEY_FASTFORWARD },
 90	{ 0x451e, KEY_STOP }, /* 'Reveal' for Teletext */
 91	{ 0x451f, KEY_MENU }, /* KEY_TEXT for Teletext */
 92	{ 0x4540, KEY_RECORD }, /* Font 'Size' for Teletext */
 93	{ 0x4541, KEY_SCREEN }, /*  Full screen toggle, 'Hold' for Teletext */
 94	{ 0x4542, KEY_SELECT }, /* Select video input, 'Select' for Teletext */
 95};
 96
 97static struct rc_map_list dib0700_nec_map = {
 98	.map = {
 99		.scan     = dib0700_nec_table,
100		.size     = ARRAY_SIZE(dib0700_nec_table),
101		.rc_proto = RC_PROTO_NEC,
102		.name     = RC_MAP_DIB0700_NEC_TABLE,
103	}
104};
105
106static int __init init_rc_map(void)
107{
108	return rc_map_register(&dib0700_nec_map);
109}
110
111static void __exit exit_rc_map(void)
112{
113	rc_map_unregister(&dib0700_nec_map);
114}
115
116module_init(init_rc_map)
117module_exit(exit_rc_map)
118
119MODULE_LICENSE("GPL");
120MODULE_AUTHOR("Mauro Carvalho Chehab");