avermedia-m135a-rm-jx.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* avermedia-m135a-rm-jx.h - Keytable for avermedia_m135a_rm_jx Remote Controller
  2. *
  3. * Imported from ir-keymaps.c
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. */
  10. /*
  11. * Avermedia M135A with IR model RM-JX
  12. * The same codes exist on both Positivo (BR) and original IR
  13. * Mauro Carvalho Chehab <mchehab@infradead.org>
  14. */
  15. #ifdef IR_KEYMAPS
  16. static struct ir_scancode avermedia_m135a_rm_jx[] = {
  17. { 0x0200, KEY_POWER2 },
  18. { 0x022e, KEY_DOT }, /* '.' */
  19. { 0x0201, KEY_MODE }, /* TV/FM or SOURCE */
  20. { 0x0205, KEY_1 },
  21. { 0x0206, KEY_2 },
  22. { 0x0207, KEY_3 },
  23. { 0x0209, KEY_4 },
  24. { 0x020a, KEY_5 },
  25. { 0x020b, KEY_6 },
  26. { 0x020d, KEY_7 },
  27. { 0x020e, KEY_8 },
  28. { 0x020f, KEY_9 },
  29. { 0x0211, KEY_0 },
  30. { 0x0213, KEY_RIGHT }, /* -> or L */
  31. { 0x0212, KEY_LEFT }, /* <- or R */
  32. { 0x0217, KEY_SLEEP }, /* Capturar Imagem or Snapshot */
  33. { 0x0210, KEY_SHUFFLE }, /* Amostra or 16 chan prev */
  34. { 0x0303, KEY_CHANNELUP },
  35. { 0x0302, KEY_CHANNELDOWN },
  36. { 0x021f, KEY_VOLUMEUP },
  37. { 0x021e, KEY_VOLUMEDOWN },
  38. { 0x020c, KEY_ENTER }, /* Full Screen */
  39. { 0x0214, KEY_MUTE },
  40. { 0x0208, KEY_AUDIO },
  41. { 0x0203, KEY_TEXT }, /* Teletext */
  42. { 0x0204, KEY_EPG },
  43. { 0x022b, KEY_TV2 }, /* TV2 or PIP */
  44. { 0x021d, KEY_RED },
  45. { 0x021c, KEY_YELLOW },
  46. { 0x0301, KEY_GREEN },
  47. { 0x0300, KEY_BLUE },
  48. { 0x021a, KEY_PLAYPAUSE },
  49. { 0x0219, KEY_RECORD },
  50. { 0x0218, KEY_PLAY },
  51. { 0x021b, KEY_STOP },
  52. };
  53. DEFINE_IR_KEYTABLE(avermedia_m135a_rm_jx, IR_TYPE_NEC);
  54. #else
  55. DECLARE_IR_KEYTABLE(avermedia_m135a_rm_jx);
  56. #endif