upstream: [media] rc-main: allow raw protocol drivers to restrict the allowed protos
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 28 Jul 2014 17:25:28 +0000 (14:25 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:21 +0000 (12:00 +0900)
commit253bc562a3cbe8174246f5fa5b385e08a868f9fe
tree7005c5caa910d9f7da1223f5d28ac5473534e150
parentd343e8dfabd18e1b4545c702f569e7afa8a01f28
upstream: [media] rc-main: allow raw protocol drivers to restrict the allowed protos

On some hardware (au0828/au8522), the hardware is broken with
regards to the initial pulse detection. So, the driver needs to
produce a fake start pulse. That limits the acceptable protocols,
as it is not possible to produce a fake pulse that would cover
all supported protocols.

So, allow the driver to explicitly set the allowed protocols.

If the driver doesn't specify, keep the old behavior.

Backports http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=d24b69fc6b0a
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/rc-main.c