nuvoton-cir: simplify raw IR sample handling
authorJarod Wilson <jarod@redhat.com>
Mon, 8 Aug 2011 20:20:40 +0000 (17:20 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:15 +0000 (11:40 -0700)
commitac0a6fa16b992606e52d45191fcad3d7ea5b7f11
treed14fc1552569a1c07c1f48ce0e4a09abcd8f852a
parent71a26cb4e0e056d88903f0df669930d2208d6755
nuvoton-cir: simplify raw IR sample handling

commit de4ed0c111ed078b8729a5cc49c23197740f5bad upstream.

The nuvoton-cir driver was storing up consecutive pulse-pulse and
space-space samples internally, for no good reason, since
ir_raw_event_store_with_filter() already merges back to back like
samples types for us. This should also fix a regression introduced late
in 3.0 that related to a timeout change, which actually becomes correct
when coupled with this change. Tested with RC6 and RC5 on my own
nuvoton-cir hardware atop vanilla 3.0.0, after verifying quirky
behavior in 3.0 due to the timeout change.

Reported-by: Stephan Raue <sraue@openelec.tv>
CC: Stephan Raue <sraue@openelec.tv>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/rc/nuvoton-cir.c
drivers/media/rc/nuvoton-cir.h