[media] mceusb: improve ir data buffer parser
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 22 Oct 2010 04:35:44 +0000 (01:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 22 Oct 2010 22:05:37 +0000 (20:05 -0200)
commit39dc5c3adf65bf86115aeccd740993256e6a22d4
treef8f523805bb658cb84b55d9e2d925685628bc04e
parent4c8fa38198e58e9ccf5fca1d76792540eac047da
[media] mceusb: improve ir data buffer parser

Switch to a state machine that properly handles all incoming urb data
packets, and reads much cleaner and corrects some minor parsing errors
that were hindering decode on cx231xx/Polaris integrated IR. Also tested
with four different mceusb variants, and works perfectly with all of
them (at least for the rc6a mce remotes).

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