upstream: [media] rc-main: add generic scancode filtering
authorJames Hogan <james.hogan@imgtec.com>
Fri, 28 Feb 2014 23:17:02 +0000 (20:17 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:58:47 +0000 (11:58 +0900)
commita9fe97771f2aa6875a4f21e3f1fc759f9f9981ee
tree90d7b3171cc771118fb890ffa1769589f20fe130
parent8603846af9d97a037ef8568f232ecd80915aa037
upstream: [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