[media] winbond-cir: add carrier detection
authorSean Young <sean@mess.org>
Wed, 24 Oct 2012 20:22:42 +0000 (17:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 21 Nov 2012 19:06:17 +0000 (17:06 -0200)
commit37b0b4e90d799cddfdd5d0a90ed470933f7e9859
tree4c0ed67b3347459203511887f1ba2c83809b9e70
parentc496e716e0a7e3c486b99edbab5a6db7649824b1
[media] winbond-cir: add carrier detection

The winbond hardware has a counter for leading edges, which increases as
they are received. As we read raw IR from a fifo in an interrupt handler,
we cannot correlate them to specific IR pulses so we simply count all
pulses and edges until we go idle and disable the receiver.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/winbond-cir.c