[media] winbond-cir: only enable higher sample resolution if needed
authorSean Young <sean@mess.org>
Sun, 6 Jan 2013 16:19:43 +0000 (13:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 20:59:23 +0000 (18:59 -0200)
commit6f2627c29f6619ebdbc6de8934b33c23b73be8e6
tree86602ab2d00ca893e25f1be0020c23fab7319e5c
parent3e85a44aacd68744765f2fc7f0645645b34e64f8
[media] winbond-cir: only enable higher sample resolution if needed

A sample resolution of 2us generates more than 300 interrupts per key
and this resolution is not needed unless carrier reports are enabled.
Revert to a resolution of 10us unless carrier reports are needed. This
generates up to a fifth of the interrupts.

Signed-off-by: Sean Young <sean@mess.org>
Acked-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/winbond-cir.c