Any protocol for which we have a software decoder, can be enabled. Without
this only the protocol of the default keymap can be used (rc-5).

Signed-off-by: Sean Young <s...@mess.org>
---
 drivers/media/pci/saa7134/saa7134-input.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/media/pci/saa7134/saa7134-input.c 
b/drivers/media/pci/saa7134/saa7134-input.c
index b1f3769eac45..9337e4615519 100644
--- a/drivers/media/pci/saa7134/saa7134-input.c
+++ b/drivers/media/pci/saa7134/saa7134-input.c
@@ -860,8 +860,10 @@ int saa7134_input_init1(struct saa7134_dev *dev)
        rc->priv = dev;
        rc->open = saa7134_ir_open;
        rc->close = saa7134_ir_close;
-       if (raw_decode)
+       if (raw_decode) {
                rc->driver_type = RC_DRIVER_IR_RAW;
+               rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER;
+       }
 
        rc->device_name = ir->name;
        rc->input_phys = ir->phys;
-- 
2.13.4

Reply via email to