Thread (1 message) 1 message, 1 author, 2015-09-23

Re: [PATCH V3 2/2] rc: gpio-ir-recv: add timeout on idle

From: Sean Young <hidden>
Date: 2015-09-23 14:26:19
Also in: linux-media

On Wed, Sep 23, 2015 at 07:07:08AM -0700, Eric Nelson wrote:
Many decoders require a trailing space (period without IR illumination)
to be delivered before completing a decode.

Since the gpio-ir-recv driver only delivers events on gpio transitions,
a single IR symbol (caused by a quick touch on an IR remote) will not
be properly decoded without the use of a timer to flush the tail end
state of the IR receiver.

This patch initializes and uses a timer and the timeout field of rcdev
to complete the stream and allow decode.

The timeout can be overridden through the use of the LIRC_SET_REC_TIMEOUT
ioctl.

Signed-off-by: Eric Nelson <redacted>
Acked-by: Sean Young <redacted>

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help