rc-iodata-bctv7e.c 2.0 KB

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