public inbox for linux-mediatek@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/3] media: mtk-cir: only allow protocols that have software decoders
@ 2019-07-12 22:46 Sean Young
       [not found] ` <20190712224700.11285-1-sean-hENCXIMQXOg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Sean Young @ 2019-07-12 22:46 UTC (permalink / raw)
  To: linux-media-u79uwXL29TY76Z2rM5mHXA
  Cc: Matthias Brugger, Sean Wang,
	linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Ryder Lee,
	Frank Wunderlich

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 <sean-hENCXIMQXOg@public.gmane.org>
---
 drivers/media/rc/mtk-cir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/rc/mtk-cir.c b/drivers/media/rc/mtk-cir.c
index 46101efe017b..9dc467ebae24 100644
--- a/drivers/media/rc/mtk-cir.c
+++ b/drivers/media/rc/mtk-cir.c
@@ -342,7 +342,7 @@ static int mtk_ir_probe(struct platform_device *pdev)
 	ir->rc->map_name = map_name ?: RC_MAP_EMPTY;
 	ir->rc->dev.parent = dev;
 	ir->rc->driver_name = MTK_IR_DEV;
-	ir->rc->allowed_protocols = RC_PROTO_BIT_ALL;
+	ir->rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER;
 	ir->rc->rx_resolution = MTK_IR_SAMPLE;
 	ir->rc->timeout = MTK_MAX_SAMPLES * (MTK_IR_SAMPLE + 1);
 
-- 
2.21.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-07-14  7:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-12 22:46 [PATCH 1/3] media: mtk-cir: only allow protocols that have software decoders Sean Young
     [not found] ` <20190712224700.11285-1-sean-hENCXIMQXOg@public.gmane.org>
2019-07-12 22:46   ` [PATCH 2/3] media: rc: remove unused #define RC_PROTO_BIT_ALL Sean Young
2019-07-12 22:47   ` [PATCH 3/3] media: mtk-cir: lower de-glitch counter for rc-mm protocol Sean Young
     [not found]     ` <20190712224700.11285-3-sean-hENCXIMQXOg@public.gmane.org>
2019-07-14  7:00       ` Sean Wang
2019-07-14  6:58   ` [PATCH 1/3] media: mtk-cir: only allow protocols that have software decoders Sean Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox