]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[media] media/rc: Send sync space information on the lirc device
authorAustin Lund <austin.lund@gmail.com>
Thu, 24 Jul 2014 10:40:20 +0000 (07:40 -0300)
committerJiri Slaby <jslaby@suse.cz>
Fri, 13 Feb 2015 11:05:12 +0000 (12:05 +0100)
commit1d8d26c764494f5c2e44829fac384be819cee180
treeed7358577f93f400b8dc20719793908d4581f5a5
parent15c029a998d463691fc36b55826d136b2b6b67f5
[media] media/rc: Send sync space information on the lirc device

commit a8f29e89f2b54fbf2c52be341f149bc195b63a8b upstream.

Userspace expects to see a long space before the first pulse is sent on
the lirc device.  Currently, if a long time has passed and a new packet
is started, the lirc codec just returns and doesn't send anything.  This
makes lircd ignore many perfectly valid signals unless they are sent in
quick sucession.  When a reset event is delivered, we cannot know
anything about the duration of the space.  But it should be safe to
assume it has been a long time and we just set the duration to maximum.

Signed-off-by: Austin Lund <austin.lund@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/media/rc/ir-lirc-codec.c