rc-iodata-bctv7e.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // iodata-bctv7e.h - Keytable for iodata_bctv7e Remote Controller
  3. //
  4. // keymap imported from ir-keymaps.c
  5. //
  6. // Copyright (c) 2010 by Mauro Carvalho Chehab
  7. #include <media/rc-map.h>
  8. #include <linux/module.h>
  9. /* IO-DATA BCTV7E Remote */
  10. static struct rc_map_table iodata_bctv7e[] = {
  11. { 0x40, KEY_TV },
  12. { 0x20, KEY_RADIO }, /* FM */
  13. { 0x60, KEY_EPG },
  14. { 0x00, KEY_POWER },
  15. /* Keys 0 to 9 */
  16. { 0x44, KEY_0 }, /* 10 */
  17. { 0x50, KEY_1 },
  18. { 0x30, KEY_2 },
  19. { 0x70, KEY_3 },
  20. { 0x48, KEY_4 },
  21. { 0x28, KEY_5 },
  22. { 0x68, KEY_6 },
  23. { 0x58, KEY_7 },
  24. { 0x38, KEY_8 },
  25. { 0x78, KEY_9 },
  26. { 0x10, KEY_L }, /* Live */
  27. { 0x08, KEY_TIME }, /* Time Shift */
  28. { 0x18, KEY_PLAYPAUSE }, /* Play */
  29. { 0x24, KEY_ENTER }, /* 11 */
  30. { 0x64, KEY_ESC }, /* 12 */
  31. { 0x04, KEY_M }, /* Multi */
  32. { 0x54, KEY_VIDEO },
  33. { 0x34, KEY_CHANNELUP },
  34. { 0x74, KEY_VOLUMEUP },
  35. { 0x14, KEY_MUTE },
  36. { 0x4c, KEY_VCR }, /* SVIDEO */
  37. { 0x2c, KEY_CHANNELDOWN },
  38. { 0x6c, KEY_VOLUMEDOWN },
  39. { 0x0c, KEY_ZOOM },
  40. { 0x5c, KEY_PAUSE },
  41. { 0x3c, KEY_RED }, /* || (red) */
  42. { 0x7c, KEY_RECORD }, /* recording */
  43. { 0x1c, KEY_STOP },
  44. { 0x41, KEY_REWIND }, /* backward << */
  45. { 0x21, KEY_PLAY },
  46. { 0x61, KEY_FASTFORWARD }, /* forward >> */
  47. { 0x01, KEY_NEXT }, /* skip >| */
  48. };
  49. static struct rc_map_list iodata_bctv7e_map = {
  50. .map = {
  51. .scan = iodata_bctv7e,
  52. .size = ARRAY_SIZE(iodata_bctv7e),
  53. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  54. .name = RC_MAP_IODATA_BCTV7E,
  55. }
  56. };
  57. static int __init init_rc_map_iodata_bctv7e(void)
  58. {
  59. return rc_map_register(&iodata_bctv7e_map);
  60. }
  61. static void __exit exit_rc_map_iodata_bctv7e(void)
  62. {
  63. rc_map_unregister(&iodata_bctv7e_map);
  64. }
  65. module_init(init_rc_map_iodata_bctv7e)
  66. module_exit(exit_rc_map_iodata_bctv7e)
  67. MODULE_LICENSE("GPL");
  68. MODULE_AUTHOR("Mauro Carvalho Chehab");