0377-media-rc-core-define-a-default-timeout-for-drivers.patch 843 B

12345678910111213141516171819202122232425
  1. From f3331b8d48456a8113abbaf1985a0ca50e4d17a3 Mon Sep 17 00:00:00 2001
  2. From: Eric Nelson <eric@nelint.com>
  3. Date: Sat, 3 Oct 2015 08:18:50 -0700
  4. Subject: [PATCH] [media] rc-core: define a default timeout for drivers
  5. A default timeout value of 125 ms should work for all decoders.
  6. Declare a constant to help standardize its' use.
  7. Signed-off-by: Eric Nelson <eric@nelint.com>
  8. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
  9. ---
  10. include/media/rc-core.h | 1 +
  11. 1 file changed, 1 insertion(+)
  12. --- a/include/media/rc-core.h
  13. +++ b/include/media/rc-core.h
  14. @@ -239,6 +239,7 @@ static inline void init_ir_raw_event(str
  15. memset(ev, 0, sizeof(*ev));
  16. }
  17. +#define IR_DEFAULT_TIMEOUT MS_TO_NS(125)
  18. #define IR_MAX_DURATION 500000000 /* 500 ms */
  19. #define US_TO_NS(usec) ((usec) * 1000)
  20. #define MS_TO_US(msec) ((msec) * 1000)