Advertisement
svenhoefer

Untitled

Feb 22nd, 2017
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.75 KB | None | 0 0
  1. diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp
  2. index 9facaaf..1f097da 100644
  3. --- a/src/driver/rcinput.cpp
  4. +++ b/src/driver/rcinput.cpp
  5. @@ -1781,7 +1781,11 @@ void CRCInput::setKeyRepeatDelay(unsigned int start_ms, unsigned int repeat_ms)
  6.             continue; /* setting repeat rate does not work here */
  7.  #ifdef HAVE_COOL_HARDWARE
  8.         /* this is ugly, but the driver does not support anything advanced... */
  9. -       if (path == "/dev/input/nevis_ir") {
  10. +       if (path == "/dev/input/nevis_ir"
  11. +#ifdef BOXMODEL_CS_HD2
  12. +           || path == "/dev/input/input0"
  13. +#endif
  14. +       ) {
  15.             d_printf("[rcinput:%s] %s(fd %d) using proprietary ioctl\n", __func__, path.c_str(), fd);
  16.             ioctl(fd, IOC_IR_SET_F_DELAY, start_ms);
  17.             ioctl(fd, IOC_IR_SET_X_DELAY, repeat_ms);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement