2010-08-01 05:02:35 -06:00
|
|
|
/* rc-dvb0700-big.c - Keytable for devices in dvb0700
|
|
|
|
*
|
2014-02-07 03:03:07 -07:00
|
|
|
* Copyright (c) 2010 by Mauro Carvalho Chehab
|
2010-08-01 05:02:35 -06:00
|
|
|
*
|
|
|
|
* TODO: This table is a real mess, as it merges RC codes from several
|
|
|
|
* devices into a big table. It also has both RC-5 and NEC codes inside.
|
|
|
|
* It should be broken into small tables, and the protocols should properly
|
2013-10-11 17:29:46 -06:00
|
|
|
* be identificated.
|
2010-08-01 05:02:35 -06:00
|
|
|
*
|
|
|
|
* The table were imported from dib0700_devices.c.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <media/rc-map.h>
|
2011-07-03 12:03:12 -06:00
|
|
|
#include <linux/module.h>
|
2010-08-01 05:02:35 -06:00
|
|
|
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-17 11:46:09 -07:00
|
|
|
static struct rc_map_table dib0700_nec_table[] = {
|
2010-08-01 05:02:35 -06:00
|
|
|
/* Key codes for the Pixelview SBTVD remote */
|
2011-01-12 08:16:34 -07:00
|
|
|
{ 0x866b13, KEY_MUTE },
|
|
|
|
{ 0x866b12, KEY_POWER },
|
|
|
|
{ 0x866b01, KEY_1 },
|
|
|
|
{ 0x866b02, KEY_2 },
|
|
|
|
{ 0x866b03, KEY_3 },
|
|
|
|
{ 0x866b04, KEY_4 },
|
|
|
|
{ 0x866b05, KEY_5 },
|
|
|
|
{ 0x866b06, KEY_6 },
|
|
|
|
{ 0x866b07, KEY_7 },
|
|
|
|
{ 0x866b08, KEY_8 },
|
|
|
|
{ 0x866b09, KEY_9 },
|
|
|
|
{ 0x866b00, KEY_0 },
|
|
|
|
{ 0x866b0d, KEY_CHANNELUP },
|
|
|
|
{ 0x866b19, KEY_CHANNELDOWN },
|
|
|
|
{ 0x866b10, KEY_VOLUMEUP },
|
|
|
|
{ 0x866b0c, KEY_VOLUMEDOWN },
|
2010-08-01 05:02:35 -06:00
|
|
|
|
2011-01-12 08:16:34 -07:00
|
|
|
{ 0x866b0a, KEY_CAMERA },
|
|
|
|
{ 0x866b0b, KEY_ZOOM },
|
|
|
|
{ 0x866b1b, KEY_BACKSPACE },
|
|
|
|
{ 0x866b15, KEY_ENTER },
|
2010-08-01 05:02:35 -06:00
|
|
|
|
2011-01-12 08:16:34 -07:00
|
|
|
{ 0x866b1d, KEY_UP },
|
|
|
|
{ 0x866b1e, KEY_DOWN },
|
|
|
|
{ 0x866b0e, KEY_LEFT },
|
|
|
|
{ 0x866b0f, KEY_RIGHT },
|
2010-08-01 05:02:35 -06:00
|
|
|
|
2011-01-12 08:16:34 -07:00
|
|
|
{ 0x866b18, KEY_RECORD },
|
|
|
|
{ 0x866b1a, KEY_STOP },
|
2010-08-01 05:02:35 -06:00
|
|
|
|
|
|
|
/* Key codes for the EvolutePC TVWay+ remote */
|
|
|
|
{ 0x7a00, KEY_MENU },
|
|
|
|
{ 0x7a01, KEY_RECORD },
|
|
|
|
{ 0x7a02, KEY_PLAY },
|
|
|
|
{ 0x7a03, KEY_STOP },
|
|
|
|
{ 0x7a10, KEY_CHANNELUP },
|
|
|
|
{ 0x7a11, KEY_CHANNELDOWN },
|
|
|
|
{ 0x7a12, KEY_VOLUMEUP },
|
|
|
|
{ 0x7a13, KEY_VOLUMEDOWN },
|
|
|
|
{ 0x7a40, KEY_POWER },
|
|
|
|
{ 0x7a41, KEY_MUTE },
|
|
|
|
|
|
|
|
/* Key codes for the Elgato EyeTV Diversity silver remote */
|
|
|
|
{ 0x4501, KEY_POWER },
|
|
|
|
{ 0x4502, KEY_MUTE },
|
|
|
|
{ 0x4503, KEY_1 },
|
|
|
|
{ 0x4504, KEY_2 },
|
|
|
|
{ 0x4505, KEY_3 },
|
|
|
|
{ 0x4506, KEY_4 },
|
|
|
|
{ 0x4507, KEY_5 },
|
|
|
|
{ 0x4508, KEY_6 },
|
|
|
|
{ 0x4509, KEY_7 },
|
|
|
|
{ 0x450a, KEY_8 },
|
|
|
|
{ 0x450b, KEY_9 },
|
|
|
|
{ 0x450c, KEY_LAST },
|
|
|
|
{ 0x450d, KEY_0 },
|
|
|
|
{ 0x450e, KEY_ENTER },
|
|
|
|
{ 0x450f, KEY_RED },
|
|
|
|
{ 0x4510, KEY_CHANNELUP },
|
|
|
|
{ 0x4511, KEY_GREEN },
|
|
|
|
{ 0x4512, KEY_VOLUMEDOWN },
|
|
|
|
{ 0x4513, KEY_OK },
|
|
|
|
{ 0x4514, KEY_VOLUMEUP },
|
|
|
|
{ 0x4515, KEY_YELLOW },
|
|
|
|
{ 0x4516, KEY_CHANNELDOWN },
|
|
|
|
{ 0x4517, KEY_BLUE },
|
|
|
|
{ 0x4518, KEY_LEFT }, /* Skip backwards */
|
|
|
|
{ 0x4519, KEY_PLAYPAUSE },
|
|
|
|
{ 0x451a, KEY_RIGHT }, /* Skip forward */
|
|
|
|
{ 0x451b, KEY_REWIND },
|
|
|
|
{ 0x451c, KEY_L }, /* Live */
|
|
|
|
{ 0x451d, KEY_FASTFORWARD },
|
|
|
|
{ 0x451e, KEY_STOP }, /* 'Reveal' for Teletext */
|
|
|
|
{ 0x451f, KEY_MENU }, /* KEY_TEXT for Teletext */
|
|
|
|
{ 0x4540, KEY_RECORD }, /* Font 'Size' for Teletext */
|
|
|
|
{ 0x4541, KEY_SCREEN }, /* Full screen toggle, 'Hold' for Teletext */
|
|
|
|
{ 0x4542, KEY_SELECT }, /* Select video input, 'Select' for Teletext */
|
|
|
|
};
|
|
|
|
|
2010-11-17 11:56:53 -07:00
|
|
|
static struct rc_map_list dib0700_nec_map = {
|
2010-08-01 05:02:35 -06:00
|
|
|
.map = {
|
2017-08-07 14:20:58 -06:00
|
|
|
.scan = dib0700_nec_table,
|
|
|
|
.size = ARRAY_SIZE(dib0700_nec_table),
|
|
|
|
.rc_proto = RC_PROTO_NEC,
|
|
|
|
.name = RC_MAP_DIB0700_NEC_TABLE,
|
2010-08-01 05:02:35 -06:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
static int __init init_rc_map(void)
|
|
|
|
{
|
2010-11-17 11:56:53 -07:00
|
|
|
return rc_map_register(&dib0700_nec_map);
|
2010-08-01 05:02:35 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
static void __exit exit_rc_map(void)
|
|
|
|
{
|
2010-11-17 11:56:53 -07:00
|
|
|
rc_map_unregister(&dib0700_nec_map);
|
2010-08-01 05:02:35 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
module_init(init_rc_map)
|
|
|
|
module_exit(exit_rc_map)
|
|
|
|
|
|
|
|
MODULE_LICENSE("GPL");
|
2014-02-07 03:03:07 -07:00
|
|
|
MODULE_AUTHOR("Mauro Carvalho Chehab");
|