Skip to content

Commit eab8652

Browse files
seanyoungmchehab
authored andcommitted
media: mtk-cir: only allow protocols that have software decoders
RC_PROTO_BIT_ALL includes protocols like unknown and other that do not have IR decoders by definition. If these protocols are set in the allowed_protocols, they will show in the protocols sysfs file but cannot be enabled. Signed-off-by: Sean Young <[email protected]> Acked-by: Sean Wang <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent d3bfed3 commit eab8652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/rc/mtk-cir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static int mtk_ir_probe(struct platform_device *pdev)
340340
ir->rc->map_name = map_name ?: RC_MAP_EMPTY;
341341
ir->rc->dev.parent = dev;
342342
ir->rc->driver_name = MTK_IR_DEV;
343-
ir->rc->allowed_protocols = RC_PROTO_BIT_ALL;
343+
ir->rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER;
344344
ir->rc->rx_resolution = MTK_IR_SAMPLE;
345345
ir->rc->timeout = MTK_MAX_SAMPLES * (MTK_IR_SAMPLE + 1);
346346

0 commit comments

Comments
 (0)