media: rc: saa7134: raw decoder can support any protocol
authorSean Young <sean@mess.org>
Mon, 7 Aug 2017 19:54:51 +0000 (15:54 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 13:58:21 +0000 (09:58 -0400)
Any protocol for which we have a software decoder, can be enabled. Without
this only the loaded protocol decoders can be selected.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/saa7134/saa7134-input.c

index e7b386ee3ff92818fdecf673b7a6f51f58f20ac1..a14b86d88afb595b07c6d1d5e796d5a435c8db9a 100644 (file)
@@ -856,8 +856,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_BIT_ALL_IR_DECODER;
+       }
 
        rc->device_name = ir->name;
        rc->input_phys = ir->phys;