[media] rc-main: add generic scancode filtering
authorJames Hogan <james.hogan@imgtec.com>
Fri, 28 Feb 2014 23:17:02 +0000 (20:17 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 16:21:40 +0000 (13:21 -0300)
commitb8c7d915087c97a21fa415fa0e860e59739da202
tree912e3c9296f0ecd70ea024c3bd2ca7955f7af2e3
parentc3c2077d9579472b07581ecdaf6cc5a60b1700bc
[media] rc-main: add generic scancode filtering

Add generic scancode filtering of RC input events, and fall back to
permitting any RC_FILTER_NORMAL scancode filter to be set if no s_filter
callback exists. This allows raw IR decoder events to be filtered, and
potentially allows hardware decoders to set looser filters and rely on
generic code to filter out the corner cases.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/rc-main.c