[media] rc-core: define a default timeout for drivers
authorEric Nelson <eric@nelint.com>
Sat, 3 Oct 2015 15:18:50 +0000 (08:18 -0700)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 08:50:59 +0000 (06:50 -0200)
A default timeout value of 125 ms should work for all decoders.

Declare a constant to help standardize its' use.

Signed-off-by: Eric Nelson <eric@nelint.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
include/media/rc-core.h

index ec921f6538c777db5d81deb655ecfdf6facc4b83..f6494709e230d0a34a5486ccb89236494a53edb7 100644 (file)
@@ -239,6 +239,7 @@ static inline void init_ir_raw_event(struct ir_raw_event *ev)
        memset(ev, 0, sizeof(*ev));
 }
 
+#define IR_DEFAULT_TIMEOUT     MS_TO_NS(125)
 #define IR_MAX_DURATION         500000000      /* 500 ms */
 #define US_TO_NS(usec)         ((usec) * 1000)
 #define MS_TO_US(msec)         ((msec) * 1000)