]> git.baikalelectronics.ru Git - kernel.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)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 4 Nov 2014 22:41:42 +0000 (20:41 -0200)
commit189fdca79a72b14fd3f7b00d93b2a6858de8cb5e
tree28bdc219cddea2e39b31a7efeab03f8481946892
parent774e54ab8650b507bb2ef0dcbf66455d5dbfd04d
[media] media/rc: Send sync space information on the lirc device

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>
drivers/media/rc/ir-lirc-codec.c