]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mceusb: fix up reporting of trailing space
authorJarod Wilson <jarod@redhat.com>
Tue, 9 Nov 2010 21:41:03 +0000 (18:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 20 Dec 2010 16:11:07 +0000 (14:11 -0200)
commit2afab4abb5d590e7b1160406008e62a2398d8a81
tree173a17802a43ba449662fe2db5a021e62ce5194d
parent7d1f7c11b041b57aa66e609fcaf43b4a19a09407
[media] mceusb: fix up reporting of trailing space

We were storing a bunch of spaces at the end of each signal, rather than
a single long space. The in-kernel decoders were actually okay with
this, but lirc isn't. As suggested by David Härdeman, switch to storing
samples using ir_raw_event_store_with_filter, which auto-merges the
consecutive space samples for us. This also allows us to bypass having
to store rawir samples in our device struct, further simplifying the
buffer parsing state machine. Both in-kernel decoders and lirc are happy
again with this change.

Also included in this patch is proper parsing of 0x9f 0x01 commands, the
removal of some magic number usage and some printk spew fixups.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/mceusb.c