[media] mceusb: fix up reporting of trailing space
commit1cd50f25614226e99ac7a1518311e8474ea024e3
authorJarod Wilson <jarod@redhat.com>
Tue, 9 Nov 2010 21:41:03 +0000 (9 18:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 20 Dec 2010 16:11:07 +0000 (20 14:11 -0200)
tree173a17802a43ba449662fe2db5a021e62ce5194d
parentb7582815b3fc772e23ee5da884e9a2307bdc1025
[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