rc-tbs-nec.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* tbs-nec.h - Keytable for tbs_nec 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. static struct rc_map_table tbs_nec[] = {
  15. { 0x84, KEY_POWER2}, /* power */
  16. { 0x94, KEY_MUTE}, /* mute */
  17. { 0x87, KEY_1},
  18. { 0x86, KEY_2},
  19. { 0x85, KEY_3},
  20. { 0x8b, KEY_4},
  21. { 0x8a, KEY_5},
  22. { 0x89, KEY_6},
  23. { 0x8f, KEY_7},
  24. { 0x8e, KEY_8},
  25. { 0x8d, KEY_9},
  26. { 0x92, KEY_0},
  27. { 0xc0, KEY_10CHANNELSUP}, /* 10+ */
  28. { 0xd0, KEY_10CHANNELSDOWN}, /* 10- */
  29. { 0x96, KEY_CHANNELUP}, /* ch+ */
  30. { 0x91, KEY_CHANNELDOWN}, /* ch- */
  31. { 0x93, KEY_VOLUMEUP}, /* vol+ */
  32. { 0x8c, KEY_VOLUMEDOWN}, /* vol- */
  33. { 0x83, KEY_RECORD}, /* rec */
  34. { 0x98, KEY_PAUSE}, /* pause, yellow */
  35. { 0x99, KEY_OK}, /* ok */
  36. { 0x9a, KEY_CAMERA}, /* snapshot */
  37. { 0x81, KEY_UP},
  38. { 0x90, KEY_LEFT},
  39. { 0x82, KEY_RIGHT},
  40. { 0x88, KEY_DOWN},
  41. { 0x95, KEY_FAVORITES}, /* blue */
  42. { 0x97, KEY_SUBTITLE}, /* green */
  43. { 0x9d, KEY_ZOOM},
  44. { 0x9f, KEY_EXIT},
  45. { 0x9e, KEY_MENU},
  46. { 0x9c, KEY_EPG},
  47. { 0x80, KEY_PREVIOUS}, /* red */
  48. { 0x9b, KEY_MODE},
  49. };
  50. static struct rc_map_list tbs_nec_map = {
  51. .map = {
  52. .scan = tbs_nec,
  53. .size = ARRAY_SIZE(tbs_nec),
  54. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  55. .name = RC_MAP_TBS_NEC,
  56. }
  57. };
  58. static int __init init_rc_map_tbs_nec(void)
  59. {
  60. return rc_map_register(&tbs_nec_map);
  61. }
  62. static void __exit exit_rc_map_tbs_nec(void)
  63. {
  64. rc_map_unregister(&tbs_nec_map);
  65. }
  66. module_init(init_rc_map_tbs_nec)
  67. module_exit(exit_rc_map_tbs_nec)
  68. MODULE_LICENSE("GPL");
  69. MODULE_AUTHOR("Mauro Carvalho Chehab");