[media] rc-main: allow raw protocol drivers to restrict the allowed protos
commitd24b69fc6b0aca41a205b2b5abaf3f243ad7d48b
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 28 Jul 2014 17:25:28 +0000 (28 14:25 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 30 Jul 2014 18:45:48 +0000 (30 15:45 -0300)
tree58522e0beaabfc8e94dbace1e3db1c5af391e5bd
parentcfd0c77d0830d33288e9da17aa10db3a61de601a
[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.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/rc-main.c