]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] redrat3: improve compat with lirc userspace decode
authorJarod Wilson <jarod@redhat.com>
Wed, 13 Jul 2011 21:26:07 +0000 (18:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 13 Jul 2011 23:45:02 +0000 (20:45 -0300)
commit0461db1b3914fddaa96487b6f495e3797426723e
tree8cd9299a3c9edf9f6197edf8ca1461a7f83f1225
parent58570725c08ea904545bd2ed490e0e92e996a7f6
[media] redrat3: improve compat with lirc userspace decode

This is admittedly a bit of a hack, but if we change our timeout value
to something longer and fudge our synthesized trailing space sample
based on the initial pulse sample, rc-core decode continues to work just
fine with both rc-6 and rc-5, and now lirc userspace decode shows proper
repeats for both of those protocols as well. Also tested NEC
successfully with both decode options.

We do still need a reset timer callback using the hardware's timeout
value to make sure we actually process samples correctly, regardless of
our somewhat hacky timeout and synthesized trailer above.

This also adds a missing del_timer_sync call to the module unload path.

CC: Chris Dodge <chris@redrat.co.uk>
CC: Andrew Vincer <andrew.vincer@redrat.co.uk>
CC: Stephen Cox <scox_nz@yahoo.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/redrat3.c