From 12c3b9b921d00cc2e4c460b11ae68b733a457a22 Mon Sep 17 00:00:00 2001 From: Sean Young Date: Mon, 7 Aug 2017 15:54:51 -0400 Subject: [PATCH] media: rc: saa7134: raw decoder can support any protocol 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 Signed-off-by: Mauro Carvalho Chehab --- 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 e7b386ee3ff9..a14b86d88afb 100644 --- a/drivers/media/pci/saa7134/saa7134-input.c +++ b/drivers/media/pci/saa7134/saa7134-input.c @@ -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;