projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2d1e1e
)
[media] rc-core: define a default timeout for drivers
author
Eric Nelson
<eric@nelint.com>
Sat, 3 Oct 2015 15:18:50 +0000
(08:18 -0700)
committer
Mauro 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
patch
|
blob
|
blame
|
history
diff --git
a/include/media/rc-core.h
b/include/media/rc-core.h
index ec921f6538c777db5d81deb655ecfdf6facc4b83..f6494709e230d0a34a5486ccb89236494a53edb7 100644
(file)
--- a/
include/media/rc-core.h
+++ b/
include/media/rc-core.h
@@
-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)